Skip to content

Commit 74d4b5b

Browse files
Run some tests on big-endian architecture via Miri.
1 parent 3cea6ee commit 74d4b5b

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
needs:
1818
- build
1919
- test-with-sanitizer
20+
- test-big-endian
2021
steps:
2122
- name: mark the job as a success or failure
2223
run: exit 0
@@ -104,10 +105,11 @@ jobs:
104105
steps:
105106
- uses: actions/checkout@v2
106107
- name: Install nightly Rust
107-
run: rustup override set nightly
108-
- name: Test with Address Sanitizer
109108
run: |
109+
rustup override set nightly
110110
rustup component add rust-src --toolchain nightly
111+
- name: Test with Address Sanitizer
112+
run: |
111113
cargo clean
112114
export RUSTFLAGS=-Zsanitizer=address
113115
export RUSTDOCFLAGS=-Zsanitizer=address
@@ -117,3 +119,19 @@ jobs:
117119
export RUSTDOCFLAGS='-Zsanitizer=memory -Zsanitizer-memory-track-origins'
118120
cargo test -Zbuild-std --target x86_64-unknown-linux-gnu --verbose --features=${{ matrix.features }}
119121
122+
test-big-endian:
123+
runs-on: ubuntu-latest
124+
125+
steps:
126+
- uses: actions/checkout@v2
127+
- name: Install nightly Rust
128+
run: |
129+
rustup toolchain install nightly --allow-downgrade -c miri --profile minimal
130+
rustup default nightly
131+
- name: Run Big Endian Test via Miri
132+
# We only run a subset of tests because Miri is too slow for running everything
133+
run: |
134+
cargo miri test --target mips64-unknown-linux-gnuabi64 -- \
135+
--skip raw_table \
136+
--skip init_in_place \
137+
--skip quickchecks

0 commit comments

Comments
 (0)