Increase workflow perf/debugability on non-main
This commit is contained in:
parent
25421aa7a6
commit
c7400a34fd
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
@ -38,8 +38,14 @@ jobs:
|
|||||||
|
|
||||||
for target in "${targets[@]}"; do
|
for target in "${targets[@]}"; do
|
||||||
mkdir -p artifacts/$target
|
mkdir -p artifacts/$target
|
||||||
echo "Building target ${target}..."
|
echo "Building target ${target}..."
|
||||||
zig build -Dtarget=${target} -Drelease-safe --prefix artifacts/${target}/
|
if [ "${GITHUB_REF##*/}" == "master" ]; then
|
||||||
|
echo "Building safe"
|
||||||
|
zig build -Dtarget=${target} -Drelease-safe --prefix artifacts/${target}/
|
||||||
|
else
|
||||||
|
echo "Building debug as action is not running on master"
|
||||||
|
zig build -Dtarget=${target} --prefix artifacts/${target}/
|
||||||
|
fi
|
||||||
sed -e '1,5d' < README.md > artifacts/${target}/README.md
|
sed -e '1,5d' < README.md > artifacts/${target}/README.md
|
||||||
cp LICENSE artifacts/${target}/
|
cp LICENSE artifacts/${target}/
|
||||||
cd artifacts/${target}/
|
cd artifacts/${target}/
|
||||||
|
Loading…
Reference in New Issue
Block a user