Skip to content

Update simple CI, add 32bit tester #303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 70 additions & 5 deletions .github/workflows/simple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, windows-latest]
ghc: ['8.10','9.0','9.2','9.4.8','9.6.5','9.8.2']
ghc: ['9.2','9.4.8','9.6.5','9.8.2']
fail-fast: false
steps:
- name: Set git to use LF
Expand All @@ -23,17 +23,17 @@ jobs:
git config --global core.eol lf

- name: Checkout
uses: actions/checkout@v3.0.2
uses: actions/checkout@v4

- name: Set up Haskell
id: setup-haskell
uses: haskell/actions/setup@v2
uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: '3.10.1.0'
cabal-version: '3.10.3.0'

- name: Cache
uses: actions/cache@v2.1.3
uses: actions/cache@v4
with:
path: ${{ steps.setup-haskell.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ github.sha }}
Expand All @@ -44,3 +44,68 @@ jobs:

- 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.2.8']
steps:
- name: Checkout
uses: actions/checkout@v4

- name: "Setup 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
zlib-dev
zlib-static

- name: "Setup"
shell: alpine.sh {0}
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
whoami
echo $HOME
GHCUP_INSTALL_BASE_PREFIX=$HOME ./ghcup install cabal 3.10.3.0 --set
GHCUP_INSTALL_BASE_PREFIX=$HOME ./ghcup install ghc ${{matrix.ghc }} --set

- name: Update
shell: alpine.sh {0}
run: |
export PATH=$HOME/.ghcup/bin:$PATH
cabal update

- name: Build
shell: alpine.sh {0}
run: |
export PATH=$HOME/.ghcup/bin:$PATH
cabal build all --enable-tests

- name: Test
shell: alpine.sh {0}
run: |
export PATH=$HOME/.ghcup/bin:$PATH
cabal test all --enable-tests --test-show-details=direct
Loading