kitgit

tirbofish/dropbear · diff

5049688 · Thribhu K

Update create_executable.yaml jarvis, run github actions

Unverified

diff --git a/.github/workflows/create_executable.yaml b/.github/workflows/create_executable.yaml
index 95c7b4e..ceb1225 100644
--- a/.github/workflows/create_executable.yaml
+++ b/.github/workflows/create_executable.yaml
@@ -7,7 +7,7 @@ on:
   workflow_dispatch:
 jobs:
   build:
-    if: contains(github.event.head_commit.message, 'jarvis, run github actions') || github.event_name == 'workflow_dispatch'
+    if: contains(github.event.head_commit.message, 'jarvis, run github actions') || github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request'
     name: Build for ${{ matrix.os_name }}
     runs-on: ${{ matrix.os }}
     strategy:
@@ -65,17 +65,16 @@ jobs:
           mkdir -p dist/libs
           cp target/${{ matrix.target }}/release/eucalyptus-editor${{ matrix.ext }} dist/
           if [ "${{ matrix.os }}" = "windows-latest" ]; then
-            cp target/release/eucalyptus_core.dll dist/ 2>/dev/null || true
-            cp target/release/eucalyptus_core.dll.lib dist/ 2>/dev/null || true
+            cp target/${{ matrix.target }}/release/eucalyptus_core.dll dist/ 2>/dev/null || true
+            cp target/${{ matrix.target }}/release/eucalyptus_core.dll.lib dist/ 2>/dev/null || true
           elif [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
-            cp target/release/libeucalyptus_core.so dist/ 2>/dev/null || true
+            cp target/${{ matrix.target }}/release/libeucalyptus_core.so dist/ 2>/dev/null || true
           elif [ "${{ matrix.os }}" = "macos-latest" ]; then
-            cp target/release/libeucalyptus_core.dylib dist/ 2>/dev/null || true
-            cp README.md dist/
+            cp target/${{ matrix.target }}/release/libeucalyptus_core.dylib dist/ 2>/dev/null || true
           fi
         shell: bash
       - name: upload
         uses: actions/upload-artifact@v4
         with:
           name: executables-${{ matrix.os_name }}
-          path: dist/
\ No newline at end of file
+          path: dist/