Skip to content

Commit

Permalink
ci: static link AppVeyor binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
JaCzekanski committed May 24, 2020
1 parent 7c49d43 commit f3bff62
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis/android/run-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ fi
mkdir -p "$HOME/.ccache"

docker run \
-e CI=$CI \
-v $(pwd):/home/build \
-v "$HOME/.ccache":/root/.ccache \
-e keystore_password="$keystore_password" \
Expand Down
4 changes: 2 additions & 2 deletions .travis/linux/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ccache -s
# Tests
./build/release_x64/avocado_test --use-colour yes

wget -nv https://gist.github.com/JaCzekanski/d7a6e06295729a3f81bd9bd488e9d37d/raw/d5bc41278fd198ef5e4afceb35e0587aca7f2f60/gte_valid_0xc0ffee_50.log
wget -ncv https://gist.github.com/JaCzekanski/d7a6e06295729a3f81bd9bd488e9d37d/raw/d5bc41278fd198ef5e4afceb35e0587aca7f2f60/gte_valid_0xc0ffee_50.log
./build/release_x64/avocado_autotest gte_valid_0xc0ffee_50.log

# Package
Expand All @@ -36,7 +36,7 @@ cp android/app/src/main/ic_launcher-web.png $ARTIFACT/avocado.png
# Remove .gitignore
find $ARTIFACT -type f -name .gitignore -exec rm {} \;

wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
wget -ncv https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
chmod +x ./linuxdeploy-x86_64.AppImage

APPIMAGE_EXTRACT_AND_RUN=1 ./linuxdeploy-x86_64.AppImage \
Expand Down
1 change: 1 addition & 0 deletions .travis/linux/run-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ CLANG_VERSION=${1:-6}
mkdir -p "$HOME/.ccache"

docker run \
-e CI=$CI \
-v $(pwd):/home/build \
-v "$HOME/.ccache":/root/.ccache \
avocadoemu/linux-clang$CLANG_VERSION \
Expand Down
12 changes: 9 additions & 3 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ filter {}
language "c++"
cppdialect "C++17"
defines { 'BUILD_ARCH="%{cfg.system}"' }
flags { "MultiProcessorCompile" }
exceptionhandling "On"
rtti "On"

Expand Down Expand Up @@ -129,14 +130,19 @@ filter "configurations:Debug"
filter "configurations:Release"
staticruntime "on"
defines { "NDEBUG" }
flags { "MultiProcessorCompile" }
optimize "Full"

filter {"configurations:Release"}
if os.getenv("CI") == true then
-- LTO on Linux fails with "error adding symbols: Archive has no index; run ranlib to add one"
filter {"configurations:Release", "not system:linux"}
if os.getenv("CI") ~= nil then
flags { "LinkTimeOptimization" }
end

filter {"configurations:Release", "system:linux"}
if os.getenv("CI") ~= nil then
linkoptions { "-static-libstdc++" }
end

include "premake/chdr.lua"
include "premake/flac.lua"
include "premake/glad.lua"
Expand Down

0 comments on commit f3bff62

Please sign in to comment.