Skip to content

Commit

Permalink
ci: Build on self-hosted ARM runner via Cabal
Browse files Browse the repository at this point in the history
The self-hosted github runner runs on a nixos server in AWS with the
following packages provided:
- cabal-install
- haskell.compiler.ghc98
- pkg-config
- postgresql / zlib

This means we can't set the GHC version via github actions
configuration, but are relying on the hosted version.
  • Loading branch information
wolfgangwalther committed May 20, 2024
1 parent 4e1f892 commit fefedf4
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,34 @@ jobs:
run: cabal build --only-dependencies --enable-tests --enable-benchmarks
- name: Build
run: cabal build --enable-tests --enable-benchmarks all


arm:
name: Cabal - Linux aarch64
runs-on:
- self-hosted
- Linux
- ARM64
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Cache .cabal
uses: ./.github/actions/cache-on-main
with:
path: |
~/.cabal/packages
~/.cabal/store
prefix: cabal-arm-
suffix: ${{ hashFiles('postgrest.cabal', 'cabal.project', 'cabal.project.freeze') }}
- name: Cache dist-newstyle
uses: ./.github/actions/cache-on-main
with:
path: dist-newstyle
save-prs: true
prefix: cabal-arm--dist-newstyle-${{ hashFiles('postgrest.cabal', 'cabal.project', 'cabal.project.freeze') }}
suffix: ${{ hashFiles('**/*.hs') }}
- name: Install dependencies
run: |
cabal update
cabal build --only-dependencies --enable-tests --enable-benchmarks
- name: Build
run: cabal build --enable-tests --enable-benchmarks all

0 comments on commit fefedf4

Please sign in to comment.