ci: ARC has no_new_privs (no sudo); GOSUMDB=off everywhere

This commit is contained in:
2026-05-05 21:44:22 -07:00
parent 6b5450579e
commit 7844e67ea6
2 changed files with 8 additions and 3 deletions
+7 -2
View File
@@ -21,8 +21,10 @@ jobs:
with: { repository: luxfi/indexer, ref: main, path: indexer }
- uses: actions/checkout@v4
with: { repository: luxfi/graph, ref: main, path: graph }
- name: Install build deps
run: sudo apt-get update -qq && sudo apt-get install -y --no-install-recommends gcc libsqlite3-dev
- name: Verify build deps
run: |
command -v gcc || { echo "gcc not installed on runner"; exit 1; }
gcc --version | head -1
- uses: actions/setup-go@v5
with: { go-version-file: explorer/go.mod }
- name: Refresh go.sum (proxy cache inconsistency)
@@ -32,9 +34,12 @@ jobs:
GOSUMDB: "off"
- name: Build
working-directory: explorer
env:
GOSUMDB: "off"
run: go build ./...
- name: Test
working-directory: explorer
env:
CGO_ENABLED: "1"
GOSUMDB: "off"
run: go test -race -count=1 ./...
+1 -1
View File
@@ -46,7 +46,7 @@ COPY --from=frontend /app/out ./static
# proxy state we actually see at build time and skip sum.golang.org.
RUN rm -f go.sum && GOSUMDB=off go mod download
RUN CGO_ENABLED=1 CGO_CFLAGS="-D_LARGEFILE64_SOURCE" \
RUN CGO_ENABLED=1 CGO_CFLAGS="-D_LARGEFILE64_SOURCE" GOSUMDB=off \
go build -trimpath \
-ldflags="-s -w -X main.version=${VERSION}" \
-o /out/explorer .