From 6b250fb478d0f75e88dbd94f3b28e4a17e3ba6c4 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Wed, 12 Jan 2022 09:55:19 +0500 Subject: [PATCH] Build example on CI --- .github/workflows/test.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bae3c4b..2a2a779 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,3 +42,23 @@ jobs: run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability --suppress=duplicateExpression --suppress=staticStringCompare examples/ - name: cppcheck tests run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability --suppress=unusedStructMember tests/ + + # TODO: finish this + example-kernel-multiboot2-grub: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: dependencies + run: sudo apt install build-essential qemu-system-x86 wget + - name: vendor-fetch + run: ./vendor/fetch.sh + - name: vendor-cross-build + run: ./vendor/cross/build/i386/build.sh + - name: autogen + run: ./autogen.sh + - name: configure + run: PATH="$(pwd)/vendor/cross/bin:$PATH" ./config/i386 + - name: make + run: make libkernaux.a + - name: make-example + run: cd 'examples/kernel-multiboot2-grub' && make image.iso