Files
gf-core/.github/workflows/build-macos-package.yml
John J. Camilleri 5a6acf1d47 Replace _ with -
2020-11-16 23:50:02 +01:00

43 lines
831 B
YAML

name: Build macOS Package
on:
push:
workflow_dispatch:
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest]
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: |
make pkg
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: macOS package
path: dist/gf-*.pkg
if-no-files-found: error