New app: check cabal directories on GHA runners #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
- push | |
- pull_request | |
- workflow_dispatch | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
pkg-config: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
# - macOS-11 | |
- macOS-12 | |
- macOS-13 | |
# - ubuntu-20.04 | |
- ubuntu-22.04 | |
# - windows-2019 | |
- windows-2022 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Cabal version, config file | |
run: | | |
echo "CABAL_EXE=$(which cabal)" >> "${GITHUB_ENV}" | |
echo "CABAL_VERSION=$(cabal --version)" >> "${GITHUB_ENV}" | |
echo "CABAL_CONFIG_FROM_HELP=$(cabal --help | tail -1)" >> "${GITHUB_ENV}" | |
## Windows | |
- if: ${{ runner.os == 'Windows' }} | |
run: | | |
ls -al c:/cabal | |
- if: ${{ runner.os == 'Windows' }} | |
run: | | |
ls -al "$APPDATA/cabal" | |
- if: ${{ runner.os == 'Windows' }} | |
run: | | |
ls -al "$LOCALAPPDATA/cabal" | |
## Non-windows | |
- if: ${{ runner.os != 'Windows' }} | |
run: | | |
ls -al ~/.cabal | |
- if: ${{ runner.os != 'Windows' }} | |
run: | | |
ls -al ~/.config/cabal | |
- if: ${{ runner.os != 'Windows' }} | |
run: | | |
ls -al ~/.cache/cabal | |
- if: ${{ runner.os != 'Windows' }} | |
run: | | |
ls -al ~/.local/state/cabal | |
- if: ${{ runner.os != 'Windows' }} | |
run: | | |
ls -al ~/.local/bin |