Skip to content

Commit

Permalink
ci(build): add win-x86 release
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Jan 7, 2024
1 parent a14afa5 commit 6be3156
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,32 @@ jobs:
name: wlink-binaries
path: wlink-${{ matrix.config.arch }}.tar.gz

build-win-x86:
name: build (windows-x86)
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
target: i686-pc-windows-msvc
components: rustfmt, clippy
override: true
- name: Build
run: cargo build --release --target i686-pc-windows-msvc
- name: Compress binary
run: |
mkdir -p release
cp target/i686-pc-windows-msvc/release/wlink.exe release/
cp README.md release/
(cd release/ && tar -czvf ../wlink-win-x86.tar.gz *)
- uses: actions/upload-artifact@v3
with:
name: wlink-binaries
path: wlink-win-x86.tar.gz

build-macos-arm64:
name: build (macos-arm64)
runs-on: macos-latest
Expand Down Expand Up @@ -78,7 +104,7 @@ jobs:
path: wlink-macos-arm64.tar.gz

release:
needs: [build, build-macos-arm64]
needs: [build, build-macos-arm64, build-win-x86]
runs-on: ubuntu-22.04
steps:
- name: Download Artifacts
Expand All @@ -103,5 +129,7 @@ jobs:
body: |
This is a nightly binary release of the wlink command line tool.
For Windows users, please use the x86 version since it has the Windows driver support.
files: |
wlink-*.tar.gz

0 comments on commit 6be3156

Please sign in to comment.