Skip to content

Commit

Permalink
Load qt6_version from buildVariables.cmd
Browse files Browse the repository at this point in the history
This step loads the qt6_version variable from the buildVariables.cmd script and sets it as an environment variable for subsequent steps in the GitHub Actions workflow.

    The call command executes the buildVariables.cmd script located in the Installer directory of the repository.
    The qt6_version variable, defined within the buildVariables.cmd script, is captured and appended to the GitHub Actions environment file (%GITHUB_ENV%), making it accessible in future steps.

This ensures that the qt6_version is available throughout the workflow without needing to redefine it.
  • Loading branch information
offhub committed Nov 20, 2024
1 parent e173105 commit 63aac11
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ on:
- '**/COPYING'

env:
forbuildVariables: use Installer\buildVariables.cmd file
#qt_version: 5.15.16
qt6_version: 6.3.1
#qt6_version: 6.3.1
#openssl_version: 3.4.0
#ghSsl_user: xanasoft
#ghSsl_repo: openssl-builds
Expand Down Expand Up @@ -190,6 +191,13 @@ jobs:
steps:
- name: Checkout code
uses: actions/[email protected]

- name: Load Variables from buildVariables.cmd
shell: cmd
run: |
@echo on
call "${{ github.workspace }}\Installer\buildVariables.cmd"
echo qt6_version=%qt6_version% >> %GITHUB_ENV%
- name: Setup msbuild
uses: microsoft/setup-msbuild@v2
Expand Down

0 comments on commit 63aac11

Please sign in to comment.