Migration to iced 0.10 #71
Workflow file for this run
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 and Build | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
rust: [stable] | |
steps: | |
- uses: actions/checkout@master | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
components: rustfmt | |
override: true | |
- name: Install dependencies | |
run: | | |
if [ "$RUNNER_OS" == "Linux" ]; then | |
sudo apt-get -qq update | |
sudo apt-get install -y libxkbcommon-dev | |
fi | |
shell: bash | |
- name: Verify versions | |
run: rustc --version && rustup --version && cargo --version | |
- name: Cargo Build | |
run: cargo build --verbose | |
- name: Build example | |
run: cargo build --examples | |
continue-on-error: true | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Check code style | |
run: cargo fmt -- --check |