Skip to content

Commit

Permalink
Experiment with alternate msys2 environments in CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewFluet committed Jan 2, 2025
1 parent c555607 commit 611d3cb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/actions/install-bootstrap-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ runs:
shell: 'msys2 {0}'
run: |
# Install dependencies (windows)
pacboy --noconfirm -S --needed gcc:p gmp-devel:
pacboy --noconfirm -S --needed $(if [ ${MSYSTEM} == "CLANG64" ]; then echo clang:p ; else echo gcc:p; fi) gmp-devel:
if [[ "${{ inputs.install-llvm }}" == "true" ]]; then pacboy --noconfirm -S --needed llvm:p ; fi
mkdir boot && cd boot
curl -sOL https://github.com/MLton/mlton/releases/download/on-20241230-release/mlton-20241230-1.amd64-mingw.windows-2022_MINGW64.tgz
tar xzf https://github.com/MLton/mlton/releases/download/on-20241230-release/mlton-20241230-1.amd64-mingw.windows-2022_MINGW64.tgz --exclude='*/share' --strip-components=1
rm https://github.com/MLton/mlton/releases/download/on-20241230-release/mlton-20241230-1.amd64-mingw.windows-2022_MINGW64.tgz
tar xzf mlton-20241230-1.amd64-mingw.windows-2022_MINGW64.tgz --exclude='*/share' --strip-components=1
rm mlton-20241230-1.amd64-mingw.windows-2022_MINGW64.tgz
26 changes: 24 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,28 @@ jobs:
cc: "gcc"
codegen: "c"

- runner: windows-2022
msystem: ucrt64
cc: "gcc"
codegen: "amd64"
- runner: windows-2022
msystem: ucrt64
cc: "gcc"
codegen: "c"

- runner: windows-2022
msystem: clang64
cc: "clang"
codegen: "amd64"
- runner: windows-2022
msystem: clang64
cc: "clang"
codegen: "c"
- runner: windows-2022
msystem: clang64
cc: "clang"
codegen: "llvm"

runs-on: ${{ matrix.runner }}

defaults:
Expand Down Expand Up @@ -128,11 +150,11 @@ jobs:
$( if [[ -n "$WITH_GMP_DIR" ]]; then echo "WITH_GMP_DIR=$WITH_GMP_DIR"; fi ) \
WITH_ALL_RUNTIME=true \
WITH_DBG_RUNTIME=false \
MLTON_BINARY_RELEASE_SUFFIX=".${{ matrix.runner }}_${{ matrix.cc }}_${{ matrix.codegen }}" \
MLTON_BINARY_RELEASE_SUFFIX=".${{ matrix.runner }}${{ matrix.msystem && format('_msys2_{0}', matrix.msystem) || '' }}_${{ matrix.cc }}_${{ matrix.codegen }}" \
binary-release
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: mlton.${{ matrix.runner }}_${{ matrix.cc }}_${{ matrix.codegen }}
name: mlton..${{ matrix.runner }}${{ matrix.msystem && format('_msys2_{0}', matrix.msystem) || '' }}_${{ matrix.cc }}_${{ matrix.codegen }}
path: ./*.tgz

0 comments on commit 611d3cb

Please sign in to comment.