Workflow #18
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
on: | |
push: | |
branches: | |
- "*" | |
jobs: | |
check-windows: | |
name: Check Windows | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Prepare Rust | |
run: rustup toolchain install stable --profile minimal | |
- name: Cache Rust | |
uses: Swatinem/rust-cache@v2 | |
with: | |
prefix-key: "w2.rust" | |
shared-key: "w2.rust" | |
- name: Check | |
run: cargo check -r | |
check-linux: | |
name: Check Linux | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install libs needed | |
run: sudo apt-get install -y libgtk-3-dev | |
- name: Install minimal | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
profile: minimal | |
- name: Cache Rust | |
uses: Swatinem/rust-cache@v2 | |
with: | |
prefix-key: "w2.rust" | |
shared-key: "w2.rust" | |
- name: Check | |
run: cargo check -r |