-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
146eba8
commit db81c2f
Showing
6 changed files
with
13 additions
and
56 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ env: | |
permissions: | ||
contents: write | ||
deployments: write | ||
actions: read | ||
|
||
jobs: | ||
build: | ||
|
@@ -23,48 +22,19 @@ jobs: | |
with: | ||
comment_on_pr: false | ||
- uses: actions/checkout@v3 | ||
- name: Setup | Rust | ||
uses: ATiltedTree/setup-rust@v1 | ||
|
||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
rust-version: nightly | ||
- name: Cache | ||
uses: Swatinem/rust-cache@v2 | ||
toolchain: nightly | ||
|
||
- name: Build | ||
run: cargo build --verbose | ||
run: cargo build | ||
- name: Run tests | ||
run: cargo test --verbose | ||
env: | ||
CARGO_INCREMENTAL: "0" | ||
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests" | ||
RUSTDOCFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests" | ||
- name: rust-grcov | ||
uses: actions-rs/[email protected] | ||
- name: Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
# Repository upload token - get it from codecov.io. Required only for private repositories | ||
# token: # optional | ||
# Specify whether the Codecov output should be verbose | ||
verbose: true | ||
fail_ci_if_error: true | ||
run: cargo test | ||
|
||
- name: Run benches | ||
run: cargo bench | ||
|
||
# - name: Continuous Benchmark | ||
# uses: benchmark-action/[email protected] | ||
# if: ${{ github.ref == 'refs/heads/main' }} | ||
# with: | ||
# name: Go Benchmark | ||
# tool: "cargo" | ||
# output-file-path: output.txt | ||
# github-token: ${{ secrets.CI_TOKEN }} | ||
# gh-repository: "github.com/ringsaturn/tzf-rs" | ||
# auto-push: true | ||
# comment-on-alert: true | ||
# fail-on-alert: false | ||
# benchmark-data-dir-path: "docs/" | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
|
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