Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
zao111222333 committed Nov 11, 2024
1 parent 6c19da6 commit b368b81
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/bench_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ concurrency:
env:
CARGO_TERM_COLOR: always
RUST_VERSION: "1.82.0"

CACHE_KEY_BENCH: bench-report
jobs:
regression:
strategy:
Expand All @@ -43,12 +43,19 @@ jobs:
uses: actions/cache/restore@v4
with:
path: target/criterion
key: bench-report
- run: cargo bench --package dev
key: ${{ env.CACHE_KEY_BENCH }}
# - run: cargo bench --package dev
- name: Clear last bench results
continue-on-error: true # Don't fail if the cache doesn't exist
env:
GH_TOKEN: ${{ github.token }} # required by gh
run: |
gh extension install actions/gh-actions-cache
gh actions-cache delete ${{ env.CACHE_KEY_BENCH }} --confirm -R ${{ github.repository }}
- name: Archive bench results
uses: actions/cache/save@v4
with:
key: bench-report
key: ${{ env.CACHE_KEY_BENCH }}
path: target/criterion

deploy:
Expand All @@ -61,11 +68,12 @@ jobs:
runs-on: ubuntu-latest
needs: bench
steps:
- uses: actions/checkout@v4
- name: Load bench results
uses: actions/cache/restore@v4
with:
path: docs/static/bench
key: bench-report
key: ${{ env.CACHE_KEY_BENCH }}
- name: Upload Static Files as Artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
22 changes: 11 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,31 +42,31 @@ default = []
log = { version = "0.4", features = ["std", "serde"] }
simple_logger = "5.0"
serde = { version = "1.0", features = ["derive"] }
thiserror = "1.0"
serde_json = "1.0"
thiserror = "2.0"
strum = "0.26"
strum_macros = "0.26"
itertools = "0.13"
arcstr = { version = "1.2", features = ["serde"] }
ordered-float = { version = "4.0", features = ["serde"] }
fast-float2 = "0.2.3"
ordered-float = { version = "4.5", features = ["serde"] }
fast-float2 = "0.2"
walkdir = "2"
similar = { version = "2.6.0", features = ["inline"]}
console = "0.15.8"
serde_json = "1.0"
similar = { version = "2.6", features = ["inline"]}
console = "0.15"
nom = "7.1"
derivative = "2.2.0"
derivative = "2.2"
ryu = "1.0"
itoa = "1.0"
uom = { version = "0.36.0", default-features = false, features = ["f64", "si", "std", "serde"] }
biodivine-lib-bdd = { version = "0.5.19", features = ["serde"] }
biodivine-lib-bdd = { version = "0.5.22", features = ["serde"] }
mut_set = "0.5.0"
duplicate = "1.0.0"
duplicate = "2.0.0"
num-traits = "0.2"
lazy_static = "1.4.0"
lazy_static = "1.5.0"
prettytable-rs = "^0.10"
cfg-if = "1.0.0"
criterion = { version = "0.5", features = ["html_reports"] }
sysinfo = "0.31"
sysinfo = "0.32"
chrono = "0.4.38"

[dependencies]
Expand Down

0 comments on commit b368b81

Please sign in to comment.