maplibre-rs/.github/workflows/demo-windows.yml
Maximilian Ammann 7b41971b67 Fix install
2022-10-23 12:35:28 +02:00

39 lines
1.1 KiB
YAML

name: Build demo for Windows
on:
workflow_call:
jobs:
demo-windows:
name: Build
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- name: Setup binstall
uses: ./.github/actions/setup-binstall
- name: Install just
uses: ./.github/actions/cargo-install
with:
name: just
- name: Install toolchain
shell: bash
run: |
just stable-toolchain
just stable-targets x86_64-pc-windows-msvc
- uses: Swatinem/rust-cache@v2
- uses: ilammy/msvc-dev-cmd@v1 # Provide access to lib.exe
- name: Build
shell: bash
run: cargo build -p maplibre-demo --release --target x86_64-pc-windows-msvc
- name: Check x86_64 windows
shell: bash
run: just check maplibre-demo x86_64-pc-windows-msvc
- name: Test x86_64 windows
shell: bash
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