Quick changes examples and fix record screenshot #145
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: Check | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
check: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Cache Rust dependencies | |
uses: actions/cache@v3 | |
with: | |
path: target | |
key: ${{ runner.os }}-build-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
${{ runner.os }}-build- | |
- name: Get SDL2 | |
run: | | |
if [ "${{ matrix.os }}" == "ubuntu-latest" ]; then | |
sudo apt install -y libsdl2-dev | |
elif [ "${{ matrix.os }}" == "macos-latest" ]; then | |
brew install SDL2 | |
elif [ "${{ matrix.os }}" == "windows-latest" ]; then | |
cp include/windows/* . | |
fi | |
shell: bash | |
- name: Check that code can compile | |
run: cargo check --all-features |