Skip to content

Commit

Permalink
Improve CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernthedev committed Dec 21, 2023
1 parent 0d5c038 commit 4234e1f
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 57 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/cargo-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,28 @@ jobs:
command: build
args: --release

- name: Download Inno Setup
uses: suisei-cn/actions-download-file@v1
if: ${{matrix.os == 'windows-latest' }}
with:
url: https://jrsoftware.org/download.php/is.exe
target: ../

- name: Install Inno Setup
if: ${{matrix.os == 'windows-latest' }}
run: "../is.exe /VERYSILENT /NORESTART /ALLUSERS"

- name: Compile Installer
if: ${{matrix.os == 'windows-latest' }}
run: '& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" /f installer/installer.iss'

- name: Artifact Upload
uses: actions/upload-artifact@v2
if: ${{matrix.os == 'windows-latest' }}
with:
name: qpm-installer.exe
path: ./installer/qpm-installer.exe

- name: Upload executable
uses: actions/upload-artifact@v2
with:
Expand Down
37 changes: 35 additions & 2 deletions .github/workflows/cargo-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,42 @@ jobs:
command: build
args: --release

- name: Rename build
run: |
pwsh Compress-Archive ./target/release/${{matrix.file-name}} -DestinationPath qpm-${{matrix.prefix}}.zip
- name: Upload Release Assets
if: ${{ github.event_name != 'workflow_dispatch' }}
uses: softprops/action-gh-release@v1
with:
files: |
./target/release/${{ matrix.file-name }}
qpm-${{matrix.prefix}}.zip
# TODO: Move to somewhere else
- name: Download Inno Setup
uses: suisei-cn/actions-download-file@v1
if: ${{matrix.os == 'windows-latest' }}
with:
url: https://jrsoftware.org/download.php/is.exe
target: ../

- name: Install Inno Setup
if: ${{matrix.os == 'windows-latest' }}
run: "../is.exe /VERYSILENT /NORESTART /ALLUSERS"

- name: Compile Installer
if: ${{matrix.os == 'windows-latest' }}
run: '& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" /f installer/installer.iss'

- name: Artifact Upload
uses: actions/upload-artifact@v2
if: ${{matrix.os == 'windows-latest' }}
with:
name: qpm-installer.exe
path: ./installer/qpm-installer.exe

- name: Upload Installer Assets
if: ${{matrix.os == 'windows-latest' }}
uses: softprops/action-gh-release@v1
with:
files: |
qpm-installer.exe
55 changes: 0 additions & 55 deletions .github/workflows/windows-installer.yml

This file was deleted.

0 comments on commit 4234e1f

Please sign in to comment.