Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zephyrchien committed Dec 10, 2023
1 parent 6a39e46 commit be24bec
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 43 deletions.
45 changes: 15 additions & 30 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,39 +22,29 @@ jobs:
- aarch64-unknown-linux-musl
- aarch64-linux-android
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: install toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
target: ${{ matrix.target }}
override: true
toolchain: nightly
targets: ${{ matrix.target }}
- name: compile
uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --release --target=${{ matrix.target }}
run: cargo build --release --target=${{ matrix.target }}
build-windows:
runs-on: windows-latest
strategy:
matrix:
target:
- x86_64-pc-windows-msvc
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: install toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
target: ${{ matrix.target }}
override: true
toolchain: nightly
targets: ${{ matrix.target }}
- name: compile
uses: actions-rs/cargo@v1
with:
use-cross: false
command: build
args: --release --target=${{ matrix.target }}
run: cargo build --release --target=${{ matrix.target }}
build-apple:
runs-on: macos-latest
strategy:
Expand All @@ -64,16 +54,11 @@ jobs:
- aarch64-apple-darwin
- aarch64-apple-ios
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: install toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
target: ${{ matrix.target }}
override: true
toolchain: nightly
targets: ${{ matrix.target }}
- name: compile
uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --release --target=${{ matrix.target }}
run: cargo build --release --target=${{ matrix.target }}
20 changes: 7 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,18 @@ jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: clippy
default: true
override: true
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
- run: cargo clippy --all-features
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
default: true
override: true
toolchain: nightly
components: clippy
- run: cargo test -v --no-fail-fast --all-features

0 comments on commit be24bec

Please sign in to comment.