aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaytan Laats <laytanlaats@hotmail.com>2025-08-05 21:31:06 +0200
committerLaytan Laats <laytanlaats@hotmail.com>2025-08-05 21:31:06 +0200
commitec7509430369eb5d57a081507792dc03b1c05bab (patch)
treebfcadc85c4eed2d863189be8c5f71e40128bf021
parente0a08de455b665fffd02d37e5475975f28a93611 (diff)
remove windows binaries from non-windows releases
-rw-r--r--.github/workflows/nightly.yml4
-rwxr-xr-xci/remove_windows_binaries.sh8
2 files changed, 12 insertions, 0 deletions
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index 6826239e8..2c9dc30ae 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -69,6 +69,7 @@ jobs:
cp -r core $FILE
cp -r vendor $FILE
cp -r examples $FILE
+ ./ci/remove_windows_binaries.sh $FILE
# Creating a tarball so executable permissions are retained, see https://github.com/actions/upload-artifact/issues/38
tar -czvf dist.tar.gz $FILE
- name: Odin run
@@ -108,6 +109,7 @@ jobs:
cp -r core $FILE
cp -r vendor $FILE
cp -r examples $FILE
+ ./ci/remove_windows_binaries.sh $FILE
# Creating a tarball so executable permissions are retained, see https://github.com/actions/upload-artifact/issues/38
tar -czvf dist.tar.gz $FILE
- name: Odin run
@@ -145,6 +147,7 @@ jobs:
cp -r core $FILE
cp -r vendor $FILE
cp -r examples $FILE
+ ./ci/remove_windows_binaries.sh $FILE
dylibbundler -b -x $FILE/odin -d $FILE/libs -od -p @executable_path/libs
# Creating a tarball so executable permissions are retained, see https://github.com/actions/upload-artifact/issues/38
tar -czvf dist.tar.gz $FILE
@@ -183,6 +186,7 @@ jobs:
cp -r core $FILE
cp -r vendor $FILE
cp -r examples $FILE
+ ./ci/remove_windows_binaries.sh $FILE
dylibbundler -b -x $FILE/odin -d $FILE/libs -od -p @executable_path/libs
# Creating a tarball so executable permissions are retained, see https://github.com/actions/upload-artifact/issues/38
tar -czvf dist.tar.gz $FILE
diff --git a/ci/remove_windows_binaries.sh b/ci/remove_windows_binaries.sh
new file mode 100755
index 000000000..0722fc455
--- /dev/null
+++ b/ci/remove_windows_binaries.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env sh
+
+find "$1" -type f \(\
+ -iname "*.exe" \
+ -o -iname "*.dll" \
+ -o -iname "*.lib" \
+ -o -iname "*.pdb" \
+ \) -delete