Add Macos build to Github Actions workflow (#61)
* Add macos compilation to GIthub Actions
This commit is contained in:
@@ -1,20 +1,21 @@
|
|||||||
name: Build libsm64
|
name: Build libsm64
|
||||||
|
|
||||||
on:
|
on: [push, pull_request]
|
||||||
pull_request:
|
|
||||||
push:
|
|
||||||
branches: [master]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build:
|
Build:
|
||||||
name: Build libsm64 for ${{ matrix.identifier }}
|
name: Build libsm64 for ${{ matrix.identifier }}
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- identifier: linux
|
- identifier: linux
|
||||||
|
os: ubuntu-latest
|
||||||
- identifier: windows
|
- identifier: windows
|
||||||
|
os: ubuntu-latest
|
||||||
|
- identifier: macos
|
||||||
|
os: macos-latest
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout project
|
- name: Checkout project
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -34,7 +35,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "OS=Windows_NT" >> $GITHUB_ENV
|
echo "OS=Windows_NT" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: (Linux) Install SDL2 and GLEW
|
- name: (Linux) Install dependencies
|
||||||
if: ${{ startsWith(matrix.identifier, 'linux') }}
|
if: ${{ startsWith(matrix.identifier, 'linux') }}
|
||||||
run: |
|
run: |
|
||||||
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse"
|
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`
|
make test -j`nproc`
|
||||||
|
|
||||||
- name: Upload build
|
- name: Upload build
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: libsm64_${{ matrix.identifier }}
|
name: libsm64_${{ matrix.identifier }}
|
||||||
path: |
|
path: |
|
||||||
|
|||||||
Reference in New Issue
Block a user