diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ef9dacb..ada0d59 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -91,3 +91,37 @@ 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: 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 \ No newline at end of file