mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
43 lines
1022 B
YAML
43 lines
1022 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches-ignore: [ staging.tmp ]
|
|
pull_request:
|
|
branches-ignore: [ staging.tmp ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-10.15, ubuntu-18.04, windows-2019]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: cargo check --all-targets --all-features
|
|
- run: cargo test --all-targets --no-run
|
|
|
|
wasm:
|
|
runs-on: [ubuntu-18.04]
|
|
env:
|
|
RUSTFLAGS: --cfg=web_sys_unstable_apis
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: rustup target add wasm32-unknown-unknown
|
|
- run: cargo check --all-targets --all-features --target=wasm32-unknown-unknown
|
|
|
|
docs:
|
|
runs-on: [ubuntu-18.04]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install latest nightly
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: nightly
|
|
override: true
|
|
continue-on-error: true
|
|
- name: cargo doc
|
|
run: cargo --version; cargo doc --lib --no-deps
|
|
continue-on-error: true
|