File tree Expand file tree Collapse file tree 1 file changed +63
-29
lines changed Expand file tree Collapse file tree 1 file changed +63
-29
lines changed Original file line number Diff line number Diff line change 99
1010jobs :
1111 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
1512 runs-on : windows-latest
1613
17-
1814 steps :
19- - name : Checkout repository
20- uses : actions/checkout@v4
21-
22- - name : Set up WSL and build in Ubuntu
23- shell : wsl-bash {0}
24- run : |
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
41- with :
42- name : Qt6-App-Binaries
43- path : build/
15+ - name : Checkout code
16+ uses : actions/checkout@v4
17+
18+ - name : Setup WSL
19+ uses : Vampire/setup-wsl@v3
20+ with :
21+ distribution : Ubuntu-22.04
22+
23+ - name : Update ubuntu
24+ shell : wsl-bash {0}
25+ run : |
26+ sudo apt update
27+ sudo apt install -y \
28+ build-essential \
29+ cmake \
30+ ninja-build \
31+ pkg-config \
32+ qt6-base-dev \
33+ qt6-base-dev-tools \
34+ libgl1-mesa-dev \
35+ libxkbcommon-dev \
36+ libxcb-xinerama0-dev \
37+ libxcb-cursor-dev
38+
39+ - name : Where Am I
40+ shell : wsl-bash {0}
41+ run : |
42+ pwd
43+ ls -l
44+ lscpu
45+
46+ - name : Versions
47+ shell : wsl-bash {0}
48+ run : g++ --version
49+
50+ - name : Configure CMake
51+ shell : wsl-bash {0}
52+ run : |
53+ mkdir -p build
54+ cd build
55+ cmake .. \
56+ -DCMAKE_BUILD_TYPE=Release \
57+ -DCMAKE_PREFIX_PATH=/usr/lib/x86_64-linux-gnu/cmake/Qt6
58+
59+ - name : Build
60+ shell : wsl-bash {0}
61+ run : |
62+ cd build
63+ make -j$(nproc)
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/
4478
You can’t perform that action at this time.
0 commit comments