Skip to content

Commit ad81784

Browse files
committed
update github workflows with -trimpath on fastfinder build
1 parent 4ce10b8 commit ad81784

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/go_build_linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/checkout@v2
3030
- name: Building Fastfinder
3131
run: |
32-
go build -tags yara_static -a -ldflags '-s -w -extldflags "-static"' .
32+
go build -trimpath -tags yara_static -a -ldflags '-s -w -extldflags "-static"' .
3333
ls
3434
sudo chmod +x fastfinder
3535
sudo ./fastfinder -h

.github/workflows/go_build_windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ jobs:
4646
$Env:CGO_LDFLAGS="-LC:/msys64/mingw64/lib -lyara -lcrypto"
4747
$Env:PKG_CONFIG_PATH="C:/msys64/mingw64/lib/pkgconfig"
4848
cd $Env:GITHUB_WORKSPACE
49-
go build -tags yara_static -a -ldflags '-s -w -extldflags "-static"' .
49+
go build -trimpath -tags yara_static -a -ldflags '-s -w -extldflags "-static"' .
5050
ls
5151
.\fastfinder.exe -h

0 commit comments

Comments
 (0)