From 2df9a180beb836a555e7f05b38fa5a4bdebd6ff5 Mon Sep 17 00:00:00 2001 From: NinjaCheetah <58050615+NinjaCheetah@users.noreply.github.com> Date: Wed, 19 Mar 2025 18:55:52 -0400 Subject: [PATCH] Create rust.yml --- .github/workflows/rust.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..c0e20eb --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,31 @@ +name: Build rustii + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + # Not sure if this is the best choice, but I'm building in release mode to produce more effective nightly binaries. + - name: Build rustii + run: cargo build --verbose --release + - name: Package rustii for Upload + run: | + mv target/release/rustii ~/rustii + cd ~ + tar cvf rustii.tar rustii + - name: Upload rustii + uses: actions/upload-artifact@v4 + with: + path: ~/rustii.tar + name: rustii-Linux-bin