kitgit

tirbofish/dropbear · commit

7a65f938440705cb8d351933a498907058fd9dba

ci: realised that slank creates errors in action build. fixing that. jarvis, run github actions. NOTE: THIS IS NOT A COMPLETE BUILD, its just a ci test.

Unverified

Thribhu K <4tkbytes@pm.me> · 2026-02-01 06:03

view full diff

diff --git a/.github/workflows/create_executable.yaml b/.github/workflows/create_executable.yaml
index 2849e23..309428b 100644
--- a/.github/workflows/create_executable.yaml
+++ b/.github/workflows/create_executable.yaml
@@ -17,18 +17,50 @@ jobs:
             os_name: windows-x64
             target: x86_64-pc-windows-msvc
             ext: .exe
+            slang_platform: windows-x86_64
+            slang_ext: zip
           - os: ubuntu-latest
             os_name: linux-x64
             target: x86_64-unknown-linux-gnu
             ext: ""
+            slang_platform: linux-x86_64
+            slang_ext: tar.gz
           - os: macos-latest
             os_name: macos-arm64
             target: aarch64-apple-darwin
             ext: ""
+            slang_platform: macos-aarch64
+            slang_ext: zip
     steps:
       - uses: actions/checkout@v4
         with:
           submodules: 'recursive'
+
+      - name: Download and setup Slang
+        shell: bash
+        run: |
+          # Get latest release info
+          RELEASE_INFO=$(curl -s https://api.github.com/repos/shader-slang/slang/releases/latest)
+          VERSION=$(echo "$RELEASE_INFO" | grep -o '"tag_name": *"[^"]*"' | sed 's/"tag_name": *"\(.*\)"/\1/' | sed 's/^v//')
+          
+          # Download slang
+          SLANG_FILE="slang-${VERSION}-${{ matrix.slang_platform }}.${{ matrix.slang_ext }}"
+          SLANG_URL="https://github.com/shader-slang/slang/releases/download/v${VERSION}/${SLANG_FILE}"
+          
+          echo "Downloading Slang ${VERSION} from ${SLANG_URL}"
+          curl -L -o "${SLANG_FILE}" "${SLANG_URL}"
+          
+          # Extract
+          mkdir -p slang
+          if [ "${{ matrix.slang_ext }}" = "zip" ]; then
+            unzip -q "${SLANG_FILE}" -d slang
+          else
+            tar -xzf "${SLANG_FILE}" -C slang
+          fi
+          
+          # Set environment variable for subsequent steps

Large diffs are not rendered by default. Showing the first 50 of 90 lines. Show full diff