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: Build run: cargo build