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

32 lines
862 B
YAML
Raw Normal View History

2025-02-13 06:07:06 +00:00
name: Build on master branch
run_name: Test successful build on push
on:
push:
branches:
- 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:
2025-02-13 06:52:18 +00:00
file: rust-toolchain.toml
2025-02-13 06:07:06 +00:00
field: toolchain.targets
2025-02-13 06:19:46 +00:00
- uses: https://github.com/SebRollen/toml-action@v1.2.0
2025-02-13 06:07:06 +00:00
id: read_rust_components
with:
2025-02-13 06:52:18 +00:00
file: rust-toolchain.toml
2025-02-13 06:07:06 +00:00
field: toolchain.components
- uses: https://github.com/dtolnay/rust-toolchain@stable
with:
2025-02-13 07:09:52 +00:00
toolchain: ${{ join(fromJSON(steps.read_rust_toolchain.outputs.value), ',' ) }}
components: ${{ join(fromJSON(steps.read_rust_components.outputs.value), ',' ) }}
2025-02-13 06:07:06 +00:00
- name: Build
run: cargo build