From f15877d544818fd4c6009433299acff6df993e8d Mon Sep 17 00:00:00 2001 From: MatthieuCoder Date: Tue, 3 Jan 2023 20:53:12 +0400 Subject: [PATCH] remove -lcrypto for macos --- .github/workflows/build.yml | 15 ++++++++------- exes/all/main.go | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) 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" -- 2.39.5