summaryrefslogtreecommitdiff
path: root/.github/workflows/build-macos-package.yml
blob: 3fb6fc5c49fda00d6d8360e21a932c526cc22d81 (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
name: Build macOS Package

on: [push, pull_request]

jobs:
  build:
    name: Build on ${{ matrix.os }}
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: true
      matrix:
        os: [macos-latest]
    # env:
    #   LC_ALL: C.UTF-8

    steps:
    - uses: actions/checkout@v1

    - name: Install build tools
      run: |
        sudo apt update
        sudo apt install -y \
          haskell-platform

    - name: Checkout RGL
      run: |
        git clone --depth 1 https://github.com/GrammaticalFramework/gf-rgl.git ../gf-rgl

    - name: Build macOS package
      run: |
        make pkg

    - name: Copy packages
      run: |
        mkdir macos/dist
        cp ../gf_*.pkg macos/dist/

    - uses: actions/upload-artifact@v2
      with:
        path: macos/dist