From 2daadc267a8092cb7181f4c196f1803681efce33 Mon Sep 17 00:00:00 2001 From: Tyler Tracy <17890689+tylerthecoder@users.noreply.github.com> Date: Wed, 11 Sep 2024 21:42:58 -0700 Subject: [PATCH] Create rust.yml --- .github/workflows/rust.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..6d6e667 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,30 @@ +name: Rust + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: Upload files to a GitHub release + uses: svenstaro/upload-release-action@2.9.0 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ./target/release/owl + asset_name: owl + tag: ${{ github.ref }} + overwrite: true + body: "Latest build" +