mirror of
https://github.com/vanilla-wiiu/vanilla.git
synced 2026-10-28 09:43:51 +00:00
ci: minor improvements
This commit is contained in:
1 parent
1debbd2d58
commit
cd96b9aad9
2 files changed
+20
-16
No files matched your search
@@ -47,13 +47,13 @@ jobs:
|
||||
|
||||
- name: Archive
|
||||
run: |
|
||||
tar czf Vanilla-${{ matrix.platform.os }}-${{ matrix.platform.arch }}.tar.gz -C "${{ github.workspace }}/build" .
|
||||
tar czf vanilla-${{ matrix.platform.os }}-${{ matrix.platform.arch }}.tar.gz -C "${{ github.workspace }}/build" .
|
||||
|
||||
- name: Upload a Build Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Vanilla (${{ matrix.platform.os }} ${{ matrix.platform.arch }})
|
||||
path: Vanilla-${{ matrix.platform.os }}-${{ matrix.platform.arch }}.tar.gz
|
||||
name: ${{ matrix.platform.os }} ${{ matrix.platform.arch }}
|
||||
path: vanilla-${{ matrix.platform.os }}-${{ matrix.platform.arch }}.tar.gz
|
||||
|
||||
- name: Upload Continuous Release
|
||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'vanilla-wiiu/vanilla' }}
|
||||
@@ -62,5 +62,5 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
curl -fLOSs --retry 2 --retry-delay 60 https://github.com/probonopd/uploadtool/raw/master/upload.sh
|
||||
bash upload.sh Vanilla-${{ matrix.platform.os }}-${{ matrix.platform.arch }}.tar.gz
|
||||
bash upload.sh vanilla-${{ matrix.platform.os }}-${{ matrix.platform.arch }}.tar.gz
|
||||
|
||||
+16
-12
@@ -12,7 +12,9 @@ if (VANILLA_BUILD_VENDORED)
|
||||
endif()
|
||||
|
||||
# Link zlib for PNG
|
||||
list(APPEND _vanilla_pi_libs "z")
|
||||
if (UNIX)
|
||||
list(APPEND _vanilla_pi_libs "z")
|
||||
endif()
|
||||
|
||||
include(FetchContent)
|
||||
include(ExternalProject)
|
||||
@@ -179,11 +181,6 @@ else()
|
||||
add_executable(vanilla-pi ${VANILLA_PI_SRC})
|
||||
endif()
|
||||
|
||||
if (UNIX AND NOT APPLE)
|
||||
# Assume this platform is capable of running vanilla-pipe
|
||||
target_compile_definitions(vanilla-pi PRIVATE VANILLA_PIPE_AVAILABLE)
|
||||
endif()
|
||||
|
||||
# Ensure executable is installed
|
||||
install(TARGETS vanilla-pi)
|
||||
|
||||
@@ -203,10 +200,18 @@ target_link_libraries(vanilla-pi PRIVATE
|
||||
m
|
||||
)
|
||||
|
||||
if (UNIX AND NOT APPLE AND NOT ANDROID)
|
||||
if (LINUX)
|
||||
# Assume this platform is capable of running vanilla-pipe
|
||||
target_compile_definitions(vanilla-pi PRIVATE VANILLA_PIPE_AVAILABLE)
|
||||
|
||||
target_link_libraries(vanilla-pi PRIVATE
|
||||
drm
|
||||
)
|
||||
|
||||
target_include_directories(vanilla-pi PRIVATE
|
||||
# xf86drm.h needs this
|
||||
/usr/include/libdrm
|
||||
)
|
||||
endif()
|
||||
|
||||
if (ANDROID)
|
||||
@@ -247,9 +252,6 @@ target_include_directories(vanilla-pi PRIVATE
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/../lib"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/.."
|
||||
|
||||
# xf86drm.h needs this
|
||||
/usr/include/libdrm
|
||||
)
|
||||
|
||||
# Install assets
|
||||
@@ -273,6 +275,8 @@ else()
|
||||
endif()
|
||||
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/assets" DESTINATION "${_vanilla_pi_asset_destination}")
|
||||
|
||||
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/res/com.mattkc.vanilla.desktop" DESTINATION share/applications)
|
||||
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/res/com.mattkc.vanilla.svg" DESTINATION share/pixmaps)
|
||||
if (LINUX)
|
||||
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/res/com.mattkc.vanilla.desktop" DESTINATION share/applications)
|
||||
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/res/com.mattkc.vanilla.svg" DESTINATION share/pixmaps)
|
||||
endif()
|
||||
endif()
|
||||
Reference in new issue
Block a user