9
9
REGISTRY_IMAGE : sourcegraph/scip-clang
10
10
11
11
jobs :
12
- build :
12
+ build-binaries :
13
13
strategy :
14
14
fail-fast : false
15
15
matrix :
16
16
include :
17
17
- os : ubuntu-22.04-32core-graph-team-amd64
18
18
platform : linux/amd64
19
- binary_name : scip-clang-x86_64-linux
19
+ binary-name : scip-clang-x86_64-linux
20
20
- os : ubuntu-22.04-32core-graph-team-arm64
21
21
platform : linux/arm64
22
- binary_name : scip-clang-arm64-linux
22
+ binary-name : scip-clang-arm64-linux
23
23
runs-on : ${{ matrix.os }}
24
24
steps :
25
25
- uses : actions/checkout@v4
26
26
27
27
- uses : bazel-contrib/setup-bazel@0.14.0
28
28
with :
29
29
bazelisk-cache : true
30
- disk-cache : ${{ github.workflow }}-${{ matrix.binary_name }}
30
+ disk-cache : ${{ github.workflow }}-${{ matrix.binary-name }}
31
31
repository-cache : true
32
32
33
33
- name : Build binary
@@ -37,21 +37,21 @@ jobs:
37
37
uses : actions/upload-artifact@v4
38
38
with :
39
39
path : bazel-bin/indexer/scip-clang
40
- name : ${{ matrix.binary_name }}
40
+ name : ${{ matrix.binary-name }}
41
41
if-no-files-found : error
42
42
43
43
build-docker :
44
- needs : [build]
44
+ needs : [build-binaries ]
45
45
strategy :
46
46
fail-fast : false
47
47
matrix :
48
48
include :
49
49
- os : ubuntu-22.04
50
50
platform : linux/amd64
51
- binary_name : scip-clang-x86_64-linux
51
+ binary-name : scip-clang-x86_64-linux
52
52
- os : ubuntu-22.04-arm
53
53
platform : linux/arm64
54
- binary_name : scip-clang-arm64-linux
54
+ binary-name : scip-clang-arm64-linux
55
55
runs-on : ${{ matrix.os }}
56
56
steps :
57
57
- uses : actions/checkout@v4
@@ -73,26 +73,19 @@ jobs:
73
73
username : ${{ secrets.DOCKER_USERNAME }}
74
74
password : ${{ secrets.DOCKER_PASSWORD }}
75
75
76
- - name : Login to GHCR
77
- uses : docker/login-action@v3
78
- with :
79
- registry : ghcr.io
80
- username : ${{ github.repository_owner }}
81
- password : ${{ secrets.GITHUB_TOKEN }}
82
-
83
76
- name : Set up Docker Buildx
84
77
uses : docker/setup-buildx-action@v3
85
78
86
79
- name : Download pre-built binary
87
80
uses : actions/download-artifact@v4
88
81
with :
89
- name : ${{ matrix.binary_name }}
82
+ name : ${{ matrix.binary-name }}
90
83
path : /tmp/binary
91
84
92
85
- run : cp /tmp/binary/scip-clang ./scip-clang && ls -l ./scip-clang
93
86
94
87
- name : Build and push by digest
95
- id : build
88
+ id : build-images
96
89
uses : docker/build-push-action@v6
97
90
with :
98
91
context : .
104
97
- name : Export digest
105
98
run : |
106
99
mkdir -p ${{ runner.temp }}/digests
107
- digest="${{ steps.build.outputs.digest }}"
100
+ digest="${{ steps.build-images .outputs.digest }}"
108
101
touch "${{ runner.temp }}/digests/${digest#sha256:}"
109
102
110
103
- name : Upload digest
@@ -115,7 +108,7 @@ jobs:
115
108
if-no-files-found : error
116
109
retention-days : 1
117
110
118
- merge_docker :
111
+ merge-docker :
119
112
runs-on : ubuntu-latest
120
113
needs : [build-docker]
121
114
steps :
0 commit comments