Skip to content

Commit

Permalink
Add x86 build
Browse files Browse the repository at this point in the history
  • Loading branch information
sergv committed Dec 15, 2024
1 parent 0baac6a commit 2003a9a
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/haskell-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,35 @@ jobs:
cabal test --project-file "$project_file" --constraint "atomic-counter +no-cmm" --test-show-details=direct all
cabal bench --project-file "$project_file" --constraint "atomic-counter +no-cmm" --benchmark-options='--stdev 100 --timeout 100' all
i386:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install
run: |
sudo dpkg --add-architecture i386
sudo apt-get update -y
sudo apt-get install -y curl ghc:i386 cabal-install:i386 libghc-tasty-quickcheck-dev:i386 libghc-tasty-hunit-dev:i386
- uses: actions/cache@v4
name: Cache cabal store
with:
path: ~/.cabal/store
key: ${{ runner.os }}-i386-${{ github.sha }}
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-

- name: Build & Test
run: |
project_file="$(pwd)/cabal.project.ci"
cabal update
cabal build --project-file "$project_file" --constraint "atomic-counter +no-cmm" all
cabal test --project-file "$project_file" --constraint "atomic-counter +no-cmm" --test-show-details=direct all
cabal bench --project-file "$project_file" --constraint "atomic-counter +no-cmm" --benchmark-options='--stdev 100 --timeout 100' all
emulated:
runs-on: ubuntu-latest
strategy:
fail-fast: true
fail-fast: false
matrix:
arch: ['armv7', 'aarch64']
steps:
Expand Down

0 comments on commit 2003a9a

Please sign in to comment.