rust-embassy-template/.gitea/workflows/push_non_master.yaml
hodasemi 12daf78bd3
Some checks failed
Build on master branch / Build (push) Has been cancelled
Run cargo machete
2025-02-23 09:10:54 +01:00

30 lines
No EOL
706 B
YAML

name: Build on feature branch
run_name: Test successful build on push
on:
push:
branches-ignore:
- master
jobs:
Build:
steps:
- uses: https://github.com/actions/checkout@main
- uses: https://github.com/SebRollen/toml-action@v1.2.0
id: read_rust_toolchain
with:
file: rust-toolchain.toml
field: toolchain.targets
- uses: https://github.com/dtolnay/rust-toolchain@stable
with:
targets: ${{ join(fromJSON(steps.read_rust_toolchain.outputs.value), ',' ) }}
- name: Cargo Machete
run: |
cargo install cargo-machete
cargo machete
- name: Build
run: cargo build