Skip to content

Commit

Permalink
workflows fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczmarczyck committed Mar 7, 2023
1 parent 28089dd commit e441ed7
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 862 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/cargo_fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,52 +45,52 @@ jobs:
with:
toolchain: nightly
command: fmt
args: --manifest-path libraries/opensk/Cargo.toml --all -- --check
args: --manifest-path libraries/opensk/Cargo.toml -- --check

- name: Cargo format libraries/opensk/fuzz
uses: actions-rs/cargo@v1
with:
toolchain: nightly
command: fmt
args: --manifest-path libraries/opensk/fuzz/Cargo.toml --all -- --check
args: --manifest-path libraries/opensk/fuzz/Cargo.toml -- --check

- name: Cargo format libraries/cbor
uses: actions-rs/cargo@v1
with:
toolchain: nightly
command: fmt
args: --manifest-path libraries/cbor/Cargo.toml --all -- --check
args: --manifest-path libraries/cbor/Cargo.toml -- --check

- name: Cargo format libraries/cbor/fuzz
uses: actions-rs/cargo@v1
with:
toolchain: nightly
command: fmt
args: --manifest-path libraries/cbor/fuzz/Cargo.toml --all -- --check
args: --manifest-path libraries/cbor/fuzz/Cargo.toml -- --check

- name: Cargo format libraries/crypto
uses: actions-rs/cargo@v1
with:
toolchain: nightly
command: fmt
args: --manifest-path libraries/crypto/Cargo.toml --all -- --check
args: --manifest-path libraries/crypto/Cargo.toml -- --check

- name: Cargo format libraries/persistent_store
uses: actions-rs/cargo@v1
with:
toolchain: nightly
command: fmt
args: --manifest-path libraries/persistent_store/Cargo.toml --all -- --check
args: --manifest-path libraries/persistent_store/Cargo.toml -- --check

- name: Cargo format tools/heapviz
uses: actions-rs/cargo@v1
with:
toolchain: nightly
command: fmt
args: --manifest-path tools/heapviz/Cargo.toml --all -- --check
args: --manifest-path tools/heapviz/Cargo.toml -- --check

- name: Cargo format bootloader
uses: actions-rs/cargo@v1
with:
command: fmt
args: --manifest-path bootloader/Cargo.toml --all -- --check
args: --manifest-path bootloader/Cargo.toml -- --check
6 changes: 3 additions & 3 deletions .github/workflows/cargo_fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
run: ./fuzzing_setup.sh

- name: Cargo fuzz build
run: cd libraries/opensk && cargo fuzz build && cd ../..
run: cd libraries/opensk && cargo +nightly fuzz build
- name: Cargo fuzz build (libraries/cbor)
run: cd libraries/cbor && cargo fuzz build && cd ../..
run: cd libraries/cbor && cargo +nightly fuzz build &&
- name: Cargo fuzz build (libraries/persistent_store)
run: cd libraries/persistent_store && cargo fuzz build && cd ../..
run: cd libraries/persistent_store && cargo +nightly fuzz build
13 changes: 8 additions & 5 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: OpenSK code coverage report
on:
push:
paths:
- 'src/**/*.rs'
- 'libraries/**/*.rs'
pull_request:
types: [opened, synchronize, reopened]
Expand All @@ -27,22 +26,26 @@ jobs:
- name: Set up OpenSK
run: ./setup.sh
- name: Install llvm tools
run: rustup component add llvm-tools-preview
run: rustup +nightly component add llvm-tools-preview

- name: Install grcov
run: if [[ ! -e ~/.cargo/bin/grcov ]]; then cargo +stable install grcov; fi
- uses: actions-rs/cargo@v1
with:
toolchain: nightly
command: test
args: --features "with_ctap1,vendor_hid,ed25519,with_nfc,std" --no-fail-fast
args: --manifest-path libraries/opensk/Cargo.toml --features "std,with_ctap1,vendor_hid,ed25519" --no-fail-fast
env:
RUSTFLAGS: "-Zinstrument-coverage"
RUSTFLAGS: "-Cinstrument-coverage"
LLVM_PROFILE_FILE: "opensk-%p-%m.profraw"
- name: =========== TEST PRINT ==========
run: cat lcov.info
- name: Run grcov
run: grcov . --binary-path ./target/debug/ --source-dir . --output-type lcov --ignore-not-existing ---output-path ./lcov.info --ignore "/*" --ignore "examples/*" --ignore "third_party/*"
run: RUSTUP_TOOLCHAIN=nightly grcov . --binary-path ./libraries/opensk/target/debug/ --source-dir libraries/opensk/ --output-type lcov --ignore-not-existing ---output-path ./lcov.info --ignore "/*" --ignore "examples/*" --ignore "third_party/*"
- uses: coverallsapp/github-action@1.1.3
name: upload report to coveralls
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: "./lcov.info"
base-path: "libraries/opensk
37 changes: 0 additions & 37 deletions libraries/cbor/fuzz/Cargo.lock

This file was deleted.

Loading

0 comments on commit e441ed7

Please sign in to comment.