-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michael Lodder <redmike7@gmail.com>
- Loading branch information
1 parent
e9b9821
commit 015a347
Showing
7 changed files
with
168 additions
and
27 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,68 @@ | ||
name: anoncreds-v2-rs | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
env: | ||
CARGO_INCREMENTAL: 0 | ||
CARGO_TERM_COLOR: always | ||
RUST_BACKTRACE: full | ||
RUST_LOG: debug | ||
RUST_LOG_STYLE: always | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 20 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install latest stable | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.72.1 | ||
override: true | ||
components: rustfmt, clippy | ||
|
||
- name: Cache cargo resources | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Cargo check | ||
run: cargo check | ||
|
||
- name: Cargo format | ||
run: cargo fmt --all -- --check | ||
|
||
- name: Cargo clippy | ||
run: cargo clippy -- -Dwarnings | ||
|
||
test: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install 1.72.1 | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.72.1 | ||
override: true | ||
components: rustfmt, clippy | ||
|
||
- name: Cache cargo resources | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Cargo test | ||
run: cargo test |
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,28 @@ | ||
name: Security Audit | ||
on: | ||
pull_request: | ||
paths: | ||
- Cargo.lock | ||
- Cargo.toml | ||
push: | ||
branches: | ||
- main | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
security_audit: | ||
name: Security Audit | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: stable | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.cargo/bin | ||
key: ${{ runner.os }}-cargo-audit-v0.15.2 | ||
- uses: actions-rs/audit-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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,44 @@ | ||
name: windows | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
env: | ||
CARGO_INCREMENTAL: 0 | ||
CARGO_TERM_COLOR: always | ||
RUST_BACKTRACE: full | ||
RUST_LOG: debug | ||
RUST_LOG_STYLE: always | ||
|
||
jobs: | ||
test: | ||
runs-on: windows-latest | ||
name: (${{ matrix.target }}, ${{ matrix.cfg_release_channel }}) | ||
env: | ||
CFG_RELEASE_CHANNEL: ${{ matrix.cfg_release_channel }} | ||
strategy: | ||
max-parallel: 2 | ||
fail-fast: false | ||
matrix: | ||
target: [i686-pc-windows-msvc, x86_64-pc-windows-msvc] | ||
cfg_release_channel: 1.72.1 | ||
steps: | ||
- name: Disable git eol translation | ||
run: git config --global core.autocrlf false | ||
- name: Checkout | ||
run: actions/checkout@v3 | ||
- name: Install 1.72.1 | ||
run: | | ||
$ProgressPreference = "SilentlyContinue" | ||
Invoke-WebRequest https://win.rustup.rs/ -OutFile rustup-init.exe | ||
.\rustup-init.exe -y --default-host=x86_64-pc-windows-msvc --default-toolchain=none | ||
del rustup-init.exe | ||
rustup target add ${{ matrix.target }} | ||
shell: powershell | ||
|
||
- name: Cargo test | ||
run: cargo test |
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
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
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
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