-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CI and benchmark/test features.
- Loading branch information
1 parent
27ab657
commit 6c11441
Showing
48 changed files
with
205 additions
and
168 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ name: Cross | |
on: | ||
[pull_request, workflow_dispatch] | ||
|
||
# NOTE: Use older toolchains since there's bugs cross-compiling | ||
# for some more recent architectures. | ||
jobs: | ||
cross: | ||
name: Rust ${{matrix.target}} | ||
|
@@ -24,41 +26,35 @@ jobs: | |
- armv7-unknown-linux-gnueabihf | ||
- i686-unknown-linux-gnu | ||
- i686-unknown-linux-musl | ||
- mips-unknown-linux-gnu | ||
- mips64-unknown-linux-gnuabi64 | ||
- mips64el-unknown-linux-gnuabi64 | ||
- mipsel-unknown-linux-gnu | ||
# NOTE: This fails on cross v0.2.1, which is unusual since | ||
# manually invoking the failing tests with qemu-5.1.0 passes. | ||
#- powerpc64le-unknown-linux-gnu | ||
- x86_64-unknown-linux-gnu | ||
# NOTE: This has glibc linker issues. Restore later. | ||
#- x86_64-unknown-linux-gnu | ||
- x86_64-unknown-linux-musl | ||
|
||
# Windows | ||
- x86_64-pc-windows-gnu | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
target: ${{matrix.target}} | ||
override: true | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
use-cross: true | ||
command: check | ||
args: --target ${{matrix.target}} | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
use-cross: true | ||
command: test | ||
args: --target ${{matrix.target}} | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
use-cross: true | ||
command: test | ||
args: --target ${{matrix.target}} --features=radix,format,compact | ||
- name: Install Cross | ||
run: | | ||
cargo install [email protected] | ||
rustup toolchain add 1.65.0 | ||
- name: Run Check | ||
run: | | ||
cross +1.65.0 check --target ${{matrix.target}} | ||
- name: Run Simple Test | ||
run: | | ||
cross +1.65.0 test --target ${{matrix.target}} | ||
- name: Run Feature Test | ||
run: | | ||
cross +1.65.0 test --target ${{matrix.target}} --features=radix,format,compact | ||
notest: | ||
name: Rust ${{matrix.target}} | ||
|
@@ -76,15 +72,24 @@ jobs: | |
- x86_64-unknown-freebsd | ||
- x86_64-unknown-netbsd | ||
|
||
# MIPS | ||
# These targets have been removed from Tier 2 | ||
# support, so we're using an older compiler and | ||
# just checking they can be checked. | ||
- mips-unknown-linux-gnu | ||
- mips64-unknown-linux-gnuabi64 | ||
- mips64el-unknown-linux-gnuabi64 | ||
- mipsel-unknown-linux-gnu | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
target: ${{matrix.target}} | ||
override: true | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
use-cross: true | ||
command: check | ||
args: --target ${{matrix.target}} | ||
- name: Install Cross | ||
run: | | ||
cargo install [email protected] | ||
rustup toolchain add 1.65.0 | ||
rustup toolchain install 1.65.0 --target ${{matrix.target}} --profile minimal --no-self-update | ||
- name: Run check | ||
run: | | ||
cross +1.65.0 check --target ${{matrix.target}} |
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.