]> git.puffer.fish Git - matthieu/nova.git/commitdiff
remove -lcrypto for macos
authorMatthieuCoder <matthieu@matthieu-dev.xyz>
Tue, 3 Jan 2023 16:53:12 +0000 (20:53 +0400)
committerMatthieuCoder <matthieu@matthieu-dev.xyz>
Tue, 3 Jan 2023 16:53:12 +0000 (20:53 +0400)
.github/workflows/build.yml
exes/all/main.go

index 849267d4e3094f00d75eccbace1fb443ff0cd5e8..74522df556f4303ed388e421e8a0597e2adb57fa 100644 (file)
@@ -55,12 +55,12 @@ jobs:
       - name: Move artifacts
         run: |
           mkdir -p artifacts
-          cp target/release/{cache,gateway,webhook,ratelimit}* ./artifacts
+          cp target/release/{cache,gateway,webhook,ratelimit} ./artifacts
           cp exes/all/build/all ./artifacts/nova
 
       - uses: actions/upload-artifact@v3
         with:
-          name: artifacts
+          name: macos
           path: artifacts/*
 
   build_windows:
@@ -92,12 +92,12 @@ jobs:
       - name: Move artifacts
         run: |
           mkdir -p artifacts
-          cp target/release/{cache,gateway,webhook,ratelimit}* ./artifacts
-          cp exes/all/build/all ./artifacts/nova
+          cp target/release/{cache,gateway,webhook,ratelimit}.exe ./artifacts
+          cp exes/all/build/all ./artifacts/nova.exe
 
       - uses: actions/upload-artifact@v3
         with:
-          name: artifacts
+          name: windows
           path: artifacts/*
 
   build_linux:
@@ -125,15 +125,16 @@ jobs:
       - name: All in one
         run: |
           cd exes/all
+          export CGO_LDFLAGS='-lcrypto'
           make build
       
       - name: Move artifacts
         run: |
           mkdir -p artifacts
-          cp target/release/{cache,gateway,webhook,ratelimit}* ./artifacts
+          cp target/release/{cache,gateway,webhook,ratelimit} ./artifacts
           cp exes/all/build/all ./artifacts/nova
 
       - uses: actions/upload-artifact@v3
         with:
-          name: artifacts
+          name: linux_glibc
           path: artifacts/*
index 3a8a9d8665dea2054e16c7af939a8a833c4c95f5..293907b0e5d3a24c60eb09ebd2a6a8ddfb54bfdc 100644 (file)
@@ -1,7 +1,7 @@
 package main
 
 /*
-#cgo LDFLAGS: -L./build -lall -lcrypto -lz -ldl -lssl -lm
+#cgo LDFLAGS: -L./build -lall -lz -ldl -lssl -lm
 #include "./build/all.h"
 */
 import "C"