Skip to content

feat: hash file

feat: hash file #230

Workflow file for this run

name: πŸ”Ž Test Crates
on:
push:
branches: main
paths: ['**','!**/*.md']
pull_request:
branches: main
paths: ['**','!**/*.md']
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Build and Test
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
# os: [ubuntu-latest] # 1x gh minutes
# os: [windows-latest] # 2x gh minutes
# os: [macos-latest] # 10x gh minutes
runs-on: ${{ matrix.os }}
steps:
- name: πŸ“‚ Checkout
uses: actions/checkout@v4
- name: πŸ“‚ Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: πŸ”¨ Install Cygwin
uses: cygwin/cygwin-install-action@master
if: runner.os == 'Windows'
with:
install-dir: C:\tools\cygwin
- name: πŸ”¨ Install Bevy Dependencies
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install g++ pkg-config libx11-dev libasound2-dev libudev-dev
- name: πŸ”¨ Install Just
uses: extractions/setup-just@v1
- name: πŸ”¨ Install Chromedriver
uses: nanasess/setup-chromedriver@v2
- name: πŸ”¨ Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
default: true
# components: rustfmt, clippy
- name: πŸ”¨ Add wasm target
run: rustup target add wasm32-unknown-unknown
# components: rustfmt, clippy
- name: πŸ”¨ Install wasm bindgen cli
run: which wasm-bindgen || cargo install wasm-bindgen-cli --version 0.2.99
- name: πŸ”¨ Install Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: πŸ”Ž Test
run: just test-all