-
-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added cross platform tests workflow (#534)
* Added cross platform tests * Added all cross platforms * Fixed an issue where `usize` and `isize` would be encoded wrong on 32 bit platforms * Made the cross platform tests actually run on the platforms * Disabled cross targets that don't build right now * Fixed a failing test on 32 bit platforms, re-enabled all platforms for testing * Disabled failing platforms
- Loading branch information
1 parent
3404fae
commit 36ab23c
Showing
3 changed files
with
90 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{ | ||
"name": "Cross platform tests", | ||
"on": { | ||
"push": { | ||
"branches": [ | ||
"trunk", | ||
"v*.x", | ||
"ci/*" | ||
] | ||
}, | ||
"pull_request": { | ||
"branches": [ | ||
"trunk", | ||
"v*.x" | ||
] | ||
} | ||
}, | ||
"jobs": { | ||
"check": { | ||
"name": "Test", | ||
"runs-on": "ubuntu-latest", | ||
"strategy": { | ||
"fail-fast": false, | ||
"matrix": { | ||
"platform": [ | ||
"aarch64-unknown-linux-gnu", | ||
"arm-unknown-linux-gnueabi", | ||
"arm-unknown-linux-gnueabihf", | ||
# "armv5te-unknown-linux-gnueabi", | ||
"armv7-unknown-linux-gnueabihf", | ||
"i586-unknown-linux-gnu", | ||
# "i686-pc-windows-gnu", | ||
"i686-unknown-linux-gnu", | ||
# "mips-unknown-linux-gnu", | ||
"mips64-unknown-linux-gnuabi64", | ||
"mips64el-unknown-linux-gnuabi64", | ||
# "mipsel-unknown-linux-gnu", | ||
# "powerpc-unknown-linux-gnu", | ||
# "powerpc64-unknown-linux-gnu", | ||
# "powerpc64le-unknown-linux-gnu", | ||
"riscv64gc-unknown-linux-gnu", | ||
# "sparc64-unknown-linux-gnu", | ||
"x86_64-pc-windows-gnu", | ||
"x86_64-unknown-linux-gnu" | ||
] | ||
} | ||
}, | ||
"steps": [ | ||
{ | ||
"uses": "actions/checkout@v2", | ||
"name": "Checkout" | ||
}, | ||
{ | ||
"uses": "actions-rs/toolchain@v1", | ||
"with": { | ||
"profile": "minimal", | ||
"toolchain": "stable", | ||
"override": true | ||
}, | ||
"name": "Install Rust stable" | ||
}, | ||
{ | ||
"uses": "actions-rs/install@v0.1", | ||
"with": { | ||
"crate": "cross" | ||
}, | ||
"name": "Install cargo cross" | ||
}, | ||
{ | ||
"run": "cross test --target ${{ matrix.platform }}", | ||
"name": "Run tests", | ||
"env": { | ||
"RUSTFLAGS": "-D warnings" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
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