Skip to content

Commit

Permalink
WIP CI debug
Browse files Browse the repository at this point in the history
  • Loading branch information
uhbif19 committed Apr 18, 2024
1 parent 954662e commit 7c1be1f
Showing 1 changed file with 22 additions and 26 deletions.
48 changes: 22 additions & 26 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,28 +122,28 @@ jobs:
uses: actions/checkout@v3
with:
path: source
- name: sdist
run: |
mkdir -p sdist
$CABAL sdist all --output-dir $GITHUB_WORKSPACE/sdist
- name: unpack
run: |
mkdir -p unpacked
find sdist -maxdepth 1 -type f -name '*.tar.gz' -exec tar -C $GITHUB_WORKSPACE/unpacked -xzvf {} \;
- name: dump install plan
run: |
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
cabal-plan
- name: restore cache
uses: actions/cache/restore@v3
with:
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
path: ~/.cabal/store
restore-keys: ${{ runner.os }}-${{ matrix.compiler }}-
- name: install dependencies
run: |
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --dependencies-only -j2 all
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dependencies-only -j2 all
# - name: sdist
# run: |
# mkdir -p sdist
# $CABAL sdist all --output-dir $GITHUB_WORKSPACE/sdist
# - name: unpack
# run: |
# mkdir -p unpacked
# find sdist -maxdepth 1 -type f -name '*.tar.gz' -exec tar -C $GITHUB_WORKSPACE/unpacked -xzvf {} \;
# - name: dump install plan
# run: |
# $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
# cabal-plan
# - name: restore cache
# uses: actions/cache/restore@v3
# with:
# key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
# path: ~/.cabal/store
# restore-keys: ${{ runner.os }}-${{ matrix.compiler }}-
# - name: install dependencies
# run: |
# $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --dependencies-only -j2 all
# $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dependencies-only -j2 all
- name: build w/o tests
run: |
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
Expand All @@ -157,10 +157,6 @@ jobs:
- name: haddock
run: |
$CABAL v2-haddock --disable-documentation --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
- name: unconstrained build
run: |
rm -f cabal.project.local
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
- name: save cache
uses: actions/cache/save@v3
if: always()
Expand Down

0 comments on commit 7c1be1f

Please sign in to comment.