From: Andrew Cooper Date: Wed, 7 Apr 2021 22:56:04 +0000 (+0100) Subject: CI: Add Github Actions for building X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=dec5fd82e12f5a0af527436c04dea97f1d084110;p=xtf.git CI: Add Github Actions for building Signed-off-by: Andrew Cooper --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5d101d5 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +name: build + +on: [push, pull_request] + +jobs: + build: + + strategy: + matrix: + compiler: [gcc-7, gcc-8, gcc-9, gcc-10, clang-9, clang-10, clang-11] + + runs-on: ubuntu-latest + + steps: + - name: Install + run: | + sudo apt-get update -q + sudo apt-get install ${{matrix.compiler}} + + - uses: actions/checkout@v2 + + - name: Build + run: | + make -j`nproc` CC=${{matrix.compiler}}