Skip to content

Commit

Permalink
Cleanup before release as described in release-plz/action#14 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
brainstorm committed Jan 6, 2023
1 parent 208097d commit 65fcc29
Showing 1 changed file with 34 additions and 31 deletions.
65 changes: 34 additions & 31 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,35 +36,36 @@ jobs:
target/
key: ${{ runner.os }}-cargo-cache3-${{ hashFiles('**/Cargo.toml') }}
restore-keys: ${{ runner.os }}-cargo-cache3-
# - name: Cargo fmt
# uses: actions-rs/cargo@v1
# with:
# command: fmt
# - name: Clippy
# uses: actions-rs/cargo@v1
# with:
# command: clippy
# args: -- -D warnings
# - name: Build all features
# uses: actions-rs/cargo@v1
# with:
# command: build
# args: --all-targets --all-features
# - name: Build no default features
# uses: actions-rs/cargo@v1
# with:
# command: build
# args: --all-targets --no-default-features
# - name: Build s3-storage feature
# uses: actions-rs/cargo@v1
# with:
# command: build
# args: --all-targets --features s3-storage
# - name: Run cargo test
# uses: actions-rs/cargo@v1
# with:
# command: test
# args: --all-features
- name: Cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- name: Build all features
uses: actions-rs/cargo@v1
with:
command: build
args: --all-targets --all-features
- name: Build no default features
uses: actions-rs/cargo@v1
with:
command: build
args: --all-targets --no-default-features
- name: Build s3-storage feature
uses: actions-rs/cargo@v1
with:
command: build
args: --all-targets --features s3-storage
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features

# Benchmarking
- name: Install cargo-criterion
uses: baptiste0928/cargo-install@v1
Expand All @@ -73,17 +74,19 @@ jobs:
- name: Timestamp
run: export BENCH_TIMESTAMP=$(date +'%Y-%m-%d-%s')
- name: Run search benchmarks
run: cargo criterion --bench search-benchmarks --message-format=json -- LIGHT 1> output.json
run: cargo criterion --bench search-benchmarks --message-format=json -- LIGHT 1> search-benchmarks-output.json
- name: Store search benchmark result
uses: brainstorm/github-action-benchmark@cargo-criterion-v3
with:
name: Search benchmark
tool: 'cargo-criterion'
output-file-path: /home/runner/work/htsget-rs/htsget-rs/output.json
output-file-path: search-benchmarks-output.json
native-benchmark-data-dir-path: target/criterion
fail-on-alert: false
github-token: ${{ secrets.HTSGET_RS_BENCHMARKS_TOKEN }}
auto-push: true
- name: Cleanup before release
run: git checkout . && rm -f search-benchmarks-output.json
- name: Run release-plz
uses: MarcoIeni/release-plz-action@main
env:
Expand Down

0 comments on commit 65fcc29

Please sign in to comment.