diff options
| author | MatthieuCoder <matthieu@matthieu-dev.xyz> | 2023-01-03 20:53:12 +0400 |
|---|---|---|
| committer | MatthieuCoder <matthieu@matthieu-dev.xyz> | 2023-01-03 20:53:12 +0400 |
| commit | f15877d544818fd4c6009433299acff6df993e8d (patch) | |
| tree | f4c2848d3c6f7331434f33b0c4faaf9acf199f72 | |
| parent | 4053b78fb805be88fef84b3eb220a75f540014a2 (diff) | |
remove -lcrypto for macos
| -rw-r--r-- | .github/workflows/build.yml | 15 | ||||
| -rw-r--r-- | 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" |
