kitgit

tirbofish/dropbear · commit

5f5f12f994797cb8e83af119266d8fe1530ce279

Merge branch 'main' of github.com:tirbofish/dropbear

Unverified

tk <4tkbytes@pm.me> · 2025-11-12 09:00

view full diff

diff --git a/.github/workflows/create_executable.yaml b/.github/workflows/create_executable.yaml
index 95c7b4e..3292b0d 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:
@@ -56,26 +56,24 @@ jobs:
         uses: dtolnay/rust-toolchain@stable
         with:
           targets: ${{ matrix.target }}
-      - name: build eucalyptus-core libs
-        run: cargo build --release --package eucalyptus-core --target ${{ matrix.target }}
-      - name: build eucalyptus-editor
-        run: cargo build --release --package eucalyptus-editor --target ${{ matrix.target }}
+      - name: build eucalyptus packages
+        run: cargo build --release --package eucalyptus-core --package eucalyptus-editor --package magna-carta --target ${{ matrix.target }}
       - name: prepare the artifact
         run: |
           mkdir -p dist/libs
           cp target/${{ matrix.target }}/release/eucalyptus-editor${{ matrix.ext }} dist/
+          cp target/${{ matrix.target }}/release/magna-carta${{ 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/