-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Amend a cargo-clippy issues present on nightly that do not show up on stable. * Split GHA and add modified GHA for the benchmarking tracking (pushing against gh-pages). * Add release-plz * Rename htsget-http-actix -> htsget-actix, htsget-http-lambda -> htsget-lambda, htsget-http-core -> htsget-http, and htsget-test-utils -> htsget-test * Version bump all deps * Better names for the lib side of this crate: get() and post() exposed to third party devs * Temporarily disable htsget-test as suggested by cargo maintainers Co-authored-by: Marko Malenic <[email protected]>
- Loading branch information
1 parent
4ed6d8e
commit 4437cce
Showing
73 changed files
with
508 additions
and
368 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,61 @@ | ||
name: benchmarks | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- better_ci | ||
- iai | ||
|
||
permissions: | ||
# deployments permission to deploy GitHub pages website | ||
deployments: write | ||
# contents permission to update benchmark contents in gh-pages branch | ||
contents: write | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
rust: [stable] | ||
os: [ubuntu-latest] | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
override: true | ||
components: rustfmt, clippy | ||
- name: Cargo cache | ||
uses: actions/cache@v3 | ||
continue-on-error: false | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ runner.os }}-cargo-cache3-${{ hashFiles('**/Cargo.toml') }} | ||
restore-keys: ${{ runner.os }}-cargo-cache3- | ||
- name: Install cargo-criterion | ||
uses: baptiste0928/cargo-install@v1 | ||
with: | ||
crate: cargo-criterion | ||
- name: Run search benchmarks | ||
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: 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 |
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,23 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- better_ci | ||
- iai | ||
|
||
jobs: | ||
release: | ||
name: Release-plz | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Run release-plz | ||
uses: MarcoIeni/release-plz-action@main | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.HTSGET_RS_CRATES_IO_TOKEN }} |
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 |
---|---|---|
|
@@ -7,3 +7,6 @@ Cargo.lock | |
package-lock.json | ||
deploy/.build | ||
output.txt | ||
cert.pem | ||
key.pem | ||
request-benchmarks.json |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
[workspace] | ||
members = [ | ||
"htsget-config", | ||
"htsget-http-actix", | ||
"htsget-http-core", | ||
"htsget-http-lambda", | ||
"htsget-actix", | ||
"htsget-http", | ||
"htsget-lambda", | ||
"htsget-search", | ||
"htsget-test-utils", | ||
"htsget-test", | ||
] |
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,9 @@ | ||
target | ||
Cargo.lock | ||
*.code-workspace | ||
*.vcf.gz | ||
.vscode | ||
.idea | ||
package-lock.json | ||
deploy/.build | ||
output.txt |
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,25 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM rust:1.61.0 AS builder | ||
|
||
ARG TARGETPLATFORM | ||
|
||
WORKDIR /root | ||
|
||
RUN --mount=type=cache,target=/usr/local/cargo/registry,id=${TARGETPLATFORM} \ | ||
cargo install cargo-strip | ||
|
||
COPY . . | ||
|
||
RUN --mount=type=cache,target=/usr/local/cargo/registry,id=${TARGETPLATFORM} --mount=type=cache,target=/root/target,id=${TARGETPLATFORM} \ | ||
cargo build --release && \ | ||
cargo strip && \ | ||
mv /root/target/release/htsget-actix /root | ||
|
||
|
||
FROM gcr.io/distroless/cc-debian11 | ||
|
||
COPY --from=builder /root/htsget-actix / | ||
|
||
ENTRYPOINT ["./htsget-actix"] | ||
|
||
EXPOSE 3000 |
Oops, something went wrong.