diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4d585ff..d9b5012 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,20 +1,21 @@ name: Build libsm64 -on: - pull_request: - push: - branches: [master] +on: [push, pull_request] jobs: Build: name: Build libsm64 for ${{ matrix.identifier }} - runs-on: ubuntu-latest strategy: fail-fast: false matrix: include: - identifier: linux + os: ubuntu-latest - identifier: windows + os: ubuntu-latest + - identifier: macos + os: macos-latest + runs-on: ${{ matrix.os }} steps: - name: Checkout project uses: actions/checkout@v3 @@ -34,7 +35,7 @@ jobs: run: | echo "OS=Windows_NT" >> $GITHUB_ENV - - name: (Linux) Install SDL2 and GLEW + - name: (Linux) Install dependencies if: ${{ startsWith(matrix.identifier, 'linux') }} run: | sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse" @@ -51,7 +52,7 @@ jobs: make test -j`nproc` - name: Upload build - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: libsm64_${{ matrix.identifier }} path: |