init commit #1961
Workflow file for this run
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
name: Build, Lint, and Test (self-hosted) | |
on: | |
push: | |
branches: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ (github.ref == 'refs/heads/main' && github.run_number) || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
matrix: | |
just_variants: | |
- async-std | |
#- tokio | |
runs-on: [self-hosted] | |
container: ghcr.io/espressosystems/devops-rust:stable | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout Repository | |
- uses: Swatinem/rust-cache@v2 | |
name: Enable Rust Caching | |
with: | |
prefix-key: ${{ matrix.just_variants }} | |
- name: Build all crates in workspace | |
run: just ${{ matrix.just_variants }} build | |
- name: Build HotShot in release mode | |
run: just ${{ matrix.just_variants }} build_release | |
- name: Unit and integration tests for all crates in workspace | |
run: | | |
just ${{ matrix.just_variants }} test-ci | |
timeout-minutes: 60 | |
env: | |
RUST_BACKTRACE: full |