From 65fcc292a3f4109aa6146eb7e4f5172ea66880dc Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Fri, 6 Jan 2023 16:25:38 +1100 Subject: [PATCH] Cleanup before release as described in https://github.com/MarcoIeni/release-plz-action/issues/14#issuecomment-1372970130 --- .github/workflows/action.yml | 65 +++++++++++++++++++----------------- 1 file changed, 34 insertions(+), 31 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 0baab8eaa..56aac3a85 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -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 @@ -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: