-
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.
Merge pull request #2 from encryptogroup/ci/add-github-ci
CI: Add github CI workflow
- Loading branch information
Showing
5 changed files
with
3,150 additions
and
62 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,50 @@ | ||
name: Pull Request | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "main" | ||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Install nightly | ||
uses: dtolnay/rust-toolchain@nightly | ||
id: toolchain | ||
with: | ||
components: "clippy, rustfmt" | ||
- name: Override default toolchain | ||
run: rustup override set ${{steps.toolchain.outputs.name}} | ||
- name: Cache | ||
uses: Swatinem/rust-cache@v2 | ||
- name: Test | ||
run: cargo test --workspace --verbose --all-features --no-fail-fast | ||
lint: | ||
name: Lint | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Install nightly | ||
uses: dtolnay/rust-toolchain@nightly | ||
id: toolchain | ||
with: | ||
components: "clippy, rustfmt" | ||
- name: Override default toolchain | ||
run: rustup override set ${{steps.toolchain.outputs.name}} | ||
- name: Cache | ||
uses: Swatinem/rust-cache@v2 | ||
- name: Check formatting | ||
run: cargo fmt --all --check | ||
- name: Check Clippy | ||
run: cargo +nightly clippy --workspace --all-features --examples --tests -- -D warnings |
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,24 @@ | ||
name: Push | ||
|
||
on: ["push"] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
Test: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Install nightly | ||
uses: dtolnay/rust-toolchain@nightly | ||
id: toolchain | ||
- name: Override default toolchain | ||
run: rustup override set ${{steps.toolchain.outputs.name}} | ||
- name: Cache | ||
uses: Swatinem/rust-cache@v2 | ||
- name: Test | ||
run: cargo test --workspace --verbose --all-features --no-fail-fast |
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,5 +1,4 @@ | ||
target | ||
Cargo.lock | ||
*.dot | ||
*.log | ||
cmake-build-* | ||
|
Oops, something went wrong.