From 39cb1f2dedaac7a2a515699d82916bed0b151e0e Mon Sep 17 00:00:00 2001 From: b1n <120295547+b1nhack@users.noreply.github.com> Date: Mon, 24 Jun 2024 23:08:35 +0800 Subject: [PATCH] ci: add build-windows --- .github/workflows/release.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..8ac99b0 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +name: build-release + +on: + workflow_dispatch: + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+" + +permissions: + contents: write + +jobs: + build-windows: + name: build-windows + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + with: + toolchain: + stable-x86_64-pc-windows-msvc + - run: cargo b -r + - run: mv target/release/pumpbin.exe PumpBin-x86_64-pc-windows-msvc.exe + - run: mv target/release/maker.exe PumpBin-Maker-x86_64-pc-windows-msvc.exe + - uses: softprops/action-gh-release@v2 + with: + files: | + PumpBin-x86_64-pc-windows-msvc.exe + PumpBin-Maker-x86_64-pc-windows-msvc.exe