From 18801200d4b8b15aa5d26e64dbef01bcf75cde6d Mon Sep 17 00:00:00 2001 From: hak8or Date: Fri, 19 Sep 2025 19:22:34 -0400 Subject: [PATCH] Use github actions CI to generate release binaries --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..93af4ee --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: Cargo Build & Test + +on: + push: + pull_request: + +env: + CARGO_TERM_COLOR: always + +jobs: + build_and_test: + name: Rust project - latest + runs-on: ubuntu-latest + strategy: + matrix: + rust_ver: + - "1.90" + # Very ugly way to force cargo and jazz to be in PATH across run's but + # lets fix this alter. + steps: + - uses: actions/checkout@v4 + - run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none -y + - run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH + - run: rustup update ${{ matrix.rust_ver }} && rustup default ${{ matrix.rust_ver }} + - run: cargo build + - run: cargo build --release + - name: Release + uses: softprops/action-gh-release@v2 + if: github.ref_type == 'tag' + with: + files: target/release/gitea_mirror