dymokomi/luce-std
Source of release 0.7.0
0.7.0 / .github / workflows / windows.yml
name: Windows x64
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read
jobs:
windows:
runs-on: windows-2025
timeout-minutes: 60
env:
CC: gcc
steps:
- uses: actions/checkout@v7
with:
path: luce-std
# the compiler is built apart, with luce-std's main (correctness.yml says why)
- uses: actions/checkout@v7
with:
repository: dymokomi/luce-base
path: compiler/luce-base
- uses: actions/checkout@v7
with:
repository: dymokomi/luce-std
path: compiler/luce-std
- uses: actions/checkout@v7
with:
repository: dymokomi/luce-base
path: luce-base
- uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: true
install: >-
mingw-w64-ucrt-x86_64-gcc
mingw-w64-ucrt-x86_64-python
- name: Configure native library search
shell: msys2 {0}
run: echo "LIBRARY_PATH=$(cygpath -m /ucrt64/lib)" >> "$GITHUB_ENV"
- name: Build the compiler
working-directory: compiler/luce-base
shell: msys2 {0}
run: python tools/build_windows.py
- name: Module tests through both backends
working-directory: luce-std
shell: msys2 {0}
run: python tests/run.py --base ../compiler/luce-base/build/luce-base.exe --skip-programs
- name: Windows contracts
working-directory: luce-std
shell: msys2 {0}
run: |
python tools/test_windows_native.py --compiler ../compiler/luce-base/build/luce-base.exe
python tests/programs/net_protocols/run.py ../compiler/luce-base/build/luce-base.exe
python tests/programs/crash_report/run.py ../compiler/luce-base/build/luce-base.exe
python tests/programs/crash_follow/run.py ../compiler/luce-base/build/luce-base.exe
- name: Retain diagnostics
if: always()
uses: actions/upload-artifact@v7
with:
name: luce-std-windows-${{ github.sha }}
path: |
luce-std/build/*.json
luce-std/build/*.log
if-no-files-found: ignore