actions: Enable OSX CI

This commit is contained in:
Ryan Lucia 2021-01-09 03:18:33 -05:00
parent b51463a5f5
commit bc079922c0

View file

@ -28,10 +28,10 @@ jobs:
name: "Ubuntu", name: "Ubuntu",
os: ubuntu-latest os: ubuntu-latest
} }
#- { - {
# name: "macOS", name: "macOS",
# os: macos-latest os: macos-latest
#} }
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -62,6 +62,12 @@ jobs:
7z e moonscript.zip 7z e moonscript.zip
Get-Location | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append Get-Location | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Install dependencies (MacOS)
if: matrix.config.os == 'macos-latest'
run: |
brew install luarocks nasm ninja
luarocks install moonscript --dev
- name: Install dependencies (Linux) - name: Install dependencies (Linux)
if: matrix.config.os == 'ubuntu-latest' if: matrix.config.os == 'ubuntu-latest'
run: sudo apt-get install ninja-build build-essential libx11-dev libwxgtk3.0-gtk3-dev libfreetype6-dev pkg-config libfontconfig1-dev libass-dev libasound2-dev libffms2-dev intltool libboost-all-dev run: sudo apt-get install ninja-build build-essential libx11-dev libwxgtk3.0-gtk3-dev libfreetype6-dev pkg-config libfontconfig1-dev libass-dev libasound2-dev libffms2-dev intltool libboost-all-dev
@ -71,6 +77,10 @@ jobs:
# -Dfreetype2:png=enabled is a workaround for https://savannah.nongnu.org/bugs/?59458 # -Dfreetype2:png=enabled is a workaround for https://savannah.nongnu.org/bugs/?59458
run: meson build -Ddefault_library=static --force-fallback-for=zlib,harfbuzz -Dfreetype2:zlib=system -Dfreetype2:png=enabled -Dfreetype2:default_library=static -Dbuildtype=release run: meson build -Ddefault_library=static --force-fallback-for=zlib,harfbuzz -Dfreetype2:zlib=system -Dfreetype2:png=enabled -Dfreetype2:default_library=static -Dbuildtype=release
- name: Configure (MacOS)
if: matrix.config.os == 'macos-latest'
run: meson build -Ddefault_library=static
- name: Configure (Linux) - name: Configure (Linux)
if: matrix.config.os == 'ubuntu-latest' if: matrix.config.os == 'ubuntu-latest'
run: meson build run: meson build