Fix shell.nix #340
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 | |
on: [push] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
rust: [stable] | |
steps: | |
- uses: hecrj/setup-rust-action@v1 | |
with: | |
rust-version: ${{ matrix.rust }} | |
- if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt update | |
sudo apt install libudev-dev libasound2-dev libsdl2-dev libsdl2-ttf-dev | |
- if: matrix.os == 'macOS-latest' | |
run: | | |
brew install sdl2 sdl2_ttf | |
- uses: actions/checkout@master | |
- if: matrix.os != 'windows-latest' | |
run: ./test.sh | |
- if: matrix.os == 'windows-latest' | |
run: | | |
cargo test --manifest-path=wgpu/Cargo.toml | |
cargo test --manifest-path=ggez/Cargo.toml | |
cargo test --manifest-path=ansi-terminal/Cargo.toml |