kitgit

tirbofish/dropbear · commit

9aa7858f3704d319040b3edec10f0869e9f35bcf

ci: NASM didn't exist during the actions

Unverified

tk <4tkbytes@pm.me> · 2025-09-01 22:35

view full diff

diff --git a/.github/workflows/create_executable.yaml b/.github/workflows/create_executable.yaml
index ed5c2c9..4b651a6 100644
--- a/.github/workflows/create_executable.yaml
+++ b/.github/workflows/create_executable.yaml
@@ -32,6 +32,18 @@ jobs:
         with:
           submodules: 'recursive'
 
+      - name: Install NASM (Windows)
+        if: matrix.os == 'windows-latest'
+        run: choco install nasm
+
+      - name: Install NASM (Linux)
+        if: matrix.os == 'ubuntu-latest'
+        run: sudo apt-get update && sudo apt-get install -y nasm
+
+      - name: Install NASM (macOS)
+        if: matrix.os == 'macos-latest'
+        run: brew install nasm
+
       - name: Install libudev-dev (Linux)
         if: matrix.os == 'ubuntu-latest'
         run: sudo apt-get update && sudo apt-get install -y libudev-dev
@@ -56,7 +68,14 @@ jobs:
         run: |
           mkdir dist
           cp target/${{ matrix.target }}/release/eucalyptus${{ matrix.ext }} dist/
-          if [ "${{ matrix.os }}" = "macos-latest" ]; then
+          
+          # Copy any library files from target/release
+          if [ "${{ matrix.os }}" = "windows-latest" ]; then
+            cp target/${{ matrix.target }}/release/*.dll dist/ 2>/dev/null || true
+          elif [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
+            cp target/${{ matrix.target }}/release/*.so* dist/ 2>/dev/null || true
+          elif [ "${{ matrix.os }}" = "macos-latest" ]; then
+            cp target/${{ matrix.target }}/release/*.dylib dist/ 2>/dev/null || true
             cp README.md dist/
           fi
         shell: bash
@@ -65,4 +84,4 @@ jobs:
         uses: actions/upload-artifact@v4
         with:
           name: executables-${{ matrix.os_name }}
-          path: dist/
+          path: dist/
\ No newline at end of file