Skip to content

Fix clippy to newest 1.73 rust release and use secrets.GITHUB_TOKEN f… #64

Fix clippy to newest 1.73 rust release and use secrets.GITHUB_TOKEN f…

Fix clippy to newest 1.73 rust release and use secrets.GITHUB_TOKEN f… #64

Workflow file for this run

name: build
on:
push:
branches:
- docker
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
strategy:
matrix:
rust: [stable]
os: [ubuntu-latest]
steps:
- name: Cache
uses: mozilla-actions/sccache-action@v0.0.3
- name: Check out
uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@master
id: toolchain
with:
toolchain: ${{ matrix.rust }}
- run: rustup override set ${{ steps.toolchain.outputs.name }}
- 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
uses: actions-rs/cargo@v1
with:
command: build
args: --all-targets --features s3-storage
- name: Build url-storage
uses: actions-rs/cargo@v1
with:
command: build
args: --all-targets --features url-storage
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Test Docker build
id: docker_build
uses: docker/build-push-action@v3
with:
context: .
file: deploy/Dockerfile
push: false
tags: |
ghcr.io/umccr/htsget-rs:dev-latest
ghcr.io/umccr/htsget-rs:dev-${{ github.run_number }}