Skip to content

Commit

Permalink
CI: Use outputs from haskell/actions to set up env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
maoe committed Feb 20, 2021
1 parent 1cee8ec commit 5b6abd8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,17 @@ jobs:
echo "LANG=C.UTF-8" >> $GITHUB_ENV
echo "CABAL_DIR=$HOME/.cabal" >> $GITHUB_ENV
echo "CABAL_CONFIG=$HOME/.cabal/config" >> $GITHUB_ENV
HC=/opt/ghc/$GHC_VERSION/bin/ghc
HC=${{ steps.setup-haskell-cabal.outputs.ghc-exe }}
echo "HC=$HC" >> $GITHUB_ENV
echo "HCPKG=/opt/ghc/$GHC_VERSION/bin/ghc-pkg" >> $GITHUB_ENV
echo "HADDOCK=/opt/ghc/$GHC_VERSION/bin/haddock" >> $GITHUB_ENV
echo "CABAL=/opt/cabal/3.2/bin/cabal -vnormal+nowrap" >> $GITHUB_ENV
echo "HCPKG=${{ steps.setup-haskell-cabal.outputs.ghc-path }}/ghc-pkg" >> $GITHUB_ENV
echo "HADDOCK=${{ steps.setup-haskell-cabal.outputs.ghc-path }}/haddock" >> $GITHUB_ENV
echo "CABAL=${{ steps.setup-haskell-cabal.outputs.cabal-exe }} -vnormal+nowrap" >> $GITHUB_ENV
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
echo "HCNUMVER=$HCNUMVER" >> $GITHUB_ENV
echo "ARG_TESTS=--enable-tests" >> $GITHUB_ENV
echo "ARG_BENCH=--enable-benchmarks" >> $GITHUB_ENV
echo "HEADHACKAGE=false" >> $GITHUB_ENV
echo "ARG_COMPILER=--ghc --with-compiler=/opt/ghc/$GHC_VERSION/bin/ghc" >> $GITHUB_ENV
echo "ARG_COMPILER=--ghc --with-compiler=${{ steps.setup-haskell-cabal.outputs.ghc-exe }}" >> $GITHUB_ENV
echo "GHCJSARITH=0" >> $GITHUB_ENV
env:
GHC_VERSION: ${{ matrix.ghc }}
Expand Down

0 comments on commit 5b6abd8

Please sign in to comment.