We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 400911a commit d940a63Copy full SHA for d940a63
.github/workflows/ci.yml
@@ -61,14 +61,13 @@ jobs:
61
else
62
echo "BIN=ris-${{ matrix.platform }}-${{ matrix.arch }}" >> $GITHUB_ENV
63
fi
64
+ if [ ${{ github.event_name }} = 'release' ]; then
65
+ echo "RELEASE=1" >> $GITHUB_ENV
66
+ fi
67
68
- name: Build
69
run: make
70
- - name: Strip
- if: ${{ github.event_name == 'release' }}
- run: strip ${{ env.BIN }}
71
-
72
- name: Upload artifacts
73
uses: actions/upload-artifact@v4
74
with:
Makefile
@@ -8,6 +8,10 @@ BIN ?= ris
8
9
RISFLAGS ?= -w -X main.Version="$(VERSION)"
10
11
+ifeq ($(RELEASE),1)
12
+RISFLAGS += -s
13
+endif
14
+
15
$(BIN): ris.go
16
go build -ldflags "$(RISFLAGS)" -o $@
17
0 commit comments