patch #32
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: π 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, macos-latest] # cygwin failing to install? | |
# 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@v4 | |
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: π¨ Install Wasm Target | |
run: rustup target add wasm32-unknown-unknown | |
- name: π¨ Install Wasm Bindgen | |
uses: baptiste0928/cargo-install@v2 | |
with: | |
crate: wasm-bindgen-cli | |
version: '0.2.88' | |
# - name: π¨ Build Crates | |
# run: just all build | |
# - name: π Test Fantoccini | |
# run: just run sweet fantoccini | |
- name: π Test Native | |
run: just test-ci | |
# - name: π Test Wasm - Windows # TODO sweet not compiling since cli added | |
# if: runner.os == 'Windows' | |
# run: just test-all-wasm-no-bevy | |
# - name: π Test Wasm - Linux & MacOS | |
# if: runner.os != 'Windows' | |
# run: just test-all-wasm |