Skip to content

Commit 632b64e

Browse files
authored
Merge pull request #138 from Bodigrim/master
CI: migrate away from drone.io
2 parents 1f11001 + b5c32d8 commit 632b64e

2 files changed

Lines changed: 45 additions & 30 deletions

File tree

.drone.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/ci.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,3 +199,48 @@ jobs:
199199
else
200200
stack $STACK_ARGS test --bench --no-run-benchmarks --haddock --no-haddock-deps
201201
fi
202+
203+
i386:
204+
runs-on: ubuntu-latest
205+
container:
206+
image: i386/ubuntu:bionic
207+
steps:
208+
- name: Install
209+
run: |
210+
apt-get update -y
211+
apt-get install -y autoconf build-essential zlib1g-dev libgmp-dev curl libncurses5 libtinfo5 libncurses5-dev libtinfo-dev
212+
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_INSTALL_NO_STACK=1 sh
213+
- uses: actions/checkout@v1
214+
- name: Test
215+
run: |
216+
source ~/.ghcup/env
217+
cabal update
218+
cabal test
219+
220+
# We use github.com/haskell self-hosted runners for ARM testing.
221+
arm:
222+
runs-on: [self-hosted, Linux, ARM64]
223+
strategy:
224+
fail-fast: true
225+
matrix:
226+
arch: [arm32v7, arm64v8]
227+
steps:
228+
- uses: docker://hasufell/arm64v8-ubuntu-haskell:focal
229+
name: Cleanup
230+
with:
231+
args: "find . -mindepth 1 -maxdepth 1 -exec rm -rf -- {} +"
232+
233+
- name: Checkout code
234+
uses: actions/checkout@v3
235+
236+
- if: matrix.arch == 'arm32v7'
237+
uses: docker://hasufell/arm32v7-ubuntu-haskell:focal
238+
name: Run build (arm32v7 linux)
239+
with:
240+
args: sh -c "cabal update && cabal test"
241+
242+
- if: matrix.arch == 'arm64v8'
243+
uses: docker://hasufell/arm64v8-ubuntu-haskell:focal
244+
name: Run build (arm64v8 linux)
245+
with:
246+
args: sh -c "cabal update && cabal test"

0 commit comments

Comments
 (0)