Skip to content

CI: try to fix the Windows build a different way #3

CI: try to fix the Windows build a different way

CI: try to fix the Windows build a different way #3

Workflow file for this run

name: build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
cache: 'gradle'
- name: Enable MinGW
if: runner.os == 'Windows'
# https://stackoverflow.com/a/77298592/1207769
run: |
$env:PATH = "C:\msys64\usr\bin;$env:PATH"
- name: Build
run: make compile-all
- uses: actions/upload-artifact@v4
with:
name: launcher-${{ matrix.os }}
path: |
build/launcher*
build/bin