diff options
Diffstat (limited to '.github/workflows/ci-linux.yml')
-rw-r--r-- | .github/workflows/ci-linux.yml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml new file mode 100644 index 00000000000..953eefbe971 --- /dev/null +++ b/.github/workflows/ci-linux.yml @@ -0,0 +1,40 @@ +name: CI (Linux) + +on: [push, pull_request] + +jobs: + build-linux: + runs-on: ubuntu-latest + strategy: + matrix: + compiler: [gcc, clang] + include: + - compiler: gcc + cc: gcc + cxx: g++ + archopts: -U_FORTIFY_SOURCE + - compiler: clang + cc: clang + cxx: clang++ + steps: + - uses: actions/checkout@master + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y libsdl2-dev libsdl2-ttf-dev libasound2-dev libxinerama-dev libxi-dev qt5-default + - name: Install clang + if: matrix.compiler == 'clang' + run: sudo apt-get install -y clang + - name: Build + env: + OVERRIDE_CC: ${{ matrix.cc }} + OVERRIDE_CXX: ${{ matrix.cxx }} + ARCHOPTS: ${{ matrix.archopts }} + TOOLS: 1 + run: make -j2 + - name: Validate + run: ./mame64 -validate + - uses: actions/upload-artifact@master + with: + name: mame64-linux-${{ matrix.compiler }}-${{ github.sha }} + path: mame64 |