Skip to content

test

test #349

name: Build (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: dtolnay/rust-toolchain@stable
name: Install Rust
with:
components: "clippy, rustfmt"
- 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
build-release:
strategy:
matrix:
just_variants:
- async-std
#- tokio
runs-on: [self-hosted]
container: ghcr.io/espressosystems/devops-rust:stable
steps:
- uses: dtolnay/rust-toolchain@stable
name: Install Rust
with:
components: "clippy, rustfmt"
- uses: actions/checkout@v4
name: Checkout repository
- uses: Swatinem/rust-cache@v2
name: Enable Rust caching
with:
prefix-key: ${{ matrix.just_variants }}
- name: Build HotShot in release mode
run: just ${{ matrix.just_variants }} build_release