-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GITHUB: nsis.yml - workflow to listen to pushes on Main branch and tr…
…igger NSIS compiler. Enumerates *.nsi files within the windows installer directory and attempts to run on them. Signed-off-by: Nick Boyd <[email protected]>
- Loading branch information
Showing
1 changed file
with
68 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: nsis | ||
|
||
on: | ||
workflow_run: | ||
workflows: [ Build ] | ||
types: [ completed ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
config: | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.files.outputs.matrix }} | ||
branch: ${{ steps.branch-ref.outputs.name }} | ||
steps: | ||
- uses: actions/checkout@master | ||
with: | ||
ref: ${{ github.event.workflow_run.head_branch }} | ||
|
||
- name: Return Branch | ||
id: branch-ref | ||
run: echo "::set-output name=${{ github.event.workflow_run.head_branch }}" | ||
|
||
- name: Get Script Files | ||
id: list-files | ||
uses: Rishabh510/Path-lister-action@master | ||
with: | ||
path: installers/ | ||
type: .nsi | ||
|
||
- name: Return Script Files | ||
id: files | ||
run: echo "::set-output name=matrix::$(echo "${{ steps.list-files.outputs.paths }}" | sed 's/\//\\/g' | jq --raw-input --compact-output '[splits(" ") | select(length > 0)]')" | ||
|
||
make-installer: | ||
runs-on: windows-latest | ||
needs: [ config ] | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
file: ${{ fromJson(needs.config.outputs.matrix) }} | ||
steps: | ||
- uses: actions/checkout@master | ||
with: | ||
ref: ${{ github.event.workflow_run.head_branch }} | ||
|
||
- name: Download artifact | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
workflow: ${{ github.event.workflow_run.workflow_id }} | ||
workflow_conclusion: success | ||
name: hobovr-build-windows-latest | ||
path: ${{ github.workspace }} | ||
|
||
- name: Create nsis installer | ||
id: create-installer | ||
shell: powershell | ||
run: | | ||
"$CONDA\bin\conda.bat execute ${{ matrix.file }}" | ||
working-directory: ${{ github.workspace }}\installers\win | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: "hobovr_setup.exe" # Get the Output Name | ||
path: | | ||
hobovr |