summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJohn J. Camilleri <john@digitalgrammars.com>2020-11-09 13:35:03 +0100
committerJohn J. Camilleri <john@digitalgrammars.com>2020-11-09 13:35:03 +0100
commit3844277a66925536e4285e4e533e63e43e33a70d (patch)
treedeb80628d9d31739e3940ab42a4f26f9971bf9d3 /.github
parent86729b3efc1fca8250c0aa786194386dd2213ec4 (diff)
Install Haskell via setup-haskell action, install build tools for C runtime
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build-macos-package.yml30
1 files changed, 24 insertions, 6 deletions
diff --git a/.github/workflows/build-macos-package.yml b/.github/workflows/build-macos-package.yml
index a95f01964..873ae9da6 100644
--- a/.github/workflows/build-macos-package.yml
+++ b/.github/workflows/build-macos-package.yml
@@ -7,20 +7,38 @@ jobs:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
- fail-fast: true
matrix:
- os: [macos-latest]
- # env:
- # LC_ALL: C.UTF-8
+ os: [macOS-latest]
+ cabal: ["3.2"]
+ ghc: ["8.6.5"]
steps:
- uses: actions/checkout@v1
+ - uses: actions/setup-haskell@v1.1.1
+ id: setup-haskell-cabal
+ name: Setup Haskell
+ with:
+ ghc-version: ${{ matrix.ghc }}
+ cabal-version: ${{ matrix.cabal }}
+
+ - name: Freeze
+ run: |
+ cabal freeze
+
+ - uses: actions/cache@v1
+ name: Cache ~/.cabal/store
+ with:
+ path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
+ key: ${{ runner.os }}-${{ matrix.ghc }}
+ # key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
+
- name: Install build tools
run: |
brew install \
- ghc \
- cabal-install
+ automake \
+ autoconf \
+ libtool
- name: Checkout RGL
run: |