rust-embassy-template/.gitea/workflows/pull_request.yaml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 18: mapping key "id" already defined at line 14 line 19: mapping key "with" already defined at line 15

29 lines
No EOL
791 B
YAML

name: Merge Build
run_name: Test successful build on merge request
on:
pull_request:
types: [opened, reopened, edited, review_requested, synchronize]
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
field: toolchain.targets
id: read_rust_components
with:
file: rust-toolchain
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