From 2f14375469bfab78f22f8b890f4689e308888739 Mon Sep 17 00:00:00 2001 From: Andreas Abel Date: Sun, 28 Jan 2024 17:41:07 +0100 Subject: [PATCH] New app: check cabal directories on GHA runners --- .github/workflows/cabal-pristine.yml | 66 +++++++++++++++++++ .../{icu-windows.yml => icu-windows.yml.off} | 0 2 files changed, 66 insertions(+) create mode 100644 .github/workflows/cabal-pristine.yml rename .github/workflows/{icu-windows.yml => icu-windows.yml.off} (100%) diff --git a/.github/workflows/cabal-pristine.yml b/.github/workflows/cabal-pristine.yml new file mode 100644 index 0000000..f701a97 --- /dev/null +++ b/.github/workflows/cabal-pristine.yml @@ -0,0 +1,66 @@ +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 diff --git a/.github/workflows/icu-windows.yml b/.github/workflows/icu-windows.yml.off similarity index 100% rename from .github/workflows/icu-windows.yml rename to .github/workflows/icu-windows.yml.off