Skip to content

Commit 720debb

Browse files
committed
Use self-hosted ARM runners
1 parent 80560b3 commit 720debb

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -104,25 +104,29 @@ jobs:
104104
cabal v2-test --constraint 'optparse-applicative -process' --constraint 'QuickCheck +old-random' --constraint 'tasty -unix' all
105105
106106
arm:
107-
runs-on: ubuntu-latest
107+
runs-on: [self-hosted, Linux, ARM64]
108108
strategy:
109109
fail-fast: false
110110
matrix:
111-
arch: ['armv7', 'aarch64']
111+
arch: [arm32v7, arm64v8]
112112
steps:
113-
- uses: actions/checkout@v3
114-
- uses: uraimo/run-on-arch-action@v2
115-
timeout-minutes: 120
116-
with:
117-
arch: ${{ matrix.arch }}
118-
distro: ubuntu20.04
119-
githubToken: ${{ github.token }}
120-
install: |
121-
apt-get update -y
122-
apt-get install -y ghc cabal-install autoconf
123-
run: |
124-
cabal --version
125-
cabal update
126-
autoreconf --version
127-
autoreconf -i
128-
cabal v2-test --constraint 'optparse-applicative -process' --constraint 'QuickCheck +old-random' --constraint 'tasty -unix' all
113+
- uses: docker://hasufell/arm64v8-ubuntu-haskell:focal
114+
name: Cleanup
115+
with:
116+
args: "find . -mindepth 1 -maxdepth 1 -exec rm -rf -- {} +"
117+
118+
- name: Checkout code
119+
uses: actions/checkout@v3
120+
121+
- if: matrix.arch == 'arm32v7'
122+
uses: docker://hasufell/arm32v7-ubuntu-haskell:focal
123+
name: Run build (arm32v7 linux)
124+
with:
125+
args: sh -c "cabal update && autoreconf -i && cabal test all --test-show-details=direct"
126+
127+
- if: matrix.arch == 'arm64v8'
128+
uses: docker://hasufell/arm64v8-ubuntu-haskell:focal
129+
name: Run build (arm64v8 linux)
130+
with:
131+
args: sh -c "cabal update && autoreconf -i && cabal test all --test-show-details=direct"
132+

0 commit comments

Comments
 (0)