rust-embassy-template/.gitea/workflows/push_non_master.yaml

30 lines
753 B
YAML
Raw Normal View History

2025-02-13 06:06:11 +00:00
name: Build on feature branch
run_name: Test successful build on push
2024-03-11 20:58:53 +00:00
on:
2025-02-13 06:06:11 +00:00
push:
branches-ignore:
- master
2024-03-11 20:58:53 +00:00
jobs:
Build:
steps:
- uses: https://github.com/actions/checkout@main
2024-03-11 20:58:53 +00:00
2025-02-13 06:03:46 +00:00
- uses: https://github.com/SebRollen/toml-action@v1.2.0
id: read_rust_toolchain
with:
file: rust-toolchain
field: toolchain.targets
id: read_rust_components
with:
file: rust-toolchain
field: toolchain.components
2024-03-11 20:58:53 +00:00
- uses: https://github.com/dtolnay/rust-toolchain@stable
2025-02-13 06:03:46 +00:00
with:
toolchain: ${{ steps.read_rust_toolchain.outputs.value }}
components: ${{ steps.read_rust_components.outputs.value }}
2024-03-11 20:58:53 +00:00
- name: Build
run: cargo build