Skip to content

build

build #9

Workflow file for this run

name: build
on:
push: {}
pull_request:
types: [opened, synchronize, reopened, edited]
schedule:
# 8AM first day of the month in JAN and JUNE to keep workflow badges up-to-date
- cron: "0 8 1 1,6 *"
jobs:
feature-matrix:
uses: ./.github/workflows/feature-matrix.yaml
build:
name: build ${{ matrix.package.name }} (${{ matrix.os }}, features ${{ matrix.package.features }})
runs-on: ${{ matrix.os }}
needs: [feature-matrix]
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-24.04]
package: ${{ fromJson(needs.feature-matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@v4
- uses: arduino/setup-task@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: Homebrew/actions/setup-homebrew@master
- uses: dtolnay/rust-toolchain@stable
- name: Build
# prettier-ignore
run: >-
cargo build
--package "${{ matrix.package.name }}"
--features "${{ matrix.package.features }}"
--all-targets