File tree Expand file tree Collapse file tree 3 files changed +153
-0
lines changed Expand file tree Collapse file tree 3 files changed +153
-0
lines changed Original file line number Diff line number Diff line change 1+ name : C/C++ CI (Ubuntu Clang)
2+
3+ on : [push, pull_request, workflow_dispatch]
4+
5+ jobs :
6+ build :
7+
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - uses : actions/checkout@v3
12+ with :
13+ submodules : true
14+ fetch-depth : 0
15+
16+ - uses : lukka/get-cmake@latest
17+ - name : List $RUNNER_WORKSPACE before vcpkg is setup
18+ run : find $RUNNER_WORKSPACE
19+ shell : bash
20+
21+ - name : Setup vcpkg
22+ uses : lukka/run-vcpkg@main
23+ id : runvcpkg
24+
25+ - name : List $RUNNER_WORKSPACE before build
26+ run : find $RUNNER_WORKSPACE
27+ shell : bash
28+
29+ - name : Prints output of run-vcpkg's action.
30+ run : echo "root='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_ROOT_OUT }}', triplet='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_DEFAULT_TRIPLET_OUT }}' "
31+
32+ - name : Install dependencies
33+ run : |
34+ sudo apt-get install autoconf-archive '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
35+
36+ - name : Set up Clang
37+ uses : egor-tensin/setup-clang@v1
38+ with :
39+ version : 15
40+ platform : x64
41+
42+ - name : Run CMake
43+ uses : lukka/run-cmake@v10
44+ with :
45+ configurePreset : ' ninja-clang'
46+ configurePresetAdditionalArgs : " ['-DVCPKG_ROOT_TRIPLET=x64-linux-release']"
47+ buildPreset : ' clang'
48+
49+ - name : List $RUNNER_WORKSPACE after build
50+ run : find $RUNNER_WORKSPACE
51+ shell : bash
Original file line number Diff line number Diff line change 1+ name : C/C++ CI (Ubuntu GCC)
2+
3+ on : [push, pull_request, workflow_dispatch]
4+
5+ jobs :
6+ build :
7+
8+ runs-on : ubuntu-latest
9+ env :
10+ VCPKG_DEFAULT_HOST_TRIPLET : x64-linux-release
11+ VCPKG_DEFAULT_TRIPLET : x64-linux-release
12+
13+ steps :
14+ - uses : actions/checkout@v3
15+ with :
16+ submodules : true
17+ fetch-depth : 0
18+
19+ - uses : lukka/get-cmake@latest
20+ - name : List $RUNNER_WORKSPACE before vcpkg is setup
21+ run : find $RUNNER_WORKSPACE
22+ shell : bash
23+
24+ - name : Setup vcpkg
25+ uses : lukka/run-vcpkg@main
26+ id : runvcpkg
27+
28+ - name : List $RUNNER_WORKSPACE before build
29+ run : find $RUNNER_WORKSPACE
30+ shell : bash
31+
32+ - name : Prints output of run-vcpkg's action.
33+ run : echo "root='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_ROOT_OUT }}', triplet='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_DEFAULT_TRIPLET_OUT }}' "
34+
35+ - name : Install dependencies
36+ run : |
37+ sudo apt-get install autoconf-archive '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
38+
39+ - name : Compiler check
40+ run : g++ --version
41+
42+ - name : Run CMake
43+ uses : lukka/run-cmake@v10
44+ with :
45+ configurePreset : ' ninja-gcc'
46+ configurePresetAdditionalArgs : " ['-DVCPKG_ROOT_TRIPLET=x64-linux-release']"
47+ buildPreset : ' gcc'
48+
49+ - name : List $RUNNER_WORKSPACE after build
50+ run : find $RUNNER_WORKSPACE
51+ shell : bash
Original file line number Diff line number Diff line change 1+ name : C/C++ CI (Windows x64)
2+
3+ on : [push, pull_request, workflow_dispatch]
4+
5+ jobs :
6+ build :
7+
8+ runs-on : windows-latest
9+
10+ steps :
11+ - uses : actions/checkout@v3
12+ with :
13+ submodules : true
14+ fetch-depth : 0
15+
16+ - uses : lukka/get-cmake@latest
17+ - name : List $RUNNER_WORKSPACE before vcpkg is setup
18+ run : find $RUNNER_WORKSPACE
19+ shell : bash
20+
21+ - name : Setup vcpkg
22+ uses : lukka/run-vcpkg@main
23+ id : runvcpkg
24+
25+ - name : List $RUNNER_WORKSPACE before build
26+ run : find $RUNNER_WORKSPACE
27+ shell : bash
28+
29+ - name : Prints output of run-vcpkg's action.
30+ run : echo "root='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_ROOT_OUT }}', triplet='${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_DEFAULT_TRIPLET_OUT }}' "
31+
32+ - name : Run CMake
33+ uses : lukka/run-cmake@v10
34+ with :
35+ configurePreset : ' msbuild-default'
36+ configurePresetAdditionalArgs : " ['-DVCPKG_ROOT_TRIPLET=x64-windows-release']"
37+ buildPreset : ' msvc'
38+ buildPresetAdditionalArgs : ' [`--config Release`]'
39+
40+ - name : List $RUNNER_WORKSPACE after build
41+ run : find $RUNNER_WORKSPACE
42+ shell : bash
43+
44+ - name : Deploy application
45+ run : |
46+ vcpkg_installed/x64-windows-release/tools/Qt6/bin/windeployqt.exe Release/qSQLbrowser.exe
47+ working-directory : ./build
48+
49+ - name : Run app
50+ run : >-
51+ build\Release\qSQLbrowser.exe
You can’t perform that action at this time.
0 commit comments