@@ -14,65 +14,31 @@ jobs:
1414 # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
1515 runs-on : windows-latest
1616
17- steps :
18- - uses : actions/checkout@v4
1917
20- - name : Install WSL2 and Ubuntu
21- uses : Vampire/setup-wsl@v1 # Or a similar action to install WSL2 and a distro
22- with :
23- distro : Ubuntu
24- version : 2
18+ steps :
19+ - name : Checkout repository
20+ uses : actions/checkout@v4
2521
26- - name : Update Ubuntu
22+ - name : Set up WSL and build in Ubuntu
2723 shell : wsl-bash {0}
2824 run : |
29- sudo apt-get update
30-
31- - name : Install Qt
32- uses : jurplel/install-qt-action@v3
25+ # Ensure your WSL is Ubuntu, otherwise adjust this step accordingly.
26+ echo "WSL Distro: $(lsb_release -d)"
27+
28+ # Set up Qt environment if needed
29+ # You can replace this with a proper path if installed manually
30+ export PATH=/opt/Qt/6.6.2/gcc_64/bin:$PATH
31+ export CMAKE_PREFIX_PATH=/opt/Qt/6.6.2/gcc_64
32+
33+ mkdir -p build
34+ cd build
35+ cmake .. -DCMAKE_BUILD_TYPE=Release
36+ make -j$(nproc)
37+
38+ - name : Archive build artifacts
39+ if : success()
40+ uses : actions/upload-artifact@v4
3341 with :
34- version : 6.6
35- install-deps : ' true'
36- modules : ' qtcharts'
37-
38- - name : Where am I
39- shell : wsl-bash {0}
40- run : |
41- pwd
42- ls -l
43-
44- - name : Tool versions
45- shell : wsl-bash {0}
46- run : |
47- g++ --version
48- cmake --version
49-
50- - name : Configure CMake
51- # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
52- # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
53- shell : wsl-bash {0}
54- run : |
55- cd src
56- cmake -B ${{github.workspace}}/src/build -DQTVERSION=QT6 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
57-
58- - name : Build
59- # Build your program with the given configuration
60- shell : wsl-bash {0}
61- run : |
62- cd src
63- cmake --build ${{github.workspace}}/src/build --config ${{env.BUILD_TYPE}} --target seergdb --parallel 4
64-
65- - name : Tar
66- shell : wsl-bash {0}
67- run : |
68- cd src/build
69- cp ../../LICENSE .
70- cp ../../CHANGELOG.md .
71- tar zcvf seergdb.tar.gz LICENSE CHANGELOG.md seergdb
72-
73- - name : List Results
74- shell : wsl-bash {0}
75- run : |
76- cd src
77- ls -l build/
42+ name : Qt6-App-Binaries
43+ path : build/
7844
0 commit comments