Skip to content

Commit

Permalink
updated build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
casperstorm committed Jun 27, 2023
1 parent 7ca36e7 commit 1230722
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ jobs:
os: macos-latest
make: bash scripts/build-macos.sh
binary_path: target/release/macos/halloy.dmg

- target: windows
os: windows-latest
make: bash scripts/build-windows.sh
binary_path: target/release/halloy.exe
runs-on: ${{ matrix.target.os }}

steps:
Expand Down Expand Up @@ -67,6 +70,10 @@ jobs:
artifact_name: halloy.dmg
asset_name: halloy.dmg
asset_type: application/octet-stream
- artifact: windows
artifact_name: halloy.exe
asset_name: halloy.exe
asset_type: application/x-dosexec

runs-on: ubuntu-latest
env:
Expand Down
5 changes: 5 additions & 0 deletions scripts/build-windows.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

# build binary
rustup target add x86_64-pc-windows-msvc
cargo build --release --target=x86_64-pc-windows-msvc

0 comments on commit 1230722

Please sign in to comment.