File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Build Source
1+ name : Build Cubic Discord Bot
22
33on :
44 push :
77
88jobs :
99 build :
10- name : " Build "
10+ name : " Compile Source "
1111 runs-on : ubuntu-latest
1212 steps :
1313 - uses : actions/checkout@v6
1414
15- - uses : lukka/get-cmake@v4.3.2
15+ - uses : lukka/get-cmake@v4.3.3
1616
1717 - name : Setup vcpkg
1818 uses : lukka/run-vcpkg@v11
4040 - name : Build
4141 run : cmake --build build --config Release -j$(nproc)
4242
43+ # i have no idea how else to get the runtime libs :(
44+ - name : Collect runtime libraries
45+ run : |
46+ ls -l vcpkg/packages/*_x64-linux/lib || true
47+ ldd build/CubicDiscord
48+ mkdir -p artifacts/libs
49+ cp vcpkg/packages/*_x64-linux/lib/*.so* artifacts/libs/ || true
50+ ls -l artifacts/libs || true
51+
4352 - name : Save vcpkg cache
4453 if : always()
4554 uses : actions/cache/save@v5
8089 - name : Publish Nightly release
8190 id : publish-nightly
8291 if : ${{ github.ref_name == github.event.repository.default_branch }}
83- uses : andelf/nightly-release@main
92+ uses : andelf/nightly-release@v1
8493 env :
8594 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8695 with :
Original file line number Diff line number Diff line change @@ -9,28 +9,20 @@ include(cmake/CPM.cmake)
99option (CUBIC_LOCAL_BUILD "Enable local testing mode" OFF )
1010if (CUBIC_LOCAL_BUILD)
1111 target_compile_definitions (${PROJECT_NAME } PRIVATE CUBIC_LOCAL_BUILD=1 )
12- find_package (dpp CONFIG REQUIRED )
13-
14- target_link_libraries (${PROJECT_NAME } PRIVATE
15- dpp::dpp
16- )
1712else () # for ci
18- CPMAddPackage ("gh:brainboxdotcc/DPP#v10.1.5" )
19- target_link_libraries (${PROJECT_NAME } PRIVATE
20- dpp
21- )
22-
2313 target_link_options (${PROJECT_NAME } PRIVATE
2414 -static
2515 -static-libgcc
2616 -static-libstdc++
2717 )
2818endif ()
2919
20+ find_package (dpp CONFIG REQUIRED )
3021find_package (re2 CONFIG REQUIRED )
3122
3223target_link_libraries (${PROJECT_NAME } PRIVATE
3324 re2::re2
25+ dpp::dpp
3426)
3527
3628CPMAddPackage ("gh:dankmeme01/asp2#main" )
You can’t perform that action at this time.
0 commit comments