|
30 | 30 | uses: haskell-actions/setup@v2 |
31 | 31 | with: |
32 | 32 | ghc-version: ${{ matrix.ghc }} |
33 | | - cabal-version: '3.10.1.0' |
| 33 | + cabal-version: '3.10.3.0' |
34 | 34 |
|
35 | 35 | - name: Cache |
36 | 36 | uses: actions/cache@v4 |
|
44 | 44 |
|
45 | 45 | - name: Test |
46 | 46 | run: cabal test all --enable-tests --test-show-details=direct |
| 47 | + |
| 48 | + alpine-32bit: |
| 49 | + name: Alpine Linux, musl, 32-bit |
| 50 | + runs-on: ubuntu-latest |
| 51 | + env: |
| 52 | + CC: "gcc" |
| 53 | + strategy: |
| 54 | + matrix: |
| 55 | + ghc: ['9.2.8'] |
| 56 | + steps: |
| 57 | + - name: Checkout |
| 58 | + uses: actions/checkout@v4 |
| 59 | + |
| 60 | + - name: "Setup Alpine Linux" |
| 61 | + uses: jirutka/setup-alpine@v1 |
| 62 | + with: |
| 63 | + arch: x86 |
| 64 | + branch: v3.17 |
| 65 | + packages: > |
| 66 | + binutils-gold |
| 67 | + curl |
| 68 | + gcc |
| 69 | + g++ |
| 70 | + git |
| 71 | + gmp-dev |
| 72 | + libc-dev |
| 73 | + libffi-dev |
| 74 | + make |
| 75 | + musl-dev |
| 76 | + ncurses-dev |
| 77 | + openssh-client |
| 78 | + perl |
| 79 | + tar |
| 80 | + zlib-dev |
| 81 | + zlib-static |
| 82 | + |
| 83 | + - name: "Setup" |
| 84 | + shell: alpine.sh {0} |
| 85 | + run: | |
| 86 | + gcc --version |
| 87 | + make --version |
| 88 | + curl https://downloads.haskell.org/ghcup/0.1.22.0/i386-linux-ghcup-0.1.22.0 > ghcup |
| 89 | + chmod a+x ghcup |
| 90 | + whoami |
| 91 | + echo $HOME |
| 92 | + GHCUP_INSTALL_BASE_PREFIX=$HOME ./ghcup install cabal 3.10.3.0 --set |
| 93 | + GHCUP_INSTALL_BASE_PREFIX=$HOME ./ghcup install ghc ${{matrix.ghc }} --set |
| 94 | + |
| 95 | + - name: Update |
| 96 | + shell: alpine.sh {0} |
| 97 | + run: | |
| 98 | + export PATH=$HOME/.ghcup/bin:$PATH |
| 99 | + cabal update |
| 100 | + |
| 101 | + - name: Build |
| 102 | + shell: alpine.sh {0} |
| 103 | + run: | |
| 104 | + export PATH=$HOME/.ghcup/bin:$PATH |
| 105 | + cabal build all --enable-tests |
| 106 | + |
| 107 | + - name: Test |
| 108 | + shell: alpine.sh {0} |
| 109 | + run: | |
| 110 | + export PATH=$HOME/.ghcup/bin:$PATH |
| 111 | + cabal test all --enable-tests --test-show-details=direct |
0 commit comments