From ef738e015a3d7c5cdef19ef5246fce306ec3bbb6 Mon Sep 17 00:00:00 2001 From: Renato Rotenberg <38757897+Brawmario@users.noreply.github.com> Date: Mon, 24 Jun 2024 19:40:58 -0300 Subject: [PATCH] Add Macos build to Github Actions workflow (#61) * Add macos compilation to GIthub Actions --- .github/workflows/main.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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: |