From 8ea011a7d7defc59d7ecf7f16fdd1d7aeb129f01 Mon Sep 17 00:00:00 2001 From: Himadri Bhattacharjee <107522312+lavafroth@users.noreply.github.com> Date: Tue, 23 Dec 2025 15:57:09 +0530 Subject: [PATCH] ci: github workflow installs libusb-1.0.0-dev, libmagic besides default --- .github/workflows/rust.yml | 51 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 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..7a8ecd3 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,51 @@ +name: Release + +on: + release: + types: [created] + +env: + CARGO_TERM_COLOR: always + +jobs: + release-linux: + name: Linux - Build and Publish + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + - name: Build release + run: cargo build --release + + - name: Upload Linux artifacts + uses: softprops/action-gh-release@v2 + with: + files: target/release/zilch + + release-windows: + name: Windows - Build Binary + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + - name: Build release + run: cargo build --release + + - name: Upload Windows binary + uses: softprops/action-gh-release@v2 + with: + files: target/release/zilch.exe