-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0cf30a0
commit 35405f4
Showing
13 changed files
with
345 additions
and
123 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,90 @@ | ||
name: Cross | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
cross: | ||
name: Rust ${{matrix.target}} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
target: | ||
# Android | ||
- aarch64-linux-android | ||
- arm-linux-androideabi | ||
- armv7-linux-androideabi | ||
- i686-linux-android | ||
- x86_64-linux-android | ||
|
||
# Linux | ||
- aarch64-unknown-linux-gnu | ||
- arm-unknown-linux-gnueabi | ||
- 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 | ||
- powerpc64le-unknown-linux-gnu | ||
- 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 | ||
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=compact | ||
|
||
notest: | ||
name: Rust ${{matrix.target}} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
target: | ||
# Linux | ||
- powerpc64-unknown-linux-gnu | ||
- s390x-unknown-linux-gnu | ||
|
||
# FreeBSD | ||
- i686-unknown-freebsd | ||
- x86_64-unknown-freebsd | ||
- x86_64-unknown-netbsd | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: ${{matrix.target}} | ||
override: true | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
use-cross: true | ||
command: check | ||
args: --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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Features | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
features: | ||
name: Test Feature Combinations | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install latest nightly | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
override: true | ||
components: rustfmt, clippy | ||
- run: ci/test.sh | ||
- run: NIGHTLY=1 NO_STD=1 ci/test.sh |
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,40 @@ | ||
name: OSX | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
cross: | ||
name: Rust ${{matrix.target}} | ||
runs-on: macos-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
target: | ||
# iOS targets don't work, since rust-embedded doesn't provide images. | ||
- x86_64-apple-darwin | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
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=compact |
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,41 @@ | ||
name: Simple | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
test: | ||
name: Rust ${{matrix.rust}} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
rust: [1.51.0, stable, beta, nightly] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{matrix.rust}} | ||
- run: cargo check | ||
- run: cargo test | ||
- run: cargo test --features=compact | ||
|
||
check: | ||
name: Lint code | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install latest nightly | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
override: true | ||
components: rustfmt, clippy | ||
- run: ci/check.sh |
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,24 @@ | ||
name: Valgrind | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
valgrind: | ||
name: Valgrind Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install latest nightly | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
override: true | ||
- run: sudo apt-get install valgrind | ||
- run: cargo +nightly install cargo-valgrind | ||
- run: cargo +nightly valgrind test --release | ||
- run: cargo +nightly valgrind test --all-features --release |
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 was deleted.
Oops, something went wrong.
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,11 @@ | ||
#!/bin/bash | ||
# Check our code passes formatting and lint checks. | ||
|
||
set -ex | ||
|
||
# Change to our project home. | ||
script_dir=`dirname "${BASH_SOURCE[0]}"` | ||
cd "$script_dir"/.. | ||
|
||
scripts/check.sh | ||
RUSTFLAGS="--deny warnings" cargo +nightly build --features=lint |
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,22 @@ | ||
#!/bin/bash | ||
# Run a small subset of our comprehensive test suite. | ||
|
||
set -ex | ||
|
||
# Print our cargo version, for debugging. | ||
cargo --version | ||
|
||
# Change to our project home. | ||
script_dir=`dirname "${BASH_SOURCE[0]}"` | ||
script_home=`realpath "$script_dir"` | ||
cd "$script_home"/.. | ||
|
||
FEATURES= | ||
if [ ! -z $ALL_FEATURES ]; then | ||
FEATURES=--all-features | ||
fi | ||
|
||
# Test the parse-float correctness tests | ||
cd etc/correctness | ||
cargo run $FEATURES --release --bin test-parse-golang | ||
cargo run $FEATURES --release --bin test-parse-unittests |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.