File tree Expand file tree Collapse file tree 2 files changed +5
-17
lines changed Expand file tree Collapse file tree 2 files changed +5
-17
lines changed Original file line number Diff line number Diff line change 78
78
uses : actions/cache@v4
79
79
with :
80
80
path : ${{ github.workspace }}/builder/.ccache
81
- key : builder-ccache-${{ matrix.arch }}-${{ github.head_ref || github.ref_name }}-${{ github.sha }}
81
+ key : builder-ccache-${{ matrix.arch }}-${{ format('YYYY-MM-DDTHH:mm:ssZ', github.event.head_commit.timestamp) }}
82
82
restore-keys : |
83
- builder-ccache-${{ matrix.arch }}-${{ github.head_ref || github.ref_name }}-
84
- builder-ccache-${{ matrix.arch }}-master-
83
+ builder-ccache-${{ matrix.arch }}-
85
84
86
85
- name : Setup builder ccache in docker cache
87
86
if : |
@@ -173,16 +172,13 @@ jobs:
173
172
(contains(github.event.pull_request.labels.*.name, 'run-multiarch-builds') && matrix.arch == 's390x')
174
173
timeout-minutes : 480
175
174
run : |
176
- [ ! -d "${{ github.workspace }}/builder/.ccache" ] && rm -f "${{ github.workspace }}/builder/.ccache"
177
- ls -al "${{ github.workspace }}/builder/.ccache" || true
178
175
ansible-playbook \
179
176
-i ansible/ci \
180
177
-e build_hosts='job_id_${{ env.JOB_ID }}' \
181
178
-e arch='${{ matrix.arch }}' \
182
179
-e github_workspace='${{ github.workspace }}' \
183
180
-e @'${{ github.workspace }}/ansible/secrets.yml' \
184
181
ansible/ci-build-builder.yml
185
- ls -al "${{ github.workspace }}/builder/.ccache" || true
186
182
187
183
- name : Destroy VMs
188
184
if : always() && matrix.arch == 's390x'
Original file line number Diff line number Diff line change 48
48
- name : Set up ccache
49
49
uses : hendrikmuhs/ccache-action@v1.2
50
50
with :
51
- key : ccache-${{ matrix.arch }}-${{ github.head_ref || github.ref_name }}-${{ github.sha }}
52
- restore-keys : |
53
- ccache-${{ matrix.arch }}-${{ github.head_ref || github.ref_name }}-
54
- ccache-${{ matrix.arch }}-master-
51
+ key : ${{ matrix.arch }}
55
52
56
53
- name : Set up QEMU
57
54
uses : docker/setup-qemu-action@v3
92
89
-e @'${{ github.workspace }}/ansible/secrets.yml' \
93
90
ansible/ci-build-collector.yml
94
91
95
- - name : Stats for ccache after build
96
- run : |
97
- ccache -s "${{ github.workspace }}/.ccache"
98
-
99
92
build-collector-image-remote-vm :
100
93
name : Build Collector on a remote VM
101
94
runs-on : ubuntu-latest
@@ -139,10 +132,9 @@ jobs:
139
132
uses : actions/cache@v4
140
133
with :
141
134
path : ${{ github.workspace }}/.ccache
142
- key : ccache-${{ matrix.arch }}-${{ github.head_ref || github.ref_name }}-${{ github.sha }}
135
+ key : ccache-${{ matrix.arch }}-${{ format('YYYY-MM-DDTHH:mm:ssZ', github.event.head_commit.timestamp) }}
143
136
restore-keys : |
144
- ccache-${{ matrix.arch }}-${{ github.head_ref || github.ref_name }}-
145
- ccache-${{ matrix.arch }}-master-
137
+ ccache-${{ matrix.arch }}-
146
138
147
139
- name : Create Build VMs
148
140
run : |
You can’t perform that action at this time.
0 commit comments