Skip to content

Commit

Permalink
CI: Use version-override number in building asy's GUI.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamievlin committed Aug 25, 2024
1 parent 75633ef commit 98f3d89
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/build-gui.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
name: build-gui
on:
workflow_dispatch:
workflow_call:
inputs:
version_override:
type: string
default: ""
workflow_dispatch:
inputs:
version_override:
type: string
description: Version override. If not given, will use the default value in configure.ac.
default: ""

jobs:
build-gui-linux:
Expand All @@ -13,7 +22,10 @@ jobs:
- name: install dependencies
run: python3 -m pip install -r GUI/requirements.dev.txt -r GUI/requirements.txt
- name: build GUI files
run: cd GUI && python3 buildtool.py build
run: |
test -n "${{ inputs.version_override }}" \
&& VERSION_OVERRIDE_ARG="--version-override='${{ inputs.version_override }}'"
cd GUI && python3 buildtool.py build $VERSION_OVERRIDE_ARG
- name: Archive generated GUI files
uses: actions/upload-artifact@v4
with:
Expand All @@ -34,7 +46,11 @@ jobs:
shell: pwsh
run: |
Push-Location GUI
python.exe buildtool.py build
if ("${{ inputs.version_override }}")
{
$version_override_arg="--version-override='${{ inputs.version_override }}'"
}
python.exe buildtool.py build $version_override_arg
Pop-Location
- name: Archive generated GUI files
uses: actions/upload-artifact@v4
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pull-req-precheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ jobs:
needs: [build-asy-windows]
uses: ./.github/workflows/test-asy-windows.yml
build-gui:
needs: determine_version_suffix
uses: ./.github/workflows/build-gui.yml
with:
version_override: ${{ needs.determine_version_suffix.outputs.asyver }}
package-asy-install-file:
needs:
- build-asy-windows
Expand Down

0 comments on commit 98f3d89

Please sign in to comment.