Skip to content

Commit

Permalink
Update build-windows.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
khumnath authored Jun 15, 2024
1 parent 1558198 commit 802b173
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,32 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- name: Set up Qt
uses: jurplel/install-qt-action@v2
with:
version: '6.6.1'
host: 'windows'
target: 'desktop'
arch: 'win64_msvc2019_64'
dir: ${{ github.workspace }}\Qt

- name: Configure Qt environment
shell: cmd
run: call ${{ github.workspace }}\Qt\6.6.1\msvc2019_64\bin\qt6-env.bat

- name: Install CMake
run: choco install cmake --installargs '"ADD_CMAKE_TO_PATH=System"'

- name: Create build directory
run: cmake -DCMAKE_BUILD_TYPE=Release -S . -B build

- name: Build project
run: cmake --build build --config Release

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: nepdate-calendar-windows
path: build/Release/nepdate-calendar.exe
- uses: actions/checkout@v2

- name: Set up Qt
uses: jurplel/install-qt-action@v2
with:
version: '6.6.1'
host: 'windows'
target: 'desktop'
arch: 'win64_msvc2019_64'
dir: ${{ github.workspace }}\Qt

- name: Configure Qt environment
shell: cmd
run: call ${{ github.workspace }}\Qt\6.6.1\msvc2019_64\bin\qt6-env.bat

- name: Install CMake
run: choco install cmake --installargs '"ADD_CMAKE_TO_PATH=System"'

- name: Create build directory
run: cmake -DCMAKE_BUILD_TYPE=Release -S . -B build

- name: Build project
run: cmake --build build --config Release

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: nepdate-calendar-windows
path: build/Release/nepdate-calendar.exe

0 comments on commit 802b173

Please sign in to comment.