Skip to content
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
41 changes: 22 additions & 19 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- os: windows-latest
ghc: '9.8'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install dependencies (Ubuntu)
if: runner.os == 'Linux'
Expand All @@ -37,13 +37,9 @@ jobs:

- name: Install GHCup
uses: haskell/ghcup-setup@v1

- name: Install ghc/cabal
run: |
set -eux
ghcup install ghc --set ${{ matrix.ghc }}
ghcup install cabal --set latest
shell: bash
with:
ghc: ${{ matrix.ghc }}
cabal: latest

- name: Build
run: |
Expand Down Expand Up @@ -101,6 +97,7 @@ jobs:
runs-on: ${{ matrix.os }}
env:
MACOSX_DEPLOYMENT_TARGET: 10.13
HOMEBREW_CHANGE_ARCH_TO_ARM: 1
strategy:
fail-fast: false
matrix:
Expand All @@ -115,22 +112,25 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Install GHCup
uses: haskell/ghcup-setup@v1
- name: Install prerequisites
run: |
bash .github/scripts/brew.sh git coreutils llvm@13 autoconf automake
echo PATH="$HOME/.brew/bin:$HOME/.brew/sbin:$HOME/.brew/opt/llvm@13/bin:$PATH" >> "$GITHUB_ENV"
echo CC="$HOME/.brew/opt/llvm@13/bin/clang" >> "$GITHUB_ENV"
echo CXX="$HOME/.brew/opt/llvm@13/bin/clang++" >> "$GITHUB_ENV"
echo LD=ld >> "$GITHUB_ENV"
echo AR="$HOME/.brew/opt/llvm@13/bin/llvm-ar" >> "$GITHUB_ENV"
echo RANLIB="$HOME/.brew/opt/llvm@13/bin/llvm-ranlib" >> "$GITHUB_ENV"

- uses: haskell/ghcup-setup@v1
with:
ghc: ${{ matrix.ghc }}
cabal: latest

- name: Run build
run: |
bash .github/scripts/brew.sh git coreutils llvm@13 autoconf automake
export PATH="$HOME/.brew/bin:$HOME/.brew/sbin:$HOME/.brew/opt/llvm@13/bin:$PATH"
export CC="$HOME/.brew/opt/llvm@13/bin/clang"
export CXX="$HOME/.brew/opt/llvm@13/bin/clang++"
export LD=ld
export AR="$HOME/.brew/opt/llvm@13/bin/llvm-ar"
export RANLIB="$HOME/.brew/opt/llvm@13/bin/llvm-ranlib"
cabal update
cabal test
env:
HOMEBREW_CHANGE_ARCH_TO_ARM: 1

freebsd:
runs-on: ${{ matrix.os }}
Expand All @@ -152,6 +152,9 @@ jobs:

- name: Install GHCup
uses: haskell/ghcup-setup@v1
with:
ghc: ${{ matrix.ghc }}
cabal: latest

- name: Run build
run: |
Expand Down
Loading