Fix Debian build in workflow/action
All checks were successful
Build for Releases / ensure-release-exists (push) Successful in 0s
Build for Releases / push-build-x86_64 (push) Successful in 6s
Build for Releases / push-build-aarch64 (push) Successful in 26s
Build for Releases / push-build-x86_64_debian (push) Successful in 30s
Build for Releases / push-build-aarch64_debian (push) Successful in 5m7s

This commit is contained in:
Stephen Seo 2024-10-03 23:01:00 +09:00
parent 9a8528abed
commit a9adcead12

View file

@ -162,6 +162,10 @@ jobs:
pushd break_interval_clone >&/dev/null pushd break_interval_clone >&/dev/null
git checkout "${GITHUB_REF_NAME}" git checkout "${GITHUB_REF_NAME}"
# Patch CMakeLists.txt as some flags aren't yet supported by Debian's GCC.
sed -i -e 's/-fstrict-flex-arrays=3//g' CMakeLists.txt
cmake -S . -B buildRelease -DCMAKE_BUILD_TYPE=Release cmake -S . -B buildRelease -DCMAKE_BUILD_TYPE=Release
make -C buildRelease make -C buildRelease
@ -218,6 +222,10 @@ jobs:
pushd break_interval_clone >&/dev/null pushd break_interval_clone >&/dev/null
git checkout "${GITHUB_REF_NAME}" git checkout "${GITHUB_REF_NAME}"
# Patch CMakeLists.txt as some flags aren't yet supported by Debian's GCC.
sed -i -e 's/-fstrict-flex-arrays=3//g' CMakeLists.txt
cmake -S . -B buildRelease -DCMAKE_BUILD_TYPE=Release cmake -S . -B buildRelease -DCMAKE_BUILD_TYPE=Release
make -C buildRelease make -C buildRelease