Преглед изворни кода

remove windows binaries from non-windows releases

Laytan Laats пре 2 месеци
родитељ
комит
ec75094303
2 измењених фајлова са 12 додато и 0 уклоњено
  1. 4 0
      .github/workflows/nightly.yml
  2. 8 0
      ci/remove_windows_binaries.sh

+ 4 - 0
.github/workflows/nightly.yml

@@ -69,6 +69,7 @@ jobs:
           cp -r core $FILE
           cp -r core $FILE
           cp -r vendor $FILE
           cp -r vendor $FILE
           cp -r examples $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
           # Creating a tarball so executable permissions are retained, see https://github.com/actions/upload-artifact/issues/38
           tar -czvf dist.tar.gz $FILE
           tar -czvf dist.tar.gz $FILE
       - name: Odin run
       - name: Odin run
@@ -108,6 +109,7 @@ jobs:
           cp -r core $FILE
           cp -r core $FILE
           cp -r vendor $FILE
           cp -r vendor $FILE
           cp -r examples $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
           # Creating a tarball so executable permissions are retained, see https://github.com/actions/upload-artifact/issues/38
           tar -czvf dist.tar.gz $FILE
           tar -czvf dist.tar.gz $FILE
       - name: Odin run
       - name: Odin run
@@ -145,6 +147,7 @@ jobs:
           cp -r core $FILE
           cp -r core $FILE
           cp -r vendor $FILE
           cp -r vendor $FILE
           cp -r examples $FILE
           cp -r examples $FILE
+          ./ci/remove_windows_binaries.sh $FILE
           dylibbundler -b -x $FILE/odin -d $FILE/libs -od -p @executable_path/libs
           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
           # Creating a tarball so executable permissions are retained, see https://github.com/actions/upload-artifact/issues/38
           tar -czvf dist.tar.gz $FILE
           tar -czvf dist.tar.gz $FILE
@@ -183,6 +186,7 @@ jobs:
           cp -r core $FILE
           cp -r core $FILE
           cp -r vendor $FILE
           cp -r vendor $FILE
           cp -r examples $FILE
           cp -r examples $FILE
+          ./ci/remove_windows_binaries.sh $FILE
           dylibbundler -b -x $FILE/odin -d $FILE/libs -od -p @executable_path/libs
           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
           # Creating a tarball so executable permissions are retained, see https://github.com/actions/upload-artifact/issues/38
           tar -czvf dist.tar.gz $FILE
           tar -czvf dist.tar.gz $FILE

+ 8 - 0
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