kitgit

tirbofish/dropbear · commit

ec546ad82102da725b1992b84bab3fe18e8ae16f

ci: use mold instead of lld jarvis, run github actions

Unverified

Thribhu K <4tkbytes@pm.me> · 2026-01-11 09:57

view full diff

diff --git a/.cargo/.config.toml b/.cargo/.config.toml
deleted file mode 100644
index a001a2b..0000000
--- a/.cargo/.config.toml
+++ /dev/null
@@ -1,8 +0,0 @@
-[target.'cfg(target_os = "windows")']
-rustflags = ["-C", "target-feature=+crt-static", "-C", "prefer-dynamic", "-C", "link-arg=-fuse-ld=lld"]
-
-[target.'cfg(target_os = "macos")']
-rustflags = ["-C", "link-arg=-fuse-ld=/opt/homebrew/bin/zld"]
-
-[target.'cfg(target_os = "linux")']
-rustflags = ["-C", "link-arg=-fuse-ld=mold"]
\ No newline at end of file
diff --git a/.cargo/config.toml b/.cargo/config.toml
new file mode 100644
index 0000000..9a626e4
--- /dev/null
+++ b/.cargo/config.toml
@@ -0,0 +1,8 @@
+[target.x86_64-pc-windows-msvc]
+rustflags = ["-C", "target-feature=+crt-static", "-C", "prefer-dynamic", "-C", "link-arg=-fuse-ld=mold"]
+
+[target.'cfg(target_os = "macos")']
+rustflags = ["-C", "link-arg=-fuse-ld=mold"]
+
+[target.'cfg(target_os = "linux")']
+rustflags = ["-C", "link-arg=-fuse-ld=mold"]
\ No newline at end of file
diff --git a/.github/workflows/create_executable.yaml b/.github/workflows/create_executable.yaml
index 6641cdb..0ecba95 100644
--- a/.github/workflows/create_executable.yaml
+++ b/.github/workflows/create_executable.yaml
@@ -57,9 +57,15 @@ jobs:
       - name: install assimp (macOS)
         if: matrix.os == 'macos-latest'
         run: brew install assimp
-      - name: install zld linker (macOS)
+      - name: install mold linker (macOS)
         if: matrix.os == 'macos-latest'
-        run: brew install zld
+        run: brew install mold
+      - name: Setup Scoop (Windows)
+        if: matrix.os == 'windows-latest'
+        uses: MinoruSekine/setup-scoop@v4.0.2
+      - name: install mold linker (Windows)
+        if: matrix.os == 'windows-latest'
+        run: scoop install mold
       - name: install rust toolchain

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