Skip to content

Commit

Permalink
chore(github): add Windows releases
Browse files Browse the repository at this point in the history
  • Loading branch information
amorphobia authored and dndx committed Apr 13, 2023
1 parent 1762739 commit 34f5337
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,36 @@ jobs:
with:
files: target/${{ matrix.target }}/release/uip_*
prerelease: ${{ contains(github.ref, '-') }}

build-windows:
runs-on: windows-latest
env:
RUST_BACKTRACE: full
strategy:
matrix:
target:
- x86_64-pc-windows-msvc
- x86_64-pc-windows-gnu
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
profile: minimal
override: true

- name: Build release
run: |
cargo build --release --target ${{ matrix.target }}
- name: Rename artifact
run: |
cd target/${{ matrix.target }}/release
mv uip.exe uip_${{ matrix.target }}.exe
- name: Upload Github Assets
uses: softprops/action-gh-release@v1
with:
files: target/${{ matrix.target }}/release/uip_*
prerelease: ${{ contains(github.ref, '-') }}

0 comments on commit 34f5337

Please sign in to comment.