Skip to content

Add workflow for checking bootstrap on cygwin #1267

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/scripts/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ git describe --always

./scripts/bootstrap/bootstrap-haskell

[ "$(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" ]
# on windows remove the carriage return
[ "$(ghc --numeric-version | tr -d '\r\n')" = "${BOOTSTRAP_HASKELL_GHC_VERSION}" ]

# https://github.com/actions/runner-images/issues/7061
[ "$(ghcup config | grep --color=never meta-mode | tr -d '\r\n')" = "meta-mode: Lax" ]
3 changes: 0 additions & 3 deletions .github/scripts/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ if [ "${RUNNER_OS}" = "Windows" ] ; then
# on windows use pwd to get unix style path
CI_PROJECT_DIR="$(pwd)"
export CI_PROJECT_DIR
export GHCUP_INSTALL_BASE_PREFIX="/c"
export GHCUP_BIN="$GHCUP_INSTALL_BASE_PREFIX/ghcup/bin"
export PATH="$GHCUP_BIN:$PATH"
export CABAL_DIR="C:\\Users\\runneradmin\\AppData\\Roaming\\cabal"
else
export CI_PROJECT_DIR="${GITHUB_WORKSPACE}"
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/bootstrap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,28 @@ jobs:
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

bootstrap-windows-cygwin:
name: bootstrap-windows-cygwin
runs-on: windows-latest
env:
BOOTSTRAP_HASKELL_CABAL_VERSION: 3.12.1.0
BOOTSTRAP_HASKELL_GHC_VERSION: 9.6.7
BOOTSTRAP_HASKELL_NONINTERACTIVE: yes
ARCH: 64
JSON_VERSION: "0.0.7"
steps:
- run: git config --global core.autocrlf input
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: 'true'

- name: Install cygwin
uses: cygwin/cygwin-install-action@master
with:
install-dir: 'c:\cygwin64'

- name: Run bootstrap
run: |
sh ./.github/scripts/bootstrap.sh
Loading