mirror of
https://github.com/luxfi/explorer.git
synced 2026-09-24 00:25:12 +00:00
ci: ARC has no_new_privs (no sudo); GOSUMDB=off everywhere
This commit is contained in:
@@ -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
@@ -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 .
|
||||
|
||||
Reference in New Issue
Block a user