From 39785fdece033774478b12371564a32d00d41d72 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Wed, 15 Dec 2021 04:31:45 +0500 Subject: [PATCH] Test in freestanding environment --- .github/workflows/test.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f239356..6ac866c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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