Update Rust crate winit to 0.30.0 #428
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Pull build cache | |
id: cache-build | |
uses: actions/cache@v3 | |
with: | |
path: ./target | |
key: windows-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('./src') }}-${{ hashFiles('./launchers') }} | |
- name: Build | |
if: steps.cache-build.outputs.cache-hit != 'true' | |
run: cargo build | |
build-mac: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Pull build cache | |
id: cache-build | |
uses: actions/cache@v3 | |
with: | |
path: ./target | |
key: mac-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('./src') }}-${{ hashFiles('./launchers') }} | |
- name: Build | |
if: steps.cache-build.outputs.cache-hit != 'true' | |
run: cargo build | |
build-ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Pull build cache | |
id: cache-build | |
uses: actions/cache@v3 | |
with: | |
path: ./target | |
key: ubuntu-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('./src') }}-${{ hashFiles('./launchers') }} | |
- name: Get dependencies | |
if: steps.cache-build.outputs.cache-hit != 'true' | |
run: sudo apt install libasound2-dev libudev-dev pkg-config | |
- name: Build | |
if: steps.cache-build.outputs.cache-hit != 'true' | |
run: cargo build | |
build-wasm: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Pull build cache | |
id: cache-build | |
uses: actions/cache@v3 | |
with: | |
path: ./launchers/wasm/dist | |
key: wasm-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('./src') }}-${{ hashFiles('./launchers') }} | |
- name: Install Trunk | |
if: steps.cache-build.outputs.cache-hit != 'true' | |
uses: jetli/trunk-action@v0.4.0 | |
with: | |
version: "latest" | |
- name: Trunk Build | |
if: steps.cache-build.outputs.cache-hit != 'true' | |
run: trunk build |