32 lines
No EOL
826 B
YAML
32 lines
No EOL
826 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/SebRollen/toml-action@v1.2.0
|
|
id: read_rust_components
|
|
with:
|
|
file: rust-toolchain.toml
|
|
field: toolchain.components
|
|
|
|
- uses: https://github.com/dtolnay/rust-toolchain@stable
|
|
with:
|
|
toolchain: ${{ steps.read_rust_toolchain.outputs.value }}
|
|
components: ${{ steps.read_rust_components.outputs.value }}
|
|
|
|
- name: Build
|
|
run: cargo build |