Skip to content

Update simple CI, add 32bit tester #96

Update simple CI, add 32bit tester

Update simple CI, add 32bit tester #96

Workflow file for this run

name: Simple
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
native:
name: "Simple: GHC ${{ matrix.ghc }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest]
ghc: ['8.10','9.0','9.2','9.4.8','9.6.5','9.8.2']
fail-fast: false
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout
uses: actions/checkout@v4
- name: Set up Haskell
id: setup-haskell
uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: '3.10.3.0'
- name: Cache
uses: actions/cache@v4
with:
path: ${{ steps.setup-haskell.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ github.sha }}
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-
- name: Build
run: cabal build all --enable-tests
- name: Test
run: cabal test all --enable-tests --test-show-details=direct
alpine-32bit:
name: Alpine Linux, musl, 32-bit
runs-on: ubuntu-latest
env:
CC: "gcc"
strategy:
matrix:
ghc: ['9.6.5','9.8.2']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: "Setup latest Alpine Linux"
uses: jirutka/setup-alpine@v1
with:
arch: x86
branch: v3.17
packages: >
binutils-gold
curl
gcc
g++
git
gmp-dev
libc-dev
libffi-dev
make
musl-dev
ncurses-dev
openssh-client
perl
tar
tmux
zlib-dev
zlib-static
- name: "Setup"
run: |
gcc --version
make --version
curl https://downloads.haskell.org/ghcup/0.1.22.0/i386-linux-ghcup-0.1.22.0 > ghcup
chmod a+x ghcup
ghcup install ghc ${{matrix.ghc }}
ghcup install cabal 3.10.3.0
- name: Build
run: cabal build all --enable-tests
- name: Test
run: cabal test all --enable-tests --test-show-details=direct