Add basic script for master
This commit is contained in:
parent
0a760af4dc
commit
434599c09e
1 changed files with 30 additions and 0 deletions
30
.gitea/workflows/push_master.yaml
Normal file
30
.gitea/workflows/push_master.yaml
Normal file
|
@ -0,0 +1,30 @@
|
|||
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:
|
||||
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
|
Loading…
Reference in a new issue