66 SECRET :
77 required : true
88 workflow_dispatch :
9+ pull_request :
10+ paths :
11+ - backend/**
912
1013env :
1114 SECRET : ${{ secrets.SECRET }}
2629 - name : " Install packages"
2730 run : apk update && apk add --no-cache libpcap-dev musl-dev gcc go
2831
29- - uses : actions/checkout@v3
32+ - uses : actions/checkout@v4
33+ with :
34+ sparse-checkout : backend
3035
3136 - name : " Create output path"
3237 working-directory : " ${{env.BACKEND_DIR}}"
@@ -47,10 +52,12 @@ jobs:
4752 go build -ldflags '-linkmode external -extldflags "-static"' -o ../output/backend-linux-64
4853
4954 - name : " Upload build"
50- uses : actions/upload-artifact@v3
55+ uses : actions/upload-artifact@v4
5156 with :
5257 name : backend-linux
5358 path : " ${{env.BACKEND_DIR}}/output/*"
59+ retention-days : 3
60+ compression-level : 9
5461
5562 build-backend-windows :
5663 name : " Build backend for windows"
@@ -90,10 +97,12 @@ jobs:
9097 go build -o ..\output\backend-windows-64.exe
9198
9299 - name : " Upload build"
93- uses : actions/upload-artifact@v3
100+ uses : actions/upload-artifact@v4
94101 with :
95102 name : backend-windows
96103 path : " ${{env.BACKEND_DIR}}\\ output\\ *"
104+ retention-days : 3
105+ compression-level : 9
97106
98107 build-backend-mac :
99108 name : " Build backend for macOS"
@@ -142,7 +151,9 @@ jobs:
142151 go build -o ../output/backend-macos-m1-64
143152
144153 - name : " Upload build"
145- uses : actions/upload-artifact@v3
154+ uses : actions/upload-artifact@v4
146155 with :
147156 name : backend-macos
148157 path : " ${{env.BACKEND_DIR}}/output/*"
158+ retention-days : 3
159+ compression-level : 9
0 commit comments