File tree Expand file tree Collapse file tree 1 file changed +22
-18
lines changed Expand file tree Collapse file tree 1 file changed +22
-18
lines changed Original file line number Diff line number Diff line change @@ -104,25 +104,29 @@ jobs:
104
104
cabal v2-test --constraint 'optparse-applicative -process' --constraint 'QuickCheck +old-random' --constraint 'tasty -unix' all
105
105
106
106
arm :
107
- runs-on : ubuntu-latest
107
+ runs-on : [self-hosted, Linux, ARM64]
108
108
strategy :
109
109
fail-fast : false
110
110
matrix :
111
- arch : ['armv7', 'aarch64' ]
111
+ arch : [arm32v7, arm64v8 ]
112
112
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
+
You can’t perform that action at this time.
0 commit comments