turn off windows subsystem #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Deployment | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
linux-release: | |
name: Linux Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build --release | |
- name: Archive | |
working-directory: target/release | |
run: tar -czvf grin-gui-${{ github.ref_name }}-linux-x86_64.tar.gz grin-gui | |
- name: Create Checksum | |
working-directory: target/release | |
run: openssl sha256 grin-gui-${{ github.ref_name }}-linux-x86_64.tar.gz > grin-gui-${{ github.ref_name }}-linux-x86_64-sha256sum.txt | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
generate_release_notes: true | |
files: | | |
target/release/grin-gui-${{ github.ref_name }}-linux-x86_64.tar.gz | |
target/release/grin-gui-${{ github.ref_name }}-linux-x86_64-sha256sum.txt | |
macos-release: | |
name: macOS Release | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build --release | |
- name: Archive | |
working-directory: target/release | |
run: tar -czvf grin-gui-${{ github.ref_name }}-macos-x86_64.tar.gz grin-gui | |
- name: Create Checksum | |
working-directory: target/release | |
run: openssl sha256 grin-gui-${{ github.ref_name }}-macos-x86_64.tar.gz > grin-gui-${{ github.ref_name }}-macos-x86_64-sha256sum.txt | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
target/release/grin-gui-${{ github.ref_name }}-macos-x86_64.tar.gz | |
target/release/grin-gui-${{ github.ref_name }}-macos-x86_64-sha256sum.txt | |
windows-release: | |
name: Windows Release | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Rust version | |
run: rustup --version | |
- name: Build | |
run: cargo build --release | |
- name: Build | |
run: cargo build | |
- name: Archive release | |
uses: vimtor/action-zip@v1 | |
with: | |
files: target/release/grin-gui.exe | |
dest: target/release/grin-gui-${{ github.ref_name }}-win-x86_64.zip | |
- name: Archive debug | |
uses: vimtor/action-zip@v1 | |
with: | |
files: target/debug/grin-gui.exe | |
dest: target/debug/grin-gui-${{ github.ref_name }}-win-x86_64-debug.zip | |
- name: Create Checksum release | |
working-directory: target/release | |
shell: pwsh | |
run: get-filehash -algorithm sha256 grin-gui-${{ github.ref_name }}-win-x86_64.zip | Format-List | Out-String | ForEach-Object { $_.Trim() } > grin-gui-${{ github.ref_name }}-win-x86_64-sha256sum.txt | |
- name: Create Checksum debug | |
working-directory: target/debug | |
shell: pwsh | |
run: get-filehash -algorithm sha256 grin-gui-${{ github.ref_name }}-win-x86_64-debug.zip | Format-List | Out-String | ForEach-Object { $_.Trim() } > grin-gui-${{ github.ref_name }}-win-x86_64-debug-sha256sum.txt | |
- name: Install cargo-wix | |
run: cargo install cargo-wix | |
- name: Run cargo-wix | |
run: cargo wix -p grin-gui -o ./target/wix/grin-gui-${{ github.ref_name }}-win-x86_64.msi | |
- name: Create Checksum for MSI | |
working-directory: target/wix | |
shell: pwsh | |
run: get-filehash -algorithm sha256 grin-gui-${{ github.ref_name }}-win-x86_64.msi | Format-List | Out-String | ForEach-Object { $_.Trim() } > grin-gui-${{ github.ref_name }}-win-x86_64-msi-sha256sum.txt | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
target/debug/grin-gui-${{ github.ref_name }}-win-x86_64-debug.zip | |
target/debug/grin-gui-${{ github.ref_name }}-win-x86_64-debug-sha256sum.txt | |
target/release/grin-gui-${{ github.ref_name }}-win-x86_64.zip | |
target/release/grin-gui-${{ github.ref_name }}-win-x86_64-sha256sum.txt | |
target/wix/grin-gui-${{ github.ref_name }}-win-x86_64.msi | |
target/wix/grin-gui-${{ github.ref_name }}-win-x86_64-msi-sha256sum.txt |