gamenet: Add fields to SvGameMsg #281
Workflow file for this run
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, pull_request] | |
jobs: | |
build: | |
name: Build and test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
rust: | |
- stable | |
include: | |
- os: ubuntu-latest | |
rust: 1.63.0 | |
- os: ubuntu-latest | |
rust: nightly | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- uses: Swatinem/rust-cache@v2 | |
# `demo` crate doesn't work with the MSRV. | |
- name: Exclude `demo` crate from MSRV | |
run: sed -i -e 's/"demo",//' -e 's/"tools",//' Cargo.toml | |
if: ${{ matrix.rust != 'stable' && matrix.rust != 'nightly' }} | |
- run: cargo build | |
- run: cargo test | |
- run: cargo bench | |
- uses: actions/upload-artifact@v2 | |
if: ${{ matrix.rust == 'stable' }} | |
with: | |
path: | | |
target | |
!target/**/*.d | |
!target/**/*.rlib | |
!target/**/.cargo-lock | |
!target/**/.fingerprint | |
!target/**/CACHEDIR.TAG | |
!target/**/build | |
!target/**/deps | |
!target/**/incremental | |
name: libtw2-${{ matrix.os }} | |
check-generated: | |
name: Check that generated files match | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: ./generate_all | |
- run: test -z "$(git status --porcelain)" | |
check-rustfmt: | |
name: Check that everything is rustfmtted | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: cargo fmt --check |