diff options
Diffstat (limited to '.github/workflows/ci-linux.yml')
-rw-r--r-- | .github/workflows/ci-linux.yml | 63 |
1 files changed, 36 insertions, 27 deletions
diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index 9c52b688597..f6f924df624 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -3,7 +3,7 @@ name: CI (Linux) on: push: paths: - - '.github/**' + - '.github/workflows/**' - '3rdparty/**' - 'hash/**' - 'scripts/**' @@ -12,7 +12,7 @@ on: - 'makefile' pull_request: paths: - - '.github/**' + - '.github/workflows/**' - '3rdparty/**' - 'hash/**' - 'scripts/**' @@ -24,6 +24,7 @@ permissions: contents: read jobs: + build-linux: runs-on: ubuntu-latest strategy: @@ -34,32 +35,40 @@ jobs: cc: gcc cxx: g++ archopts: -U_FORTIFY_SOURCE + subtarget: tiny + executable: mametiny - compiler: clang cc: clang cxx: clang++ + subtarget: mame + executable: mame 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: ./mame -validate - - name: Reconcile driver list - run: ./mame -listxml | python scripts/build/makedep.py reconcilelist -l src/mame/mame.lst - - - name: ORM check - run: python scripts/minimaws/minimaws.py load --executable ./mame --softwarepath hash - - uses: actions/upload-artifact@master - with: - name: mame-linux-${{ matrix.compiler }}-${{ github.sha }} - path: mame + - 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 qtbase5-dev qtbase5-dev-tools + - 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 }} + SUBTARGET: ${{ matrix.subtarget }} + TOOLS: 1 + run: make -j2 + - name: Validate + run: ./${{ matrix.executable }} -validate + - name: Reconcile driver list + run: ./${{ matrix.executable }} -listxml | python scripts/build/makedep.py reconcilelist -l src/mame/${{ matrix.subtarget }}.lst - + - name: ORM check + run: python scripts/minimaws/minimaws.py load --executable ./${{ matrix.executable }} --softwarepath hash + - uses: actions/upload-artifact@master + with: + name: ${{ matrix.executable }}-linux-${{ matrix.compiler }}-${{ github.sha }} + path: | + ${{ matrix.executable }} + chdman + unidasm |