Skip to content

Commit

Permalink
add debug version for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
frett27 committed Jul 18, 2023
1 parent 59a2b04 commit f2afdf5
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,32 @@ jobs:

# SAVE INSTALLER
- id: upload-installer-win
name: Upload installer windows
name: Upload windows release
uses: actions/upload-artifact@v2
with:
path: target/release/virtualbookplayerapp.exe
name: windows-virtualbookplayerapp-${{ github.ref_name }}.exe
retention-days: 1

- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: build
args: --debug

- id: display-downloaded-files
name: display downloaded files
run: |
cp target/debug/virtualbookplayerapp.exe target/debug/virtualbookplayerapp-debug.exe
# SAVE INSTALLER
- id: upload-installer-win-debug
name: Upload windows binary debug
uses: actions/upload-artifact@v2
with:
path: target/debug/virtualbookplayerapp-debug.exe
name: windows-virtualbookplayerapp-${{ github.ref_name }}-debug.exe
retention-days: 1


create-release:
Expand All @@ -119,6 +138,12 @@ jobs:
with:
name: windows-virtualbookplayerapp-${{ github.ref_name }}.exe

- id: download-windows-image-debug
name: Download Windows appimage
uses: actions/download-artifact@v2
with:
name: windows-virtualbookplayerapp-${{ github.ref_name }}-debug.exe

- id: display-downloaded-files
name: display downloaded files
run: |
Expand Down Expand Up @@ -159,3 +184,15 @@ jobs:
asset_name: windows-virtualbookplayerapp-${{ github.ref_name }}.exe
asset_content_type: application/x-binary


- id: debug-windows-appimage
name: Debug Windows appimage
uses: actions/upload-release-asset@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: virtualbookplayerapp-debug.exe
asset_name: windows-virtualbookplayerapp-${{ github.ref_name }}-debug.exe
asset_content_type: application/x-binary

0 comments on commit f2afdf5

Please sign in to comment.