Skip to content

Commit 15cdf17

Browse files
committed
fix: ci/cd was building with a needed flag disabled
Ref #1
1 parent 2177684 commit 15cdf17

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@ jobs:
1212
goreleaser:
1313
runs-on: ubuntu-latest
1414
steps:
15+
- name: GCC multilib
16+
run: |
17+
sudo apt-get install gcc-multilib g++-multilib
18+
- name: OSXCross for CGO Support
19+
run: |
20+
mkdir ../../osxcross
21+
git clone https://github.com/plentico/osxcross-target.git ../../osxcross/target
22+
- name: Downgrade libssl
23+
run: |
24+
echo 'deb http://security.ubuntu.com/ubuntu bionic-security main' | sudo tee -a /etc/apt/sources.list
25+
sudo apt update && apt-cache policy libssl1.0-dev
26+
sudo apt-get install libssl1.0-dev
1527
-
1628
name: Checkout
1729
uses: actions/checkout@v2

.goreleaser.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ before:
99
builds:
1010
- env:
1111
- CGO_ENABLED=1
12+
- CC=/home/runner/work/osxcross/target/bin/o64-clang
13+
- CXX=/home/runner/work/osxcross/target/bin/o64-clang++
1214
goos:
13-
- linux
14-
- windows
1515
- darwin
16+
ldflags:
17+
- -s
18+
1619
archives:
1720
- replacements:
1821
darwin: Darwin

0 commit comments

Comments
 (0)