mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-20 10:19:32 -06:00
44 lines
953 B
YAML
44 lines
953 B
YAML
name: Build macOS Package
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
name: Build on ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [macos-10.15]
|
|
ghc: ["8.6.5"]
|
|
cabal: ["2.4"]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup Haskell
|
|
uses: actions/setup-haskell@v1
|
|
id: setup-haskell-cabal
|
|
with:
|
|
ghc-version: ${{ matrix.ghc }}
|
|
cabal-version: ${{ matrix.cabal }}
|
|
|
|
- name: Install build tools
|
|
run: |
|
|
brew install \
|
|
automake
|
|
cabal v1-install alex happy
|
|
|
|
- name: Build macOS package
|
|
run: |
|
|
sudo mkdir -p /Library/Java/Home
|
|
sudo ln -s /usr/local/opt/openjdk/include /Library/Java/Home/include
|
|
make pkg
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: gf-${{ github.sha }}-macos
|
|
path: dist/gf-*.pkg
|
|
if-no-files-found: error
|