From 5f99f38a9be3cbe33728e9ccf6d6ee69952eef96 Mon Sep 17 00:00:00 2001 From: hodasemi Date: Mon, 11 Mar 2024 21:42:08 +0100 Subject: [PATCH] Initial commit --- .gitea/workflows/pull_request.yaml | 16 ++++++++++++++++ .gitignore | 2 ++ Cargo.toml | 8 ++++++++ renovate.json | 15 +++++++++++++++ src/main.rs | 3 +++ 5 files changed, 44 insertions(+) create mode 100644 .gitea/workflows/pull_request.yaml create mode 100644 .gitignore create mode 100644 Cargo.toml create mode 100644 renovate.json create mode 100644 src/main.rs diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml new file mode 100644 index 0000000..54584a2 --- /dev/null +++ b/.gitea/workflows/pull_request.yaml @@ -0,0 +1,16 @@ +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@v3 + + - uses: https://github.com/dtolnay/rust-toolchain@stable + + - name: Build + run: cargo build \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..96ef6c0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/target +Cargo.lock diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..eed7156 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "rust-std-template" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..c24cd7a --- /dev/null +++ b/renovate.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:base" + ], + "packageRules": [ + { + "matchUpdateTypes": [ + "minor", + "patch" + ], + "automerge": true + } + ] +} \ No newline at end of file diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}