Skip to content

Commit

Permalink
ci: Build on self-hosted ARM runner via stack
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther committed May 20, 2024
1 parent 11c9e8d commit 4e1f892
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,24 +87,32 @@ jobs:
fail-fast: false
matrix:
include:
- name: Linux
runs-on: ubuntu-22.04
- name: Linux x64
runs-on: '"ubuntu-22.04"'
cache: |
~/.stack/pantry
~/.stack/snapshots
~/.stack/stack.sqlite3
# no artifact for Linux, because we use the static build

- name: Linux aarch64
runs-on: '["self-hosted", "Linux", "ARM64"]'
cache: |
~/.stack/pantry
~/.stack/snapshots
~/.stack/stack.sqlite3
# no artifact for Linux ARM, yet, because we use the other ARM job

- name: MacOS
runs-on: macos-12
runs-on: '"macos-12"'
cache: |
~/.stack/pantry
~/.stack/snapshots
~/.stack/stack.sqlite3
artifact: postgrest-macos-x64

- name: Windows
runs-on: windows-2022
runs-on: '"windows-2022"'
cache: |
~\AppData\Roaming\stack\pantry
~\AppData\Local\Programs\stack\pantry
Expand All @@ -116,7 +124,7 @@ jobs:
artifact: postgrest-windows-x64

name: Stack - ${{ matrix.name }}
runs-on: ${{ matrix.runs-on }}
runs-on: ${{ fromJson(matrix.runs-on) }}
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: haskell-actions/setup@33585e1a16afa5875e124b0ebc89dd0c2f872c21 # v2.7.3
Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resolver: lts-22.21 # 2024-05-06, GHC 9.6.5
nix:
packages:
- pcre
- pkgconfig
- pkg-config
- postgresql
- zlib
# disable pure by default so that the test enviroment can be passed
Expand Down

0 comments on commit 4e1f892

Please sign in to comment.