Skip to content

Commit

Permalink
add windows to the release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
drdo committed Jul 8, 2024
1 parent c662d7e commit 7512191
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,37 @@ jobs:
uses: diamondburned/[email protected]
with:
files: ${{needs.set-env.outputs.name}}-${{needs.set-env.outputs.version}}-darwin-arm64.bz2
build-windows-x86_64:
needs: set-env
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --release --verbose
- name: Run tests
run: cargo test --verbose
- name: Compress
run: >
Compress-Archive
"target/release/${{needs.set-env.outputs.name}}.exe"
"${{needs.set-env.outputs.name}}-${{needs.set-env.outputs.version}}-windows-x86_64.zip"
- name: Upload
uses: diamondburned/[email protected]
with:
files: ${{needs.set-env.outputs.name}}-${{needs.set-env.outputs.version}}-windows-x86_64.zip
build-windows-arm64:
needs: set-env
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --release --target=aarch64-pc-windows-msvc --verbose
- name: Compress
run: >
Compress-Archive
"target/release/aarch64-pc-windows-msvc/${{needs.set-env.outputs.name}}.exe"
"${{needs.set-env.outputs.name}}-${{needs.set-env.outputs.version}}-windows-arm64.zip"
- name: Upload
uses: diamondburned/[email protected]
with:
files: ${{needs.set-env.outputs.name}}-${{needs.set-env.outputs.version}}-windows-arm64.zip

0 comments on commit 7512191

Please sign in to comment.