Build modes are specified with -Doptimize now (#961)

This commit is contained in:
nullptrdevs 2023-02-03 14:27:14 -08:00 committed by GitHub
parent 6297536d7b
commit 9e986de4d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ jobs:
echo "Building target ${target}..." echo "Building target ${target}..."
if [ "${GITHUB_REF##*/}" == "master" ]; then if [ "${GITHUB_REF##*/}" == "master" ]; then
echo "Building safe" echo "Building safe"
zig build -Dtarget=${target} -Drelease-safe --prefix artifacts/${target}/ zig build -Dtarget=${target} -Doptimize=ReleaseSafe --prefix artifacts/${target}/
else else
echo "Building debug as action is not running on master" echo "Building debug as action is not running on master"
zig build -Dtarget=${target} --prefix artifacts/${target}/ zig build -Dtarget=${target} --prefix artifacts/${target}/