File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 76
76
uses : docker/setup-buildx-action@v3
77
77
78
78
- name : Set up builder ccache
79
+ if : env.USE_CCACHE
79
80
uses : actions/cache@v4
80
81
with :
81
82
path : ${{ github.workspace }}/builder/.ccache
84
85
builder-ccache-${{ matrix.arch }}-
85
86
86
87
- name : Set up builder ccache in docker cache
87
- if : matrix.arch != 's390x'
88
+ if : env.USE_CCACHE && matrix.arch != 's390x'
88
89
uses : reproducible-containers/buildkit-cache-dance@v3.1.2
89
90
with :
90
91
cache-map : |
@@ -146,7 +147,7 @@ jobs:
146
147
echo "rhacs_eng_password: ${{ secrets.QUAY_RHACS_ENG_RW_PASSWORD }}"
147
148
echo "collector_git_ref: ${{ github.ref }}"
148
149
echo "collector_builder_tag: ${{ env.COLLECTOR_BUILDER_TAG }}"
149
- echo "use_ccache: ${USE_CCACHE}"
150
+ echo "use_ccache: ${{ env. USE_CCACHE } }"
150
151
} > ${{ github.workspace }}/ansible/secrets.yml
151
152
152
153
- name : Build images
Original file line number Diff line number Diff line change 47
47
submodules : true
48
48
49
49
- name : Set up ccache
50
+ if : env.USE_CCACHE
50
51
uses : hendrikmuhs/ccache-action@v1.2
51
52
with :
52
53
key : ${{ matrix.arch }}
73
74
collector_tag: ${{ inputs.collector-tag }}
74
75
debug_mode: ${{ github.event_name == 'pull_request' }}
75
76
driver_version: ${DRIVER_VERSION}
76
- use_ccache: ${USE_CCACHE}
77
+ use_ccache: ${( env. USE_CCACHE } }
77
78
EOF
78
79
79
80
- name : Build images
@@ -131,6 +132,7 @@ jobs:
131
132
job-tag : builder
132
133
133
134
- name : Set up ccache
135
+ if : env.USE_CCACHE
134
136
uses : actions/cache@v4
135
137
with :
136
138
path : ${{ github.workspace }}/.ccache
@@ -158,7 +160,7 @@ jobs:
158
160
collector_image: ${{ inputs.collector-image }}
159
161
collector_tag: ${{ inputs.collector-tag }}
160
162
debug_mode: ${{ github.event_name == 'pull_request' }}
161
- use_ccache: ${USE_CCACHE}
163
+ use_ccache: ${( env. USE_CCACHE } }
162
164
EOF
163
165
164
166
- name : Build ${{ matrix.arch }} image
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ mkdir -p "${LICENSE_DIR}"
9
9
NPROCS=" $( nproc) "
10
10
export NPROCS
11
11
12
+ # shellcheck source=SCRIPTDIR/versions.sh
13
+ source builder/install/versions.sh
14
+
12
15
if [ " ${USE_CCACHE} " = " true" ]; then
13
16
# build and install ccache
14
17
./builder/install/ccache.sh
@@ -26,8 +29,6 @@ if [ "${USE_CCACHE}" = "true" ]; then
26
29
ccache -z -d /root/.ccache
27
30
fi
28
31
29
- # shellcheck source=SCRIPTDIR/versions.sh
30
- source builder/install/versions.sh
31
32
for f in builder/install/[0-9][0-9]-* .sh; do
32
33
echo " === $f ==="
33
34
./" $f "
You can’t perform that action at this time.
0 commit comments