From 7312cd5b05ed6f04b407d80a01bc3f652f3f5900 Mon Sep 17 00:00:00 2001
From: Dedy Martadinata Supriyadi <dedyms@hotmail.com>
Date: Mon, 1 Aug 2022 14:38:51 +0700
Subject: [PATCH] manual fetch

---
 .github/workflows/docker-build-static.yml | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/docker-build-static.yml b/.github/workflows/docker-build-static.yml
index c69d360..e937a5c 100644
--- a/.github/workflows/docker-build-static.yml
+++ b/.github/workflows/docker-build-static.yml
@@ -219,13 +219,18 @@ jobs:
           restore-keys: |
             lldap-bin-amd64-
       - name: install musl
-        run: apt update && apt install -y musl-tools
-      - name: fetch musl gcc and build
-        run: ./build-amd64.sh
-#      - name: add x86_64 target
-#        run: rustup target add x86_64-unknown-linux-musl
-#      - name: build x86_64 lldap
-#        run: cargo build --target=x86_64-unknown-linux-musl --release -p lldap -p migration-tool
+        run: apt update && apt install -y musl-tools tar wget
+      - name: fetch musl-gcc
+        run: |
+             wget -c https://musl.cc/x86_64-linux-musl-cross.tgz 
+             tar zxf ./x86_64-linux-musl-cross.tgz -C /opt
+             echo "/opt/x86_64-linux-musl-cross:/opt/x86_64-linux-musl-cross/bin" >> $GITHUB_PATH
+#      - name: fetch musl gcc and build
+#        run: ./build-amd64.sh
+      - name: add x86_64 target
+        run: rustup target add x86_64-unknown-linux-musl
+      - name: build x86_64 lldap
+        run: cargo build --target=x86_64-unknown-linux-musl --release -p lldap -p migration-tool
       - name: check path
         run: ls -al target/x86_64-unknown-linux-musl/release/
       - name: upload amd64 lldap artifacts