Skip to content

Commit

Permalink
fix(github action):fix build and test process
Browse files Browse the repository at this point in the history
  • Loading branch information
limuy2022 committed Apr 10, 2024
1 parent e2e32ec commit 1386fbc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/rust_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
cargo miri setup
export MIRIFLAGS="-Zmiri-disable-isolation"
- name: Build
run: cargo build
run: cargo build --all
- name: Run tests Debug
run: cargo test
run: cargo test --all
- name: Run tests Release
run: cargo test --release
run: cargo test --all --release
# - name: Run miri test
# run: cargo miri test
8 changes: 4 additions & 4 deletions .github/workflows/rust_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
cargo miri setup
export MIRIFLAGS="-Zmiri-disable-isolation"
- name: Build
run: cargo build
- name: Run tests Debug
run: cargo test
run: cargo build --all
- name: Run tests Debug
run: cargo test --all
- name: Run tests Release
run: cargo test --release
run: cargo test --all --release
# - name: Run miri test
# run: cargo miri test
6 changes: 3 additions & 3 deletions .github/workflows/rust_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
cargo miri setup
setx MIRIFLAGS "-Zmiri-disable-isolation"
- name: Build
run: cargo build
run: cargo build --all
- name: Run tests Debug
run: cargo test
run: cargo test --all
- name: Run tests Release
run: cargo test --release
run: cargo test --release --all
# - name: Run miri test
# run: cargo miri test
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ As a modern language,rust provide us a lot of useful features and I enjoy myself

## Build

Like other common rust project.Just use `cargo build`
Like other common rust project.Just use `cargo build --all`

Running tests is like other rust project,too.Just `cargo test`
Running tests is like other rust project,too.Just `cargo test --all`
But in order to read test data file,please run in the root dir.

## How to use
Expand Down

0 comments on commit 1386fbc

Please sign in to comment.