@@ -43,33 +43,11 @@ jobs:
4343 with :
4444 persist-credentials : false
4545
46- - name : Set up Nix
47- uses : nixbuild/nix-quick-install-action@2c9db80fb984ceb1bcaa77cdda3fdf8cfba92035 # v34
46+ - name : Set up Go
47+ uses : actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.0.0
4848 with :
49- github_access_token : ${{ secrets.GITHUB_TOKEN }}
50- nix_conf : |
51- access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
52- keep-env-derivations = true
53- keep-outputs = true
54-
55- - name : Restore Nix store
56- uses : nix-community/cache-nix-action/restore@7df957e333c1e5da7721f60227dbba6d06080569 # v7.0.2
57- with :
58- primary-key : ${{ runner.os }}-openmeter-nix-build-${{ github.ref_name }}-${{ hashFiles('flake.*') }}
59- restore-prefixes-first-match : |
60- ${{ runner.os }}-openmeter-nix-build-${{ github.ref_name }}-
61- ${{ runner.os }}-openmeter-nix-build-main-${{ hashFiles('flake.*') }}
62- ${{ runner.os }}-openmeter-nix-build-main-
63- ${{ runner.os }}-openmeter-nix-build-
64-
65- - name : Restore Go module cache
66- uses : actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
67- with :
68- path : .devenv/state/go
69- key : ${{ runner.os }}-openmeter-go-modules-${{ github.ref_name }}-${{ hashFiles('flake.*', 'go.*', '.github/workflows/*.yaml') }}
70- restore-keys : |
71- ${{ runner.os }}-openmeter-go-modules-${{ github.ref_name }}-
72- ${{ runner.os }}-openmeter-go-modules-main-
49+ go-version-file : go.mod
50+ cache : true
7351
7452 - name : Initialize CodeQL
7553 uses : github/codeql-action/init@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3
@@ -80,13 +58,15 @@ jobs:
8058
8159 - name : Build for CodeQL
8260 run : |
83- mkdir -p \
84- "$GITHUB_WORKSPACE/.tmp/go-work" \
85- "$GITHUB_WORKSPACE/.tmp/system"
86- env \
87- GOTMPDIR="$GITHUB_WORKSPACE/.tmp/go-work" \
88- TMPDIR="$GITHUB_WORKSPACE/.tmp/system" \
89- nix develop --impure .#ci -c make build
61+ make build-server GO_BUILD_FLAGS=
62+ make -j 6 \
63+ build-sink-worker \
64+ build-benthos-collector \
65+ build-balance-worker \
66+ build-billing-worker \
67+ build-notification-service \
68+ build-jobs \
69+ GO_BUILD_FLAGS=
9070
9171 - name : Perform CodeQL Analysis
9272 uses : github/codeql-action/analyze@e46ed2cbd01164d986452f91f178727624ae40d7 # v4.35.3
0 commit comments