Skip to content

Commit

Permalink
chore: remove arm host and windows temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
liuq19 committed Nov 8, 2024
1 parent a2747fd commit f5ede7a
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 56 deletions.
75 changes: 34 additions & 41 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,59 +14,65 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
os: [ubuntu, macos]
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v1
- run: cargo test
- run: cargo test --features arbitrary_precision
- run: cargo test --features sort_keys
- run: ./scripts/run_examples.sh
- run: ./scripts/test_all.sh

test-stable-self:
name: Rust stable on self-hosted arm
runs-on: [self-hosted, arm]
name: Rust stable on self-hosted
runs-on: [self-hosted]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v1
- run: cargo test
- run: cargo test --features arbitrary_precision
- run: cargo test --features sort_keys
- run: ./scripts/run_examples.sh
- run: ./scripts/test_all.sh

test-nightly:
name: Rust nightly ${{matrix.os}}
runs-on: ${{matrix.os}}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
os: [ubuntu, macos]
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v1
- run: cargo test
- run: cargo test --features arbitrary_precision
- run: cargo test --features sort_keys
- run: ./scripts/run_examples.sh
- run: ./scripts/test_all.sh

test-nightlye-self:
name: Rust nightly on self-hosted arm
runs-on: [self-hosted, arm]
name: Rust nightly on self-hosted
runs-on: [self-hosted]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v1
- run: cargo test
- run: cargo test --features arbitrary_precision
- run: cargo test --features sort_keys
- run: ./scripts/run_examples.sh
- run: ./scripts/test_all.sh

clippy_lint:
name: Format check ${{matrix.os}}
runs-on: ${{matrix.os}}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos]
timeout-minutes: 45
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy
- name: Format check
run: |
cargo clippy --all-targets --all-features -- -D warnings
cargo fmt -- --check
sanitize:
runs-on: [self-hosted, X64]
steps:
- uses: actions/checkout@v3
Expand All @@ -76,12 +82,10 @@ jobs:
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Format check
run: |
cargo clippy --all-targets --all-features -- -D warnings
cargo fmt -- --check
sanitize:
- name: Sanitize
run: ./scripts/sanitize.sh

fuzz:
runs-on: [self-hosted, X64]
steps:
- uses: actions/checkout@v3
Expand All @@ -91,16 +95,5 @@ jobs:
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Sanitize
run: ./scripts/sanitize.sh


# check-spelling:
# name: Check spelling
# runs-on: ubuntu-latest
# steps:
# - name: Check spelling
# uses: crate-ci/typos@master
# with:
# files: ./*
# config: ./_typos.toml
- name: Fuzz
run: ./scripts/fuzz.sh
2 changes: 1 addition & 1 deletion scripts/fuzz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set -ex

cargo install cargo-fuzz

RUST_BACKTRACE=full cargo fuzz run fuzz_value -- -max_total_time=20m
RUST_BACKTRACE=full cargo +nightly fuzz run fuzz_value -- -max_total_time=20m
11 changes: 0 additions & 11 deletions scripts/run_examples.sh

This file was deleted.

14 changes: 12 additions & 2 deletions scripts/test_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,19 @@ set -ex

cargo test

./scripts/run_examples.sh
cargo test --features arbitrary_precision

cargo test --features sort_keys

cargo test --features use_raw

examples=$(cargo build --example 2>&1 | grep -v ":")

for example in $examples; do
echo "Running example $example"
cargo run --example $example
done

./scripts/fuzz.sh



1 change: 0 additions & 1 deletion src/util/arch/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ cfg_if::cfg_if! {
mod x86_64;
pub use x86_64::*;
} else if #[cfg(all(target_feature="neon", target_arch="aarch64"))] {
pub(crate) mod fallback;
mod aarch64;
pub use aarch64::*;
} else {
Expand Down

0 comments on commit f5ede7a

Please # to comment.