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

176 lines
6.9 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:
fmt:
name: Check formatting
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: ubuntu-latest
steps:
2023-05-15 03:35:58 +10:00
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
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
with:
components: rustfmt
- name: Check Formatting
run: cargo fmt -- --check
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: Test ${{ matrix.toolchain }} ${{ matrix.platform.name }}
runs-on: ${{ matrix.platform.os }}
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:
toolchain: [stable, nightly, '1.65.0']
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!
- { name: 'Windows 64bit MSVC', target: x86_64-pc-windows-msvc, os: windows-latest, }
- { name: 'Windows 32bit MSVC', target: i686-pc-windows-msvc, os: windows-latest, }
- { name: 'Windows 64bit GNU', target: x86_64-pc-windows-gnu, os: windows-latest, host: -x86_64-pc-windows-gnu }
- { name: 'Windows 32bit GNU', target: i686-pc-windows-gnu, os: windows-latest, host: -i686-pc-windows-gnu }
- { name: 'Linux 32bit', target: i686-unknown-linux-gnu, os: ubuntu-latest, }
- { name: 'Linux 64bit', target: x86_64-unknown-linux-gnu, os: ubuntu-latest, }
- { name: 'X11', target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: '--no-default-features --features=x11' }
- { name: 'Wayland', target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: '--no-default-features --features=wayland,wayland-dlopen' }
- { name: 'Android', target: aarch64-linux-android, os: ubuntu-latest, options: '--package=winit --features=android-native-activity', cmd: 'apk --' }
- { name: 'Redox OS', target: x86_64-unknown-redox, os: ubuntu-latest, }
- { name: 'macOS', target: x86_64-apple-darwin, os: macos-latest, }
- { name: 'iOS x86_64', target: x86_64-apple-ios, os: macos-latest, }
- { name: 'iOS Aarch64', target: aarch64-apple-ios, os: macos-latest, }
- { name: 'web', target: wasm32-unknown-unknown, 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
env:
# Set more verbose terminal output
CARGO_TERM_VERBOSE: true
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
RUST_BACKTRACE: 1
# Faster compilation and error on warnings
RUSTFLAGS: '--codegen=debuginfo=0 --deny=warnings'
RUSTDOCFLAGS: '--deny=warnings'
OPTIONS: --target=${{ matrix.platform.target }} ${{ matrix.platform.options }}
CMD: ${{ matrix.platform.cmd }}
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
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
- uses: dtolnay/rust-toolchain@master
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
with:
toolchain: ${{ matrix.toolchain }}${{ matrix.platform.host }}
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
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: Restore cache of cargo folder
# We use `restore` and later `save`, so that we can create the key after
# the cache has been downloaded.
#
# This could be avoided if we added Cargo.lock to the repository.
uses: actions/cache/restore@v3
with:
# https://doc.rust-lang.org/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: cargo-${{ matrix.toolchain }}-${{ matrix.platform.name }}-never-intended-to-be-found
restore-keys: cargo-${{ matrix.toolchain }}-${{ matrix.platform.name }}
- name: Generate lockfile
# Also updates the crates.io index
run: cargo generate-lockfile
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: Cache cargo-apk
if: contains(matrix.platform.target, 'android')
id: cargo-apk-cache
uses: actions/cache@v3
with:
path: ~/.cargo/bin/cargo-apk
# Change this key if we update the required cargo-apk version
key: cargo-apk-${{ matrix.toolchain }}-${{ matrix.platform.name }}-v0-9-7
- name: Install cargo-apk
if: contains(matrix.platform.target, 'android') && (steps.cargo-apk-cache.outputs.cache-hit != 'true')
run: cargo install cargo-apk --version=^0.9.7
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
run: cargo doc --no-deps $OPTIONS --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
run: cargo $CMD build $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
- name: Build tests
if: >
!contains(matrix.platform.target, 'redox') &&
matrix.toolchain != '1.65.0'
run: cargo $CMD test --no-run $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
- name: Run tests
if: >
!contains(matrix.platform.target, 'android') &&
!contains(matrix.platform.target, 'ios') &&
!contains(matrix.platform.target, 'wasm32') &&
!contains(matrix.platform.target, 'redox') &&
matrix.toolchain != '1.65.0'
run: cargo $CMD test $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
2022-06-10 20:43:33 +10:00
- name: Lint with clippy
if: (matrix.toolchain == 'stable') && !contains(matrix.platform.options, '--no-default-features')
run: cargo clippy --all-targets $OPTIONS -- -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
if: >
!contains(matrix.platform.target, 'redox') &&
matrix.toolchain != '1.65.0'
run: cargo $CMD test --no-run $OPTIONS --features serde
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
if: >
!contains(matrix.platform.target, 'android') &&
!contains(matrix.platform.target, 'ios') &&
!contains(matrix.platform.target, 'wasm32') &&
!contains(matrix.platform.target, 'redox') &&
matrix.toolchain != '1.65.0'
run: cargo $CMD test $OPTIONS --features serde
# See restore step above
- name: Save cache of cargo folder
uses: actions/cache/save@v3
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: cargo-${{ matrix.toolchain }}-${{ matrix.platform.name }}-${{ hashFiles('Cargo.lock') }}
cargo-deny:
name: Run cargo-deny on ${{ matrix.platform.name }}
runs-on: ubuntu-latest
# TODO: remove this matrix when https://github.com/EmbarkStudios/cargo-deny/issues/324 is resolved
strategy:
fail-fast: false
matrix:
platform:
- { name: 'Android', target: aarch64-linux-android }
- { name: 'iOS', target: aarch64-apple-ios }
- { name: 'Linux', target: x86_64-unknown-linux-gnu }
- { name: 'macOS', target: x86_64-apple-darwin }
- { name: 'Redox OS', target: x86_64-unknown-redox }
- { name: 'web', target: wasm32-unknown-unknown }
- { name: 'Windows', target: x86_64-pc-windows-gnu }
steps:
- uses: actions/checkout@v3
- uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check
log-level: error
arguments: --all-features --target ${{ matrix.platform.target }}