mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-23 09:52:55 -06:00
Add first attempt at GitHub action file for building .pkg
This commit is contained in:
40
.github/workflows/build-macos-package.yml
vendored
Normal file
40
.github/workflows/build-macos-package.yml
vendored
Normal file
@@ -0,0 +1,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
|
||||||
Reference in New Issue
Block a user