Skip to content

Commit

Permalink
Replace i386 with emulated arm. The i386 is too unstable and could go…
Browse files Browse the repository at this point in the history
… away soon anyway
  • Loading branch information
sergv committed Dec 15, 2024
1 parent a17f372 commit 8164cff
Showing 1 changed file with 17 additions and 57 deletions.
74 changes: 17 additions & 57 deletions .github/workflows/haskell-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,65 +86,25 @@ jobs:
cd ../vector-quicksort-*/
cabal check
i386:
emulated:
runs-on: ubuntu-latest
container:
image: i386/ubuntu:bionic

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
ghc:
- "9.2"
- "9.4"
- "9.6"

arch: ['armv7', 'aarch64']
steps:
- name: Install
run: |
apt-get update -y
apt-get install -y autoconf build-essential zlib1g-dev libgmp-dev curl libncurses5 libtinfo5 libncurses5-dev libtinfo-dev
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_MINIMAL=1 sh
source ~/.ghcup/env
ghcup install ghc --set ${{ matrix.ghc }}
ghcup install cabal latest
# This version must stay old enough to remain compatible with the container image.
- uses: actions/checkout@v1

- name: Cabal update
run: |
source ~/.ghcup/env
cabal --version
- name: Unpack
run: |
source ~/.ghcup/env
cabal update
cabal sdist --ignore-project --output-directory ..
cd ..
cabal get vector-quicksort-*.tar.gz
- name: Build
run: |
source ~/.ghcup/env
project_file="$(pwd)/cabal.project.test"
cd ../vector-quicksort-*/
cabal build --project-file "$project_file" --enable-tests --enable-benchmarks all
- name: Test
run: |
export LANG="C.UTF-8"
source ~/.ghcup/env
project_file="$(pwd)/cabal.project.test"
cd ../vector-quicksort-*/
cabal run --project-file "$project_file" test -- --quickcheck-tests=10000 --quickcheck-max-size=256
cabal bench --project-file "$project_file" --benchmark-options='--stdev 100 --timeout 600' all
- uses: actions/checkout@v4
- uses: uraimo/run-on-arch-action@v2
timeout-minutes: 60
with:
arch: ${{ matrix.arch }}
distro: ubuntu_rolling
githubToken: ${{ github.token }}
install: |
apt-get update -y
apt-get install -y curl ghc cabal-install libghc-tasty-quickcheck-dev libghc-tasty-hunit-dev
run: |
project_file="$(pwd)/cabal.project.test"
cabal build --project-file "$project_file" --enable-tests --enable-benchmarks all
cabal run --project-file "$project_file" test -- --quickcheck-tests=10000 --quickcheck-max-size=256
cabal run --project-file "$project_file" bench -- --stdev 100 --timeout 600

0 comments on commit 8164cff

Please sign in to comment.