From ffc422662ee9ef768c6698d6875cf39fdf28bab6 Mon Sep 17 00:00:00 2001 From: Sergey Vinokurov Date: Sun, 15 Dec 2024 18:30:19 +0000 Subject: [PATCH] Add x86 build --- .github/workflows/haskell-ci.yaml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/haskell-ci.yaml b/.github/workflows/haskell-ci.yaml index d2bd4b8..27fc0e6 100644 --- a/.github/workflows/haskell-ci.yaml +++ b/.github/workflows/haskell-ci.yaml @@ -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 + i686: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install + run: | + sudo dpkg --add-architecture i686 + sudo apt-get update -y + sudo apt-get install -y curl ghc:i686 cabal-install:i686 libghc-tasty-quickcheck-dev:i686 libghc-tasty-hunit-dev:i686 + + - uses: actions/cache@v4 + name: Cache cabal store + with: + path: ~/.cabal/store + key: ${{ runner.os }}-i686-${{ 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: