Skip to content

Commit

Permalink
Cabal config after ghcup install cabal --latest
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasabel committed Jan 28, 2024
1 parent 148bbb6 commit 9a518f8
Showing 1 changed file with 88 additions and 4 deletions.
92 changes: 88 additions & 4 deletions .github/workflows/cabal-pristine.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: cabal-pristine
name: cabal-config

on:
- push
Expand All @@ -15,12 +15,12 @@ jobs:
fail-fast: false
matrix:
os:
# - macOS-11
- macOS-11
- macOS-12
- macOS-13
# - ubuntu-20.04
- ubuntu-20.04
- ubuntu-22.04
# - windows-2019
- windows-2019
- windows-2022
runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -90,3 +90,87 @@ jobs:
- if: ${{ runner.os != 'Windows' }}
run: |
ls -al ~/.local/bin || true
cabal-latest:
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:

- run: |
ghcup install cabal --set
- name: Cabal version, config file
run: |
echo CABAL_EXE="$(which cabal)" >> "${GITHUB_ENV}"
echo CABAL_VERSION="$(cabal --numeric-version)" >> "${GITHUB_ENV}"
echo CABAL_CONFIG_FROM_HELP="$(cabal --help | tail -1)" >> "${GITHUB_ENV}"
cabal --help || true
- name: Home
run: |
cd ~
pwd
ls -al
- name: Current directory
run: |
pwd
ls -al
- name: Cabal config file
run: |
cat "${CABAL_CONFIG_FROM_HELP}" || true
## Windows

- if: ${{ runner.os == 'Windows' }}
run: |
ls -al /c/cabal || true
- if: ${{ runner.os == 'Windows' }}
run: |
ls -al "$APPDATA" || true
- if: ${{ runner.os == 'Windows' }}
run: |
ls -al "$APPDATA/cabal" || true
- if: ${{ runner.os == 'Windows' }}
run: |
ls -al "$LOCALAPPDATA" || true
- if: ${{ runner.os == 'Windows' }}
run: |
ls -al "$LOCALAPPDATA/cabal" || true
## Non-windows
- if: ${{ runner.os != 'Windows' }}
run: |
ls -al ~/.cabal || true
- if: ${{ runner.os != 'Windows' }}
run: |
ls -al ~/.config/cabal || true
- if: ${{ runner.os != 'Windows' }}
run: |
ls -al ~/.cache/cabal || true
- if: ${{ runner.os != 'Windows' }}
run: |
ls -al ~/.local/state/cabal || true
- if: ${{ runner.os != 'Windows' }}
run: |
ls -al ~/.local/bin || true

0 comments on commit 9a518f8

Please sign in to comment.