blob: 384f6527d73c2a3d62d55bc113f485de8b6f4b9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
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
# just to see output
- run: find / -name jni.h
- run: brew reinstall openjdk
- 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
|