maplibre-rs/.github/workflows/demo-windows.yml
Max Ammann 146456a311
Switch to powershell (#209)
* Switch to powershell
2022-11-12 15:32:12 +01:00

39 lines
1.2 KiB
YAML

name: Build demo for Windows
on:
workflow_call:
jobs:
demo-windows:
name: Build
runs-on: windows-2022
steps:
- name: Switch to msys2
shell: powershell
run: echo "C:\msys64\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Install mysys2 dependencies
shell: powershell
run: pacman -S --noconfirm unzip
- name: Show PATH
shell: powershell
run: Write-Host $env:path
- uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup
with:
targets: x86_64-pc-windows-msvc
- name: Build
shell: powershell
run: cargo build -p maplibre-demo --release --target x86_64-pc-windows-msvc
- name: Check x86_64 windows
shell: powershell
run: just check maplibre-demo x86_64-pc-windows-msvc
- name: Test x86_64 windows
shell: powershell
run: just test maplibre-demo x86_64-pc-windows-msvc
- uses: actions/upload-artifact@v3
with:
name: maplibre-x86_64-windows-demo
path: target/x86_64-pc-windows-msvc/release/maplibre-demo.exe
if-no-files-found: error