From: MatthieuCoder Date: Tue, 3 Jan 2023 16:53:12 +0000 (+0400) Subject: remove -lcrypto for macos X-Git-Tag: v0.1~12 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=f15877d544818fd4c6009433299acff6df993e8d;p=matthieu%2Fnova.git remove -lcrypto for macos --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 849267d..74522df 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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/* diff --git a/exes/all/main.go b/exes/all/main.go index 3a8a9d8..293907b 100644 --- a/exes/all/main.go +++ b/exes/all/main.go @@ -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"