Skip to content

Try echoing env var correctly #591

Try echoing env var correctly

Try echoing env var correctly #591

Workflow file for this run

name: sandwich
on:
pull_request:
push:
jobs:
cabal:
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
ghc:
# - "8.6.5"
# - "8.8.4"
- "8.10.7"
- "9.0.2"
- "9.2.8"
- "9.4.8"
- "9.6.5"
- "9.8.1"
exclude:
# Access violation in generated code when executing data at 0x6d88
- os: windows-latest
ghc: 8.8.4
- os: macOS-latest
ghc: 8.6.5
- os: macOS-latest
ghc: 8.8.4
steps:
- uses: actions/checkout@v2
- name: Install dependencies (Windows)
if: runner.os == 'Windows'
run: |
pwd
echo "------------"
env
echo "++++++++++++"
echo "PGBIN: $PGBIN"
echo $PGBIN
echo "============"
- name: Print PATH
run: |
echo $env:PGBIN
echo "-------------"
echo $env:PATH
- uses: haskell-actions/setup@v2
id: setup-haskell-cabal
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: "latest"
- name: Freeze
run: |
cabal freeze
- uses: actions/cache/restore@v4
id: cache-restore
with:
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
- name: Build
run: |
cabal configure --enable-tests --enable-benchmarks --test-show-details=direct
cabal build all
- name: Test
run: |
cabal test all
- uses: actions/cache/save@v4
if: always() && steps.cache-restore.outputs.cache-hit != 'true'
with:
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}