Skip to content

Fixes compiler error for new versions of rust #56

Fixes compiler error for new versions of rust

Fixes compiler error for new versions of rust #56

Workflow file for this run

name: Rust
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
env:
CARGO_TERM_COLOR: always
jobs:
build_with_glutin_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install_alsa
run: |
sudo apt-get -qq update
sudo apt-get -qq install libasound2-dev
- name: build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
build_with_sdl2_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install_sdl2
run: |
sudo apt-get -qq update
sudo apt-get -qq install libsdl2-dev
- name: build_with_sdl2_enabled
run: cargo build --no-default-features --features=extras,sdl2 --verbose
- name: Run tests
run: cargo test --verbose
build_with_glutin_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: glutin_windows
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
build_with_web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install_wasm_target
run: rustup target add wasm32-unknown-unknown
- name: build
run: cargo build --target=wasm32-unknown-unknown --verbose