File tree Expand file tree Collapse file tree 1 file changed +78
-0
lines changed Expand file tree Collapse file tree 1 file changed +78
-0
lines changed Original file line number Diff line number Diff line change 1+ name : windows-latest Developement Build
2+
3+ on :
4+ workflow_dispatch :
5+
6+ env :
7+ # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
8+ BUILD_TYPE : Release
9+
10+ jobs :
11+ build :
12+ # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
13+ # You can convert this to a matrix build if you need cross-platform coverage.
14+ # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
15+ runs-on : windows-latest
16+
17+ steps :
18+ - uses : actions/checkout@v4
19+
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
25+
26+ - name : Update Ubuntu
27+ shell : wsl-bash {0}
28+ run : |
29+ sudo apt-get update
30+
31+ - name : Install Qt
32+ uses : jurplel/install-qt-action@v3
33+ 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/
78+
You can’t perform that action at this time.
0 commit comments