Skip to content

Refactor config

Refactor config #6

Workflow file for this run

name: Build
on:
pull_request:
types:
- opened
- reopened
- synchronize
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
RUST_BACKTRACE: 1
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
# TODO: do we want to support musl?
target: [x86_64-unknown-linux-gnu]
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
steps:
- uses: actions/checkout/@v4
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.81.0
- name: Show env
uses: ./.github/actions/show-env
- name: Setup protoc
uses: arduino/setup-protoc@v3
- name: Setup build cache
uses: mozilla-actions/[email protected]
- name: Build
uses: ./.github/actions/build
with:
target: ${{ matrix.target }}
release: false