Test in freestanding environment

This commit is contained in:
Alex Kotov 2021-12-15 04:31:45 +05:00
parent aacc7e3333
commit 39785fdece
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 21 additions and 0 deletions

View File

@ -31,3 +31,24 @@ jobs:
run: make
- name: check
run: make check
- name: install
run: sudo make install
freestanding:
runs-on: ubuntu-latest
strategy:
matrix:
cc: ['gcc', 'clang', 'tcc']
assert: ['--enable-assert', '--disable-assert']
steps:
- uses: actions/checkout@v2
- name: dependencies
run: sudo apt install clang tcc
- name: autogen
run: ./autogen.sh
- name: configure
run: ./configure ${{matrix.assert}} CC='${{matrix.cc}}' CFLAGS='-ffreestanding -nostdlib -fno-builtin -fno-stack-protector'
- name: make
run: make libkernaux.a
- name: install
run: sudo make install-exec install-data