From ddba63f03396dec28f581c4254f403bac1577b4d Mon Sep 17 00:00:00 2001 From: MatthieuCoder Date: Tue, 3 Jan 2023 21:17:05 +0400 Subject: [PATCH] fix macos --- .github/workflows/build.yml | 5 +++-- exes/all/main.go | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 74522df..8af8c92 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,7 +40,9 @@ jobs: - uses: actions/setup-go@v3 with: go-version: '1.18.4' - + - run: | + brew uninstall openssl + brew untap local/openssl - name: Build run: | cargo build --release @@ -125,7 +127,6 @@ jobs: - name: All in one run: | cd exes/all - export CGO_LDFLAGS='-lcrypto' make build - name: Move artifacts diff --git a/exes/all/main.go b/exes/all/main.go index 293907b..3a8a9d8 100644 --- a/exes/all/main.go +++ b/exes/all/main.go @@ -1,7 +1,7 @@ package main /* -#cgo LDFLAGS: -L./build -lall -lz -ldl -lssl -lm +#cgo LDFLAGS: -L./build -lall -lcrypto -lz -ldl -lssl -lm #include "./build/all.h" */ import "C" -- 2.39.5