From a89bb09f92c5933bac5a2c7ff06805e4876b45f2 Mon Sep 17 00:00:00 2001 From: Gareth Williams Date: Fri, 3 Jun 2022 14:21:47 +0100 Subject: [PATCH] Build static files? --- .github/workflows/go.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index aaba581..ecee977 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -27,4 +27,5 @@ jobs: goos: ${{ matrix.goos }} goarch: ${{ matrix.goarch }} binary_name: "CFExporter" - pre_command: "sed -i 's/${VERSION}/${{github.ref_name}}/g' main.go" \ No newline at end of file + pre_command: "sed -i 's/${VERSION}/${{github.ref_name}}/g' main.go" + build_flags: "-extldflags=-static" \ No newline at end of file