Skip to content

Update rust-library.yaml managed Github Workflow #24

Update rust-library.yaml managed Github Workflow

Update rust-library.yaml managed Github Workflow #24

Workflow file for this run

# Managed by infra via Terraform, edits will be lost
name: rust-library
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
CARGO_NET_GIT_FETCH_WITH_CLI: true
jobs:
test:
name: rust
runs-on: ubuntu-latest-arm-8-cores
if: github.actor != 'bitdriftlabs-terraform[bot]'
strategy:
matrix:
rust: ['stable']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
- name: Cache
uses: Swatinem/[email protected]
- name: CI Setup
run: if [[ -f ci/setup.sh ]]; then ci/setup.sh; fi
- name: Build Workspace
run: |
if test -f "Makefile"; then
make build
else
cargo build --workspace
fi
- name: Test Workspace
run: |
if test -f "Makefile"; then
make test
else
cargo test --workspace
fi