generated from al8n/template-rs
-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
22 changed files
with
2,006 additions
and
184 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,24 @@ | ||
codecov: | ||
require_ci_to_pass: false | ||
|
||
ignore: | ||
- benchmark/ | ||
|
||
coverage: | ||
status: | ||
project: # Overall project status | ||
default: | ||
target: auto | ||
if_not_found: success | ||
only_pulls: false | ||
patch: # Status for the patch in pull requests | ||
default: | ||
target: auto | ||
if_not_found: success | ||
only_pulls: true | ||
changes: false # Whether to comment on the coverage changes in pull requests | ||
|
||
comment: | ||
layout: "header, diff, files, footer" | ||
behavior: default | ||
require_changes: false |
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,64 @@ | ||
name: Benchmark | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- 'README' | ||
- 'COPYRIGHT' | ||
- 'LICENSE-*' | ||
- '**.md' | ||
- '**.txt' | ||
pull_request: | ||
paths-ignore: | ||
- 'README' | ||
- 'COPYRIGHT' | ||
- 'LICENSE-*' | ||
- '**.md' | ||
- '**.txt' | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
RUSTFLAGS: -Dwarnings | ||
RUST_BACKTRACE: 1 | ||
nightly: nightly | ||
stable: stable | ||
|
||
jobs: | ||
benchmark: | ||
name: benchmark | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Cache cargo build and registry | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo/registry | ||
~/.cargo/git | ||
target | ||
key: ${{ runner.os }}-test-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-test- | ||
- name: Install Rust | ||
# --no-self-update is necessary because the windows environment cannot self-update rustup.exe. | ||
run: rustup update stable --no-self-update && rustup default stable | ||
- name: Cache ~/.cargo | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cargo | ||
key: ${{ runner.os }}-coverage-dotcargo | ||
- name: Run test | ||
run: | | ||
cd benchmark | ||
cargo bench | ||
- name: Upload benchmark results | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: benchmark-results | ||
path: benchmark/target/criterion |
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: loc | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- 'README.md' | ||
- 'COPYRIGHT' | ||
- 'LICENSE*' | ||
- '**.md' | ||
- '**.txt' | ||
- 'art' | ||
pull_request: | ||
paths-ignore: | ||
- 'README.md' | ||
- 'COPYRIGHT' | ||
- 'LICENSE*' | ||
- '**.md' | ||
- '**.txt' | ||
- 'art' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
loc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Rust | ||
run: | | ||
rustup update stable && rustup default stable | ||
rustup component add clippy | ||
rustup component add rustfmt | ||
- name: Install tokeit | ||
run: | | ||
cargo install tokeit --force | ||
- name: Count total lines of code | ||
run: | | ||
tokeit | ||
- name: Upload total loc to GitHub Gist | ||
uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{ secrets.GIST_PAT }} | ||
script: | | ||
const fs = require('fs'); | ||
const output = fs.readFileSync('tokeit.json', 'utf8'); | ||
const gistId = '327b2a8aef9003246e45c6e47fe63937'; | ||
await github.rest.gists.update({ | ||
gist_id: gistId, | ||
files: { | ||
"objectpool": { | ||
content: output | ||
} | ||
} | ||
}); |
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,7 +1,6 @@ | ||
# UNRELEASED | ||
|
||
# 0.1.2 (January 6th, 2022) | ||
|
||
FEATURES | ||
# CHANGELOG | ||
|
||
## 0.1.0 | ||
|
||
## UNRELEASED |
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
Oops, something went wrong.