-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): run rustfmt, cargo test, cargo build (and do cross-build/cr…
…oss-testing)
- Loading branch information
Showing
2 changed files
with
76 additions
and
9 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,45 @@ | ||
on: | ||
- push | ||
name: build::linux | ||
jobs: | ||
build_linux_x86_64_musl: | ||
name: x86_64-musl | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.58.0 # keep in sync with MSRV in README.md/Cargo.toml | ||
target: x86_64-unknown-linux-musl | ||
override: true | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
use-cross: true | ||
command: test | ||
args: --target x86_64-unknown-linux-musl | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
use-cross: true | ||
command: build --release | ||
args: --target x86_64-unknown-linux-musl | ||
|
||
build_linux_aarch64_musl: | ||
name: aarch64-musl | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.58.0 # keep in sync with MSRV in README.md/Cargo.toml | ||
target: aarch64-unknown-linux-musl | ||
override: true | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
use-cross: true | ||
command: test | ||
args: --target aarch64-unknown-linux-musl | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
use-cross: true | ||
command: build --release | ||
args: --target aarch64-unknown-linux-musl |
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 |
---|---|---|
@@ -1,13 +1,35 @@ | ||
on: push | ||
name: Clippy | ||
on: | ||
- push | ||
name: lint | ||
jobs: | ||
clippy_check: | ||
clippy: | ||
name: clippy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- run: rustup install 1.58.0 # keep in sync with MSRV in README.md/Cargo.toml | ||
- run: rustup component add clippy | ||
- uses: actions-rs/clippy-check@v1 | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: --all-features | ||
profile: minimal | ||
toolchain: 1.58.0 # keep in sync with MSRV in README.md/Cargo.toml | ||
override: true | ||
components: rustfmt, clippy | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: -- -D warnings | ||
|
||
rustfmt: | ||
name: rustfmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: 1.58.0 # keep in sync with MSRV in README.md/Cargo.toml | ||
override: true | ||
components: rustfmt, clippy | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all -- --check |