From 434599c09ee7505d5aef4dca99fba74e4b080935 Mon Sep 17 00:00:00 2001 From: hodasemi Date: Thu, 13 Feb 2025 07:07:06 +0100 Subject: [PATCH] Add basic script for master --- .gitea/workflows/push_master.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitea/workflows/push_master.yaml 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