Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add windows to the release workflow
Browse files Browse the repository at this point in the history
drdo committed Jul 8, 2024
1 parent c662d7e commit 4fc89d4
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -91,3 +91,40 @@ jobs:
uses: diamondburned/action-upload-release@v0.0.1
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/action-upload-release@v0.0.1
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: Add aarch64-pc-windows-msvc target
run: |
rustup target add aarch64-pc-windows-msvc
- 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/action-upload-release@v0.0.1
with:
files: ${{needs.set-env.outputs.name}}-${{needs.set-env.outputs.version}}-windows-arm64.zip

0 comments on commit 4fc89d4

Please sign in to comment.