winit-sonoma-fix/.github/workflows/ci.yml

152 lines
5.8 KiB
YAML
Raw Normal View History

Replace Appveyor and Travis with Github Actions (#1309) * Experiment with github actions * Only use stable for testing simplicity * Disable fail-fast * Never fail when rustup target add fails * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Split formatting check into separate job * Update and rename rust.yml to ci.yml * Attempt to add web support * Fix things * Fixings * The "I'm not familiar with YAML" update * The empty string update * Fix target interpolation * Add gcc-multilib on linux x86 * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Use correct host on Windows GNU * Update ci.yml * Update ci.yml * in my defense it was like 2 AM when I wrote this * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * try caching * Update ci.yml * Update ci.yml * Update on * Update ci.yml * Update ci.yml * Remove travis and appveyor testing * Cache entire cargo folder * Make cargo cache key more appropriately named * Reduce key collisions * Make key work * Add publish workflow and path qualifiers * Remove -f in cargo install cargo-web * continue-on-error for cargo web * ping * Try to shorten matrix * attempt two * attempt three * attempt four * Use bash * web feature formatting * ping
2020-01-06 06:13:05 +11:00
name: CI
on:
pull_request:
push:
branches: [master]
jobs:
Check_Formatting:
runs-on: ubuntu-latest
steps:
2023-05-15 03:35:58 +10:00
- uses: actions/checkout@v3
Replace Appveyor and Travis with Github Actions (#1309) * Experiment with github actions * Only use stable for testing simplicity * Disable fail-fast * Never fail when rustup target add fails * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Split formatting check into separate job * Update and rename rust.yml to ci.yml * Attempt to add web support * Fix things * Fixings * The "I'm not familiar with YAML" update * The empty string update * Fix target interpolation * Add gcc-multilib on linux x86 * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Use correct host on Windows GNU * Update ci.yml * Update ci.yml * in my defense it was like 2 AM when I wrote this * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * try caching * Update ci.yml * Update ci.yml * Update on * Update ci.yml * Update ci.yml * Remove travis and appveyor testing * Cache entire cargo folder * Make cargo cache key more appropriately named * Reduce key collisions * Make key work * Add publish workflow and path qualifiers * Remove -f in cargo install cargo-web * continue-on-error for cargo web * ping * Try to shorten matrix * attempt two * attempt three * attempt four * Use bash * web feature formatting * ping
2020-01-06 06:13:05 +11:00
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
components: rustfmt
- name: Check Formatting
run: cargo +stable fmt --all -- --check
2023-03-17 07:05:41 +11:00
cargo-deny:
name: cargo-deny
# TODO: remove this matrix when https://github.com/EmbarkStudios/cargo-deny/issues/324 is resolved
strategy:
fail-fast: false
matrix:
platform:
- aarch64-apple-ios
- aarch64-linux-android
- i686-pc-windows-gnu
- i686-pc-windows-msvc
- i686-unknown-linux-gnu
- wasm32-unknown-unknown
- x86_64-apple-darwin
- x86_64-apple-ios
- x86_64-pc-windows-gnu
- x86_64-pc-windows-msvc
- x86_64-unknown-linux-gnu
- x86_64-unknown-redox
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check
log-level: error
arguments: --all-features --target ${{ matrix.platform }}
Replace Appveyor and Travis with Github Actions (#1309) * Experiment with github actions * Only use stable for testing simplicity * Disable fail-fast * Never fail when rustup target add fails * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Split formatting check into separate job * Update and rename rust.yml to ci.yml * Attempt to add web support * Fix things * Fixings * The "I'm not familiar with YAML" update * The empty string update * Fix target interpolation * Add gcc-multilib on linux x86 * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Use correct host on Windows GNU * Update ci.yml * Update ci.yml * in my defense it was like 2 AM when I wrote this * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * try caching * Update ci.yml * Update ci.yml * Update on * Update ci.yml * Update ci.yml * Remove travis and appveyor testing * Cache entire cargo folder * Make cargo cache key more appropriately named * Reduce key collisions * Make key work * Add publish workflow and path qualifiers * Remove -f in cargo install cargo-web * continue-on-error for cargo web * ping * Try to shorten matrix * attempt two * attempt three * attempt four * Use bash * web feature formatting * ping
2020-01-06 06:13:05 +11:00
2022-06-10 20:43:33 +10:00
tests:
name: Tests
Replace Appveyor and Travis with Github Actions (#1309) * Experiment with github actions * Only use stable for testing simplicity * Disable fail-fast * Never fail when rustup target add fails * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Split formatting check into separate job * Update and rename rust.yml to ci.yml * Attempt to add web support * Fix things * Fixings * The "I'm not familiar with YAML" update * The empty string update * Fix target interpolation * Add gcc-multilib on linux x86 * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Use correct host on Windows GNU * Update ci.yml * Update ci.yml * in my defense it was like 2 AM when I wrote this * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * try caching * Update ci.yml * Update ci.yml * Update on * Update ci.yml * Update ci.yml * Remove travis and appveyor testing * Cache entire cargo folder * Make cargo cache key more appropriately named * Reduce key collisions * Make key work * Add publish workflow and path qualifiers * Remove -f in cargo install cargo-web * continue-on-error for cargo web * ping * Try to shorten matrix * attempt two * attempt three * attempt four * Use bash * web feature formatting * ping
2020-01-06 06:13:05 +11:00
strategy:
fail-fast: false
matrix:
2023-03-09 03:34:10 +11:00
rust_version: ['1.64.0', stable, nightly]
Replace Appveyor and Travis with Github Actions (#1309) * Experiment with github actions * Only use stable for testing simplicity * Disable fail-fast * Never fail when rustup target add fails * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Split formatting check into separate job * Update and rename rust.yml to ci.yml * Attempt to add web support * Fix things * Fixings * The "I'm not familiar with YAML" update * The empty string update * Fix target interpolation * Add gcc-multilib on linux x86 * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Use correct host on Windows GNU * Update ci.yml * Update ci.yml * in my defense it was like 2 AM when I wrote this * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * try caching * Update ci.yml * Update ci.yml * Update on * Update ci.yml * Update ci.yml * Remove travis and appveyor testing * Cache entire cargo folder * Make cargo cache key more appropriately named * Reduce key collisions * Make key work * Add publish workflow and path qualifiers * Remove -f in cargo install cargo-web * continue-on-error for cargo web * ping * Try to shorten matrix * attempt two * attempt three * attempt four * Use bash * web feature formatting * ping
2020-01-06 06:13:05 +11:00
platform:
# Note: Make sure that we test all the `docs.rs` targets defined in Cargo.toml!
Replace Appveyor and Travis with Github Actions (#1309) * Experiment with github actions * Only use stable for testing simplicity * Disable fail-fast * Never fail when rustup target add fails * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Split formatting check into separate job * Update and rename rust.yml to ci.yml * Attempt to add web support * Fix things * Fixings * The "I'm not familiar with YAML" update * The empty string update * Fix target interpolation * Add gcc-multilib on linux x86 * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Use correct host on Windows GNU * Update ci.yml * Update ci.yml * in my defense it was like 2 AM when I wrote this * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * try caching * Update ci.yml * Update ci.yml * Update on * Update ci.yml * Update ci.yml * Remove travis and appveyor testing * Cache entire cargo folder * Make cargo cache key more appropriately named * Reduce key collisions * Make key work * Add publish workflow and path qualifiers * Remove -f in cargo install cargo-web * continue-on-error for cargo web * ping * Try to shorten matrix * attempt two * attempt three * attempt four * Use bash * web feature formatting * ping
2020-01-06 06:13:05 +11:00
- { target: x86_64-pc-windows-msvc, os: windows-latest, }
- { target: i686-pc-windows-msvc, os: windows-latest, }
- { target: x86_64-pc-windows-gnu, os: windows-latest, host: -x86_64-pc-windows-gnu }
- { target: i686-pc-windows-gnu, os: windows-latest, host: -i686-pc-windows-gnu }
- { target: i686-unknown-linux-gnu, os: ubuntu-latest, }
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, }
2020-06-16 05:49:09 +10:00
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: x11 }
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: "wayland,wayland-dlopen" }
- { target: aarch64-linux-android, os: ubuntu-latest, options: -p winit, cmd: 'apk --', features: "android-native-activity" }
- { target: x86_64-unknown-redox, os: ubuntu-latest, }
Replace Appveyor and Travis with Github Actions (#1309) * Experiment with github actions * Only use stable for testing simplicity * Disable fail-fast * Never fail when rustup target add fails * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Split formatting check into separate job * Update and rename rust.yml to ci.yml * Attempt to add web support * Fix things * Fixings * The "I'm not familiar with YAML" update * The empty string update * Fix target interpolation * Add gcc-multilib on linux x86 * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Use correct host on Windows GNU * Update ci.yml * Update ci.yml * in my defense it was like 2 AM when I wrote this * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * try caching * Update ci.yml * Update ci.yml * Update on * Update ci.yml * Update ci.yml * Remove travis and appveyor testing * Cache entire cargo folder * Make cargo cache key more appropriately named * Reduce key collisions * Make key work * Add publish workflow and path qualifiers * Remove -f in cargo install cargo-web * continue-on-error for cargo web * ping * Try to shorten matrix * attempt two * attempt three * attempt four * Use bash * web feature formatting * ping
2020-01-06 06:13:05 +11:00
- { target: x86_64-apple-darwin, os: macos-latest, }
- { target: x86_64-apple-ios, os: macos-latest, }
- { target: aarch64-apple-ios, os: macos-latest, }
# We're using Windows rather than Ubuntu to run the wasm tests because caching cargo-web
# doesn't currently work on Linux.
- { target: wasm32-unknown-unknown, os: windows-latest, }
Replace Appveyor and Travis with Github Actions (#1309) * Experiment with github actions * Only use stable for testing simplicity * Disable fail-fast * Never fail when rustup target add fails * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Split formatting check into separate job * Update and rename rust.yml to ci.yml * Attempt to add web support * Fix things * Fixings * The "I'm not familiar with YAML" update * The empty string update * Fix target interpolation * Add gcc-multilib on linux x86 * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Use correct host on Windows GNU * Update ci.yml * Update ci.yml * in my defense it was like 2 AM when I wrote this * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * try caching * Update ci.yml * Update ci.yml * Update on * Update ci.yml * Update ci.yml * Remove travis and appveyor testing * Cache entire cargo folder * Make cargo cache key more appropriately named * Reduce key collisions * Make key work * Add publish workflow and path qualifiers * Remove -f in cargo install cargo-web * continue-on-error for cargo web * ping * Try to shorten matrix * attempt two * attempt three * attempt four * Use bash * web feature formatting * ping
2020-01-06 06:13:05 +11:00
env:
RUST_BACKTRACE: 1
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-C debuginfo=0 --deny warnings"
2020-06-16 05:49:09 +10:00
OPTIONS: ${{ matrix.platform.options }}
Replace Appveyor and Travis with Github Actions (#1309) * Experiment with github actions * Only use stable for testing simplicity * Disable fail-fast * Never fail when rustup target add fails * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Split formatting check into separate job * Update and rename rust.yml to ci.yml * Attempt to add web support * Fix things * Fixings * The "I'm not familiar with YAML" update * The empty string update * Fix target interpolation * Add gcc-multilib on linux x86 * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Use correct host on Windows GNU * Update ci.yml * Update ci.yml * in my defense it was like 2 AM when I wrote this * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * try caching * Update ci.yml * Update ci.yml * Update on * Update ci.yml * Update ci.yml * Remove travis and appveyor testing * Cache entire cargo folder * Make cargo cache key more appropriately named * Reduce key collisions * Make key work * Add publish workflow and path qualifiers * Remove -f in cargo install cargo-web * continue-on-error for cargo web * ping * Try to shorten matrix * attempt two * attempt three * attempt four * Use bash * web feature formatting * ping
2020-01-06 06:13:05 +11:00
FEATURES: ${{ format(',{0}', matrix.platform.features ) }}
CMD: ${{ matrix.platform.cmd }}
RUSTDOCFLAGS: -Dwarnings
Replace Appveyor and Travis with Github Actions (#1309) * Experiment with github actions * Only use stable for testing simplicity * Disable fail-fast * Never fail when rustup target add fails * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Split formatting check into separate job * Update and rename rust.yml to ci.yml * Attempt to add web support * Fix things * Fixings * The "I'm not familiar with YAML" update * The empty string update * Fix target interpolation * Add gcc-multilib on linux x86 * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Use correct host on Windows GNU * Update ci.yml * Update ci.yml * in my defense it was like 2 AM when I wrote this * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * try caching * Update ci.yml * Update ci.yml * Update on * Update ci.yml * Update ci.yml * Remove travis and appveyor testing * Cache entire cargo folder * Make cargo cache key more appropriately named * Reduce key collisions * Make key work * Add publish workflow and path qualifiers * Remove -f in cargo install cargo-web * continue-on-error for cargo web * ping * Try to shorten matrix * attempt two * attempt three * attempt four * Use bash * web feature formatting * ping
2020-01-06 06:13:05 +11:00
runs-on: ${{ matrix.platform.os }}
steps:
- uses: actions/checkout@v3
Replace Appveyor and Travis with Github Actions (#1309) * Experiment with github actions * Only use stable for testing simplicity * Disable fail-fast * Never fail when rustup target add fails * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Split formatting check into separate job * Update and rename rust.yml to ci.yml * Attempt to add web support * Fix things * Fixings * The "I'm not familiar with YAML" update * The empty string update * Fix target interpolation * Add gcc-multilib on linux x86 * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Use correct host on Windows GNU * Update ci.yml * Update ci.yml * in my defense it was like 2 AM when I wrote this * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * try caching * Update ci.yml * Update ci.yml * Update on * Update ci.yml * Update ci.yml * Remove travis and appveyor testing * Cache entire cargo folder * Make cargo cache key more appropriately named * Reduce key collisions * Make key work * Add publish workflow and path qualifiers * Remove -f in cargo install cargo-web * continue-on-error for cargo web * ping * Try to shorten matrix * attempt two * attempt three * attempt four * Use bash * web feature formatting * ping
2020-01-06 06:13:05 +11:00
# Used to cache cargo-web
- name: Cache cargo folder
uses: actions/cache@v1
with:
path: ~/.cargo
key: ${{ matrix.platform.target }}-cargo-${{ matrix.rust_version }}
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust_version }}${{ matrix.platform.host }}
targets: ${{ matrix.platform.target }}
2022-06-10 20:43:33 +10:00
components: clippy
Replace Appveyor and Travis with Github Actions (#1309) * Experiment with github actions * Only use stable for testing simplicity * Disable fail-fast * Never fail when rustup target add fails * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Split formatting check into separate job * Update and rename rust.yml to ci.yml * Attempt to add web support * Fix things * Fixings * The "I'm not familiar with YAML" update * The empty string update * Fix target interpolation * Add gcc-multilib on linux x86 * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Use correct host on Windows GNU * Update ci.yml * Update ci.yml * in my defense it was like 2 AM when I wrote this * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * try caching * Update ci.yml * Update ci.yml * Update on * Update ci.yml * Update ci.yml * Remove travis and appveyor testing * Cache entire cargo folder * Make cargo cache key more appropriately named * Reduce key collisions * Make key work * Add publish workflow and path qualifiers * Remove -f in cargo install cargo-web * continue-on-error for cargo web * ping * Try to shorten matrix * attempt two * attempt three * attempt four * Use bash * web feature formatting * ping
2020-01-06 06:13:05 +11:00
- name: Install GCC Multilib
if: (matrix.platform.os == 'ubuntu-latest') && contains(matrix.platform.target, 'i686')
run: sudo apt-get update && sudo apt-get install gcc-multilib
- name: Install cargo-apk
if: contains(matrix.platform.target, 'android')
run: cargo install cargo-apk
Replace Appveyor and Travis with Github Actions (#1309) * Experiment with github actions * Only use stable for testing simplicity * Disable fail-fast * Never fail when rustup target add fails * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Split formatting check into separate job * Update and rename rust.yml to ci.yml * Attempt to add web support * Fix things * Fixings * The "I'm not familiar with YAML" update * The empty string update * Fix target interpolation * Add gcc-multilib on linux x86 * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Use correct host on Windows GNU * Update ci.yml * Update ci.yml * in my defense it was like 2 AM when I wrote this * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * try caching * Update ci.yml * Update ci.yml * Update on * Update ci.yml * Update ci.yml * Remove travis and appveyor testing * Cache entire cargo folder * Make cargo cache key more appropriately named * Reduce key collisions * Make key work * Add publish workflow and path qualifiers * Remove -f in cargo install cargo-web * continue-on-error for cargo web * ping * Try to shorten matrix * attempt two * attempt three * attempt four * Use bash * web feature formatting * ping
2020-01-06 06:13:05 +11:00
- name: Check documentation
shell: bash
run: cargo doc --no-deps --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES --document-private-items
Replace Appveyor and Travis with Github Actions (#1309) * Experiment with github actions * Only use stable for testing simplicity * Disable fail-fast * Never fail when rustup target add fails * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Split formatting check into separate job * Update and rename rust.yml to ci.yml * Attempt to add web support * Fix things * Fixings * The "I'm not familiar with YAML" update * The empty string update * Fix target interpolation * Add gcc-multilib on linux x86 * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Use correct host on Windows GNU * Update ci.yml * Update ci.yml * in my defense it was like 2 AM when I wrote this * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * try caching * Update ci.yml * Update ci.yml * Update on * Update ci.yml * Update ci.yml * Remove travis and appveyor testing * Cache entire cargo folder * Make cargo cache key more appropriately named * Reduce key collisions * Make key work * Add publish workflow and path qualifiers * Remove -f in cargo install cargo-web * continue-on-error for cargo web * ping * Try to shorten matrix * attempt two * attempt three * attempt four * Use bash * web feature formatting * ping
2020-01-06 06:13:05 +11:00
- name: Build crate
shell: bash
run: cargo $CMD build --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES
Replace Appveyor and Travis with Github Actions (#1309) * Experiment with github actions * Only use stable for testing simplicity * Disable fail-fast * Never fail when rustup target add fails * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Split formatting check into separate job * Update and rename rust.yml to ci.yml * Attempt to add web support * Fix things * Fixings * The "I'm not familiar with YAML" update * The empty string update * Fix target interpolation * Add gcc-multilib on linux x86 * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Use correct host on Windows GNU * Update ci.yml * Update ci.yml * in my defense it was like 2 AM when I wrote this * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * try caching * Update ci.yml * Update ci.yml * Update on * Update ci.yml * Update ci.yml * Remove travis and appveyor testing * Cache entire cargo folder * Make cargo cache key more appropriately named * Reduce key collisions * Make key work * Add publish workflow and path qualifiers * Remove -f in cargo install cargo-web * continue-on-error for cargo web * ping * Try to shorten matrix * attempt two * attempt three * attempt four * Use bash * web feature formatting * ping
2020-01-06 06:13:05 +11:00
- name: Build tests
shell: bash
if: >
!contains(matrix.platform.target, 'redox') &&
2023-03-09 03:34:10 +11:00
matrix.rust_version != '1.64.0'
2020-06-16 05:49:09 +10:00
run: cargo $CMD test --no-run --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES
Replace Appveyor and Travis with Github Actions (#1309) * Experiment with github actions * Only use stable for testing simplicity * Disable fail-fast * Never fail when rustup target add fails * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Split formatting check into separate job * Update and rename rust.yml to ci.yml * Attempt to add web support * Fix things * Fixings * The "I'm not familiar with YAML" update * The empty string update * Fix target interpolation * Add gcc-multilib on linux x86 * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Use correct host on Windows GNU * Update ci.yml * Update ci.yml * in my defense it was like 2 AM when I wrote this * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * try caching * Update ci.yml * Update ci.yml * Update on * Update ci.yml * Update ci.yml * Remove travis and appveyor testing * Cache entire cargo folder * Make cargo cache key more appropriately named * Reduce key collisions * Make key work * Add publish workflow and path qualifiers * Remove -f in cargo install cargo-web * continue-on-error for cargo web * ping * Try to shorten matrix * attempt two * attempt three * attempt four * Use bash * web feature formatting * ping
2020-01-06 06:13:05 +11:00
- name: Run tests
shell: bash
if: >
!contains(matrix.platform.target, 'android') &&
!contains(matrix.platform.target, 'ios') &&
!contains(matrix.platform.target, 'wasm32') &&
!contains(matrix.platform.target, 'redox') &&
2023-03-09 03:34:10 +11:00
matrix.rust_version != '1.64.0'
2020-06-16 05:49:09 +10:00
run: cargo $CMD test --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES
Replace Appveyor and Travis with Github Actions (#1309) * Experiment with github actions * Only use stable for testing simplicity * Disable fail-fast * Never fail when rustup target add fails * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Split formatting check into separate job * Update and rename rust.yml to ci.yml * Attempt to add web support * Fix things * Fixings * The "I'm not familiar with YAML" update * The empty string update * Fix target interpolation * Add gcc-multilib on linux x86 * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Use correct host on Windows GNU * Update ci.yml * Update ci.yml * in my defense it was like 2 AM when I wrote this * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * try caching * Update ci.yml * Update ci.yml * Update on * Update ci.yml * Update ci.yml * Remove travis and appveyor testing * Cache entire cargo folder * Make cargo cache key more appropriately named * Reduce key collisions * Make key work * Add publish workflow and path qualifiers * Remove -f in cargo install cargo-web * continue-on-error for cargo web * ping * Try to shorten matrix * attempt two * attempt three * attempt four * Use bash * web feature formatting * ping
2020-01-06 06:13:05 +11:00
2022-06-10 20:43:33 +10:00
- name: Lint with clippy
shell: bash
if: (matrix.rust_version == 'stable') && !contains(matrix.platform.options, '--no-default-features')
2022-06-10 20:43:33 +10:00
run: cargo clippy --all-targets --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES -- -Dwarnings
Replace Appveyor and Travis with Github Actions (#1309) * Experiment with github actions * Only use stable for testing simplicity * Disable fail-fast * Never fail when rustup target add fails * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Split formatting check into separate job * Update and rename rust.yml to ci.yml * Attempt to add web support * Fix things * Fixings * The "I'm not familiar with YAML" update * The empty string update * Fix target interpolation * Add gcc-multilib on linux x86 * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Use correct host on Windows GNU * Update ci.yml * Update ci.yml * in my defense it was like 2 AM when I wrote this * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * try caching * Update ci.yml * Update ci.yml * Update on * Update ci.yml * Update ci.yml * Remove travis and appveyor testing * Cache entire cargo folder * Make cargo cache key more appropriately named * Reduce key collisions * Make key work * Add publish workflow and path qualifiers * Remove -f in cargo install cargo-web * continue-on-error for cargo web * ping * Try to shorten matrix * attempt two * attempt three * attempt four * Use bash * web feature formatting * ping
2020-01-06 06:13:05 +11:00
- name: Build tests with serde enabled
shell: bash
if: >
!contains(matrix.platform.target, 'redox') &&
2023-03-09 03:34:10 +11:00
matrix.rust_version != '1.64.0'
2020-06-16 05:49:09 +10:00
run: cargo $CMD test --no-run --verbose --target ${{ matrix.platform.target }} $OPTIONS --features serde,$FEATURES
Replace Appveyor and Travis with Github Actions (#1309) * Experiment with github actions * Only use stable for testing simplicity * Disable fail-fast * Never fail when rustup target add fails * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Update rust.yml * Split formatting check into separate job * Update and rename rust.yml to ci.yml * Attempt to add web support * Fix things * Fixings * The "I'm not familiar with YAML" update * The empty string update * Fix target interpolation * Add gcc-multilib on linux x86 * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Use correct host on Windows GNU * Update ci.yml * Update ci.yml * in my defense it was like 2 AM when I wrote this * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * try caching * Update ci.yml * Update ci.yml * Update on * Update ci.yml * Update ci.yml * Remove travis and appveyor testing * Cache entire cargo folder * Make cargo cache key more appropriately named * Reduce key collisions * Make key work * Add publish workflow and path qualifiers * Remove -f in cargo install cargo-web * continue-on-error for cargo web * ping * Try to shorten matrix * attempt two * attempt three * attempt four * Use bash * web feature formatting * ping
2020-01-06 06:13:05 +11:00
- name: Run tests with serde enabled
shell: bash
if: >
!contains(matrix.platform.target, 'android') &&
!contains(matrix.platform.target, 'ios') &&
!contains(matrix.platform.target, 'wasm32') &&
!contains(matrix.platform.target, 'redox') &&
2023-03-09 03:34:10 +11:00
matrix.rust_version != '1.64.0'
2020-06-16 05:49:09 +10:00
run: cargo $CMD test --verbose --target ${{ matrix.platform.target }} $OPTIONS --features serde,$FEATURES