File tree Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 1919 with :
2020 arch : amd64_x86
2121 - name : build
22+ shell : bash
2223 run : |
23- mkdir build
24+ mkdir build upload
25+ touch upload/.a-workaround-to-avoid-being-flattened
2426 cd build
2527 cmake .. -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.config }}
26- cmake --build .
28+ project_name=$(grep '^CMAKE_PROJECT_NAME:STATIC=' CMakeCache.txt | cut -d = -f 2-)
29+ config=${{ matrix.config }}
30+ echo "ARTIFACT_NAME=${project_name}_${config,,}" >> ${GITHUB_ENV}
31+ echo "PROJECT_NAME=${project_name}" >> ${GITHUB_ENV}
32+ cmake --build .
33+ cmake --install . --prefix "../artifact/${project_name}"
34+ - name : Upload the ${{ matrix.config }} binary
35+ uses : actions/upload-artifact@v4
36+ with :
37+ name : ${{ env.ARTIFACT_NAME }}
38+ path : |
39+ artifact/${{ env.PROJECT_NAME }}
40+ artifact/.a-workaround-to-avoid-being-flattened
41+ !artifact/.a-workaround-to-avoid-being-flattened
Original file line number Diff line number Diff line change @@ -37,4 +37,11 @@ target_link_libraries(
3737 shlwapi
3838 d3d9
3939 d3dx9
40- )
40+ )
41+
42+ # binary
43+ install (TARGETS "${PROJECT_NAME} " DESTINATION .)
44+ # PDB file
45+ install (FILES $<TARGET_PDB_FILE:${PROJECT_NAME} > DESTINATION . OPTIONAL )
46+ # license and other common files
47+ install (FILES LICENSE DESTINATION .)
You can’t perform that action at this time.
0 commit comments