Skip to content

Commit

Permalink
Add publish job for Windows x64
Browse files Browse the repository at this point in the history
  • Loading branch information
jtschuster committed May 18, 2024
1 parent afc42ac commit c986939
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/mean_bean_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,45 @@ jobs:
asset_path: ${{ env.BIN }}.tar.gz
asset_name: ${{ env.BIN }}-${{steps.tag.outputs.tag}}-${{ matrix.target }}.tar.gz
asset_content_type: application/gzip

win:
runs-on: windows-latest
strategy:
matrix:
target:
- x86_64-pc-windows-msvc
steps:
- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1

- uses: actions/checkout@v2

- run: rustup.exe default
- run: rustup.exe target add ${{ matrix.target }}

- name: Build Release
run: cargo.exe build --target ${{ matrix.target }} --release

- name: Zip Binary
run: 7z a ${{ env.BIN }}.zip ./target/${{ matrix.target }}/release/${{ env.BIN }}.exe

- uses: XAMPPRocky/create-release@v1.0.2
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ env.BIN }}.zip
asset_name: ${{ env.BIN }}-${{steps.tag.outputs.tag}}-${{ matrix.target }}.zip
asset_content_type: application/gzip

0 comments on commit c986939

Please sign in to comment.