Add --with-repl flag to modify program the "repl" starts with #13499
This file contains hidden or 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
name: Bootstrap | |
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency. | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
release: | |
types: | |
- created | |
jobs: | |
bootstrap: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
ghc: ["9.2.8", "9.4.8", "9.6.7", "9.8.4", "9.10.1", "9.12.2"] | |
include: | |
- os: macos-latest | |
ghc: "9.2.8" | |
name: Bootstrap ${{ matrix.os }} ghc-${{ matrix.ghc }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Work around XDG directories existence (haskell-actions/setup#62) | |
if: ${{ runner.os == 'macOS' }} | |
run: | | |
rm -rf ~/.config/cabal | |
rm -rf ~/.cache/cabal | |
- uses: actions/cache@v4 | |
name: Cache the downloads | |
id: bootstrap-cache | |
with: | |
path: "/home/runner/work/cabal/cabal/_build" | |
key: bootstrap-${{ runner.os }}-${{ matrix.ghc }}-20221115-${{ github.sha }} | |
restore-keys: bootstrap-${{ runner.os }}-${{ matrix.ghc }}-20221115- | |
- uses: actions/checkout@v4 | |
- uses: haskell-actions/setup@v2 | |
with: | |
ghc-version: ${{ matrix.ghc }} | |
- name: bootstrap.py | |
run: | | |
GHC_VERSION=${{ matrix.ghc }} | |
# Fetch the bootstrap sources (we use linux dependencies also on macos) | |
python3 bootstrap/bootstrap.py -d bootstrap/linux-$GHC_VERSION.json fetch | |
# Bootstrap using the bootstrap sources | |
python3 bootstrap/bootstrap.py --bootstrap-sources bootstrap-sources.tar.gz | |
- name: Smoke test | |
run: | | |
_build/bin/cabal --version | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: cabal-${{ matrix.os }}-${{ matrix.ghc }}-bootstrapped | |
path: _build/artifacts/* | |
# We use this job as a summary of the workflow | |
# It will fail if any of the previous jobs does it | |
# This way we can use it exclusively in branch protection rules | |
# and abstract away the concrete jobs of the workflow, including their names | |
bootstrap-post-job: | |
if: always() | |
name: Bootstrap post job | |
runs-on: ubuntu-latest | |
# IMPORTANT! Any job added to the workflow should be added here too | |
needs: [bootstrap] | |
steps: | |
- run: | | |
echo "jobs info: ${{ toJSON(needs) }}" | |
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') | |
run: exit 1 |