diff --git a/.gitea/workflows/push_master.yaml b/.gitea/workflows/push_master.yaml new file mode 100644 index 0000000..69b3951 --- /dev/null +++ b/.gitea/workflows/push_master.yaml @@ -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 \ No newline at end of file