ci: Remove Go module caching, add binary artifact upload, and reformat Makefile protoc command.

lemon-mint committed Nov 20, 2025 at 07:22 UTC 445591c50d8d6c57be3d0f99910bfb66bac5329d
2 files changed +13 -27
.github/workflows/ci.yml
+7 -21
@@ -22,16 +22,6 @@ jobs:
22 go-version: "stable"
23 check-latest: true
24
25 - - name: Cache Go modules
26 - uses: actions/cache@v3
27 - with:
28 - path: |
29 - ~/.cache/go-build
30 - ~/go/pkg/mod
31 - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
32 - restore-keys: |
33 - ${{ runner.os }}-go-
34 -
25 - name: Download dependencies
26 run: go mod download
27
@@ -66,16 +56,6 @@ jobs:
56 go-version: "stable"
57 check-latest: true
58
69 - - name: Cache Go modules
70 - uses: actions/cache@v3
71 - with:
72 - path: |
73 - ~/.cache/go-build
74 - ~/go/pkg/mod
75 - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
76 - restore-keys: |
77 - ${{ runner.os }}-go-
78 -
59 - name: Download dependencies
60 run: go mod download
61
@@ -92,9 +72,15 @@ jobs:
72 - name: Build all components
73 run: make build
74
75 + - name: Upload artifacts
76 + uses: actions/upload-artifact@v4
77 + with:
78 + name: portal-binaries
79 + path: bin/
80 +
81 - name: Build Docker image
82 uses: docker/build-push-action@v6
83 with:
84 context: .
85 push: false
100 - tags: portal:latest
\ No newline at end of file
86 + tags: portal:latest
Makefile
+6 -6
@@ -23,12 +23,12 @@ build: build-wasm build-frontend build-server build-tunnel
23
24 build-protoc:
25 protoc -I . \
26 - --go_out=. \
27 - --go_opt=paths=source_relative \
28 - --go-vtproto_out=. \
29 - --go-vtproto_opt=paths=source_relative \
30 - portal/core/proto/rdsec/rdsec.proto \
31 - portal/core/proto/rdverb/rdverb.proto
26 + --go_out=. \
27 + --go_opt=paths=source_relative \
28 + --go-vtproto_out=. \
29 + --go-vtproto_opt=paths=source_relative \
30 + portal/core/proto/rdsec/rdsec.proto \
31 + portal/core/proto/rdverb/rdverb.proto
32
33 # Build WASM artifacts with wasm-opt optimization and generate manifest
34 build-wasm: