Skip to content

Commit

Permalink
Additional targets for scheduled checks
Browse files Browse the repository at this point in the history
This includes all tier 1 targets and a handful of tier 2 targets.
  • Loading branch information
jhpratt committed Dec 28, 2020
1 parent ec4057d commit fbf133d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 21 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ on:

jobs:
check-other-targets:
name: Type checking
name: Type checking (${{ matrix.target.name }}, ${{ matrix.rust }})
runs-on: ubuntu-20.04
strategy:
matrix:
rust: [1.40.0, stable]
rust: ["1.40", stable]
target:
- { triple: x86_64-unknown-netbsd, has_std: true }
- { triple: x86_64-sun-solaris, has_std: true }
- { triple: wasm32-wasi, has_std: true }
- { triple: thumbv7em-none-eabihf, has_std: false }
- { name: NetBSD, triple: x86_64-unknown-netbsd, has_std: true }
- { name: Solaris, triple: x86_64-sun-solaris, has_std: true }
- { name: wasi, triple: wasm32-wasi, has_std: true }
- { name: embedded, triple: thumbv7em-none-eabihf, has_std: false }

steps:
- name: Checkout sources
Expand Down Expand Up @@ -117,12 +117,15 @@ jobs:
args: --benches --all-features

test:
name: Test
runs-on: ${{ matrix.os }}
name: Test (${{ matrix.os.name }}, ${{ matrix.rust }})
runs-on: ${{ matrix.os.value }}
strategy:
matrix:
rust: [1.40.0, stable]
os: [ubuntu-20.04, windows-latest, macOS-latest]
rust: ["1.40", stable]
os:
- { name: Ubuntu, value: ubuntu-20.04 }
- { name: Windows, value: windows-latest }
- { name: MacOS, value: macOS-latest }

steps:
- name: Checkout sources
Expand Down Expand Up @@ -155,7 +158,7 @@ jobs:
run: |
brew install gnu-tar
echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH
if: matrix.os == 'macOS-latest'
if: matrix.os.value == 'macOS-latest'

- name: Cache cargo output
uses: actions/cache@v2
Expand All @@ -164,7 +167,7 @@ jobs:
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ matrix.rust }}-${{ matrix.os }}-${{ hashFiles('**/Cargo.toml') }}2
key: ${{ runner.os }}-cargo-${{ matrix.rust }}-${{ matrix.os.value }}-${{ hashFiles('**/Cargo.toml') }}2

# For speed reasons, it's worth it to just check the feature powerset and
# test with everything enabled. As features are additive, the tests ensure
Expand Down
32 changes: 23 additions & 9 deletions .github/workflows/scheduled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,33 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

check-other-targets:
name: Type checking
name: Type checking (${{ matrix.target.name }})
runs-on: ubuntu-20.04
strategy:
matrix:
target:
- { triple: x86_64-unknown-netbsd, has_std: true }
- { triple: x86_64-sun-solaris, has_std: true }
- { triple: wasm32-wasi, has_std: true }
- { triple: thumbv7em-none-eabihf, has_std: false }
- { triple: x86_64-apple-darwin, has_std: true }
- { triple: x86_64-fuchsia, has_std: true }
- { triple: x86_64-linux-android, has_std: true }
- { triple: x86_64-pc-windows-msvc, has_std: true }
# All tier 1 platforms as of 2020-12-28
- { name: "ARM64 Linux", triple: aarch64-unknown-linux-gnu, has_std: true }
- { name: "32-bit MinGW", triple: i686-pc-windows-gnu, has_std: true }
- { name: "32-bit MSVC", triple: i686-pc-windows-msvc, has_std: true }
- { name: "32-bit Linux", triple: i686-unknown-linux-gnu, has_std: true }
- { name: "64-bit macOS", triple: x86_64-apple-darwin, has_std: true }
- { name: "64-bit MinGW", triple: x86_64-pc-windows-gnu, has_std: true }
- { name: "64-bit MSVC", triple: x86_64-pc-windows-msvc, has_std: true }
- { name: "64-bit Linux", triple: x86_64-unknown-linux-gnu, has_std: true }
# Select tier 2 platforms as of 2020-12-28
# - { name: "ARM64 macOS", triple: aarch64-apple-darwin, has_std: true } # not present in Rust 1.40
- { name: "ARM64 iOS", triple: aarch64-apple-ios, has_std: true }
- { name: "ARM64 Fuchsia", triple: aarch64-fuchsia, has_std: true }
- { name: "ARM64 Android", triple: aarch64-linux-android, has_std: true }
- { name: "Bare Cortex", triple: thumbv7em-none-eabihf, has_std: false }
- { name: "WebAssembly", triple: wasm32-unknown-unknown, has_std: true }
- { name: "WebAssembly with WASI", triple: wasm32-wasi, has_std: true }
- { name: "64-bit x86 iOS", triple: x86_64-apple-ios, has_std: true }
- { name: "64-bit Fuchsia", triple: x86_64-fuchsia, has_std: true }
- { name: "64-bit x86 Android", triple: x86_64-linux-android, has_std: true }
- { name: "64-bit Solaris", triple: x86_64-sun-solaris, has_std: true }
- { name: "NetBSD", triple: x86_64-unknown-netbsd, has_std: true }

steps:
- name: Checkout sources
Expand Down

0 comments on commit fbf133d

Please sign in to comment.