|
4 | 4 | # Sequence of patterns matched against refs/tags |
5 | 5 | tags: |
6 | 6 | - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 |
7 | | - |
| 7 | + branches: |
| 8 | + - "**" |
| 9 | + |
8 | 10 | jobs: |
9 | 11 | build: |
10 | 12 | runs-on: windows-latest |
11 | 13 | steps: |
12 | 14 | - name: Cache Qt |
13 | 15 | id: cache-qt |
14 | | - uses: actions/cache@v1 # not v2! |
| 16 | + uses: actions/cache@v4 |
15 | 17 | with: |
16 | 18 | path: ../Qt |
17 | | - key: ${{ runner.os }}-QtCache |
18 | | - |
| 19 | + key: ${{ runner.os }}-QtCache |
| 20 | + - name: Install python packages |
| 21 | + shell: bash |
| 22 | + run: python -m pip install jinja2 aqtinstall |
19 | 23 | - name: Install Qt |
20 | | - uses: jurplel/install-qt-action@v2 |
21 | | - with: |
22 | | - cached: ${{ steps.cache-qt.outputs.cache-hit }} |
23 | | - - uses: lukka/get-cmake@latest |
24 | | - - name: Add msbuild to PATH |
25 | | - |
26 | | - - name: Install jinja2 |
27 | 24 | shell: bash |
28 | | - run: python -m pip install jinja2 |
| 25 | + run: aqt install-qt -O ../Qt windows desktop 6.8.2 win64_msvc2022_64 -m qt3d qtshadertools |
29 | 26 | - name: Install zip |
30 | 27 | shell: bash |
31 | 28 | run: choco install -y zip |
| 29 | + - name: Install ortools |
| 30 | + shell: bash |
| 31 | + run: | |
| 32 | + C:/msys64/usr/bin/wget.exe https://github.com/google/or-tools/releases/download/v9.10/or-tools_x64_VisualStudio2022_cpp_v9.10.4067.zip |
| 33 | + unzip or-tools_x64_VisualStudio2022_cpp_v9.10.4067.zip -d ../ |
| 34 | + - name: Set up MinGW |
| 35 | + shell: bash |
| 36 | + run: choco install mingw |
32 | 37 | - name: Checkout |
33 | 38 | uses: actions/checkout@v2 |
34 | 39 | with: |
35 | 40 | submodules: true |
| 41 | + fetch-depth: 0 |
36 | 42 | - name: CMake |
37 | 43 | shell: bash |
38 | 44 | run: | |
39 | | - mkdir build |
40 | | - cd build |
41 | | - cmake -DBUILD_TESTING=OFF .. |
| 45 | + cmake -B build -DBUILD_TESTING=OFF -G "MinGW Makefiles" -DQt6_DIR=../Qt/6.8.2/msvc2022_64/lib/cmake/Qt6 -DCMAKE_PREFIX_PATH=../or-tools_x64_VisualStudio2022_cpp_v9.10.4067 |
42 | 46 | - name: Build |
43 | | - run: msbuild build\dxfplotter.sln /property:Configuration=Release |
| 47 | + run: cmake --build build --config Release |
44 | 48 | - name: Deploy Qt |
45 | 49 | shell: bash |
46 | 50 | run: ci/deploywindows.sh |
|
0 commit comments