Bootstrap tests #1952
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 tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| tags: | |
| - 'v*' | |
| pull_request: | |
| branches: | |
| - master | |
| schedule: | |
| - cron: '0 2 * * *' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| GHCUP_INSTALL_BASE_PREFIX: ${{ github.workspace }} | |
| jobs: | |
| bootstrap: | |
| name: bootstrap | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| BOOTSTRAP_HASKELL_CABAL_VERSION: 3.12.1.0 | |
| BOOTSTRAP_HASKELL_GHC_VERSION: 9.6.7 | |
| BOOTSTRAP_HASKELL_NONINTERACTIVE: yes | |
| BOOTSTRAP_HASKELL_ADJUST_BASHRC: yes | |
| ARCH: 64 | |
| JSON_VERSION: "0.0.7" | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| DISTRO: Ubuntu | |
| - os: macOS-15-intel | |
| DISTRO: na | |
| - os: windows-latest | |
| DISTRO: na | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: 'true' | |
| - if: runner.os == 'Linux' | |
| name: Install Linux dependencies | |
| run: | | |
| set -eux | |
| sudo apt-get update -y | |
| sudo apt-get install -y libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl gzip | |
| - if: runner.os == 'Linux' | |
| name: Run bootstrap | |
| run: &bootstrap | | |
| set -eux | |
| ./scripts/bootstrap/bootstrap-haskell | |
| cat "${GHCUP_INSTALL_BASE_PREFIX}/.ghcup/env" | |
| . "${GHCUP_INSTALL_BASE_PREFIX}/.ghcup/env" | |
| [ "$(ghc --numeric-version)" = "${BOOTSTRAP_HASKELL_GHC_VERSION}" ] | |
| # https://github.com/actions/runner-images/issues/7061 | |
| [ "$(ghcup config | grep --color=never meta-mode)" = "meta-mode: Lax" ] | |
| shell: bash | |
| env: | |
| DISTRO: ${{ matrix.DISTRO }} | |
| - if: runner.os == 'macOS' | |
| name: Run bootstrap | |
| run: *bootstrap | |
| env: | |
| DISTRO: ${{ matrix.DISTRO }} | |
| - if: runner.os == 'Windows' | |
| name: Run bootstrap | |
| run: | | |
| $ErrorActionPreference = [System.Management.Automation.ActionPreference]::Stop | |
| $curDir = Get-Location | |
| Write-Host "Current Working Directory: $curDir" | |
| Set-ExecutionPolicy Bypass -Scope Process -Force;[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; try { & ([ScriptBlock]::Create((Invoke-WebRequest https://raw.githubusercontent.com/${{ github.repository }}/${{ github.sha }}/scripts/bootstrap/bootstrap-haskell.ps1 -UseBasicParsing))) -InstallDir ${GITHUB_WORKSPACE} -BootstrapUrl ("{0}/scripts/bootstrap/bootstrap-haskell" -f $curDir) -InBash -Msys2Env "MINGW64" } catch { Write-Error $_ } | |
| shell: pwsh |