From 7c1be1f7c730038cc9c5be2835a1ca782bc11456 Mon Sep 17 00:00:00 2001 From: Gregory Gerasev Date: Thu, 18 Apr 2024 23:09:54 +0700 Subject: [PATCH] WIP CI debug --- .github/workflows/haskell-ci.yml | 48 +++++++++++++++----------------- 1 file changed, 22 insertions(+), 26 deletions(-) diff --git a/.github/workflows/haskell-ci.yml b/.github/workflows/haskell-ci.yml index d4b4f36..6876580 100644 --- a/.github/workflows/haskell-ci.yml +++ b/.github/workflows/haskell-ci.yml @@ -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 @@ -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()