From 7e3c61d6ce04ae42e2d632d09bc321cf79de4088 Mon Sep 17 00:00:00 2001 From: Andreas Abel Date: Fri, 3 May 2024 20:28:28 +0200 Subject: [PATCH] CI: stack no longer preinstalled on macos-latest --- .github/workflows/stack.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stack.yml b/.github/workflows/stack.yml index abc3c9e..b6df1ad 100644 --- a/.github/workflows/stack.yml +++ b/.github/workflows/stack.yml @@ -17,7 +17,7 @@ defaults: jobs: stack: - name: ${{ matrix.os }} Stack ${{ matrix.plan.resolver }} / ${{ matrix.plan.ghc }} + name: ${{ matrix.os }} Stack ${{ matrix.plan.resolver }} strategy: fail-fast: false matrix: @@ -33,6 +33,11 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: haskell-actions/setup@v2 + with: + enable-stack: true + stack-no-global: true + - name: Configure run: | $STACK init @@ -53,7 +58,7 @@ jobs: # echo "STACK_ROOT=${STACK_ROOT}" >> "${GITHUB_ENV}" - name: Set up for the ICU library (macOS) - if: ${{ runner.os == 'macOS' }} + if: runner.os == 'macOS' run: | ICU4C=$(brew --prefix)/opt/icu4c echo "PKG_CONFIG_PATH=${ICU4C}/lib/pkgconfig" >> "${GITHUB_ENV}"