Skip to content

Commit 2b2d1ff

Browse files
author
Sam
committed
Temporary copy Github CI workflow from @ader1990 to allow image build
1 parent 79fb927 commit 2b2d1ff

File tree

1 file changed

+9
-107
lines changed

1 file changed

+9
-107
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
description: |
88
Space-separated vendor formats to build.
99
required: true
10-
default: qemu_uefi pxe
10+
default: qemu_uefi
1111
custom_sdk_version:
1212
type: string
1313
required: false
@@ -21,7 +21,7 @@ on:
2121
description: |
2222
Space-separated vendor formats to build.
2323
required: true
24-
default: qemu_uefi pxe
24+
default: qemu_uefi
2525
custom_sdk_version:
2626
type: string
2727
required: false
@@ -40,9 +40,9 @@ jobs:
4040
- build
4141
- amd64
4242
strategy:
43-
fail-fast: false
43+
fail-fast: true
4444
matrix:
45-
arch: ["amd64", "arm64"]
45+
arch: ["arm64"]
4646
defaults:
4747
run:
4848
working-directory: scripts
@@ -92,7 +92,7 @@ jobs:
9292
arch="${{ matrix.arch }}"
9393
echo "arch=${arch}" >> $GITHUB_ENV
9494
95-
IMAGE_FORMATS="qemu_uefi pxe"
95+
IMAGE_FORMATS="qemu_uefi"
9696
[ -z "${{ inputs.image_formats }}" ] || IMAGE_FORMATS="${{ inputs.image_formats }}"
9797
echo "IMAGE_FORMATS=${IMAGE_FORMATS}" >> $GITHUB_ENV
9898
@@ -138,31 +138,6 @@ jobs:
138138
-C "${sdk_image}" \
139139
./build_packages --board="${arch}-usr"
140140
141-
# Create binpkgs tarball for archiving as artifact later
142-
./run_sdk_container -n "${container_name}" \
143-
tar -C "/build/${arch}-usr/var/lib/portage/pkgs/" \
144-
-cvf binpkgs.tar .
145-
146-
- name: Extract build logs
147-
if: always() && !cancelled()
148-
shell: bash
149-
run: |
150-
set -euo pipefail
151-
set -x
152-
# Copy logs
153-
./run_sdk_container -n "${container_name}" \
154-
tar -cJf ebuild_logs.tar.xz /build/${arch}-usr/var/log/portage \
155-
/build/${arch}-usr/var/tmp/portage
156-
157-
- name: Upload build logs
158-
if: always() && !cancelled()
159-
uses: actions/upload-artifact@v4
160-
with:
161-
retention-days: 7
162-
name: ${{ matrix.arch }}-build-logs
163-
path: |
164-
scripts/ebuild_logs.tar.xz
165-
166141
- name: Build image
167142
shell: bash
168143
run: |
@@ -181,7 +156,7 @@ jobs:
181156
./run_sdk_container -n "${container_name}" \
182157
./build_image --board="${arch}-usr" --group="${channel}" \
183158
--output_root="${CI_CONTAINER_ARTIFACT_ROOT}" \
184-
prodtar container sysext
159+
--image_compression_formats=none
185160
186161
- name: Build VM image(s)
187162
shell: bash
@@ -239,88 +214,15 @@ jobs:
239214
mv * ../../images/
240215
)
241216
242-
- name: Generate reports against last release
243-
run: .github/workflows/image_changes.sh ${{ matrix.arch }} release
244-
245-
- name: Generate reports against last nightly
246-
run: .github/workflows/image_changes.sh ${{ matrix.arch }} nightly
247-
248-
- name: Upload binpkgs
249-
uses: actions/upload-artifact@v4
250-
with:
251-
retention-days: 7
252-
name: ${{ matrix.arch }}-binpkgs
253-
path: |
254-
scripts/binpkgs.tar
255-
256-
- name: Upload update image (used with kola tests later)
257-
uses: actions/upload-artifact@v4
258-
with:
259-
retention-days: 7
260-
name: ${{ matrix.arch }}-test-update
261-
path: |
262-
scripts/artifacts/images/flatcar_test_update.gz
263-
264217
- name: Upload generic image
265218
uses: actions/upload-artifact@v4
266219
with:
267220
retention-days: 7
268221
name: ${{ matrix.arch }}-generic-image
269222
path: |
270-
scripts/artifacts/images/flatcar_production_image.bin
271-
scripts/artifacts/images/flatcar_production_image.grub
272-
scripts/artifacts/images/flatcar_production_image.shim
273-
scripts/artifacts/images/flatcar_production_image.vmlinuz
274-
scripts/artifacts/images/flatcar_production_image*.txt
275-
scripts/artifacts/images/flatcar_production_image*.json
276-
scripts/artifacts/images/flatcar_production_image_pcr_policy.zip
277-
scripts/artifacts/images/flatcar_production_*_efi_*.qcow2
278-
scripts/artifacts/images/flatcar_production_qemu.sh
279-
280-
- name: Upload developer container
281-
uses: actions/upload-artifact@v4
282-
with:
283-
retention-days: 7
284-
name: ${{ matrix.arch }}-devcontainer
285-
path: |
286-
scripts/artifacts/images/flatcar_developer_container*
287-
288-
- name: Upload reports
289-
uses: actions/upload-artifact@v4
290-
with:
291-
retention-days: 7
292-
name: ${{ matrix.arch }}-image-changes-reports
293-
path: |
294-
scripts/image-changes-reports*.txt
295-
296-
# Clean up what we uploaded already so the "vendor images" wildcard
297-
# works when uploading artifacts in the next step.
298-
- name: Remove update, generic and devcontainer images
299-
shell: bash
300-
run: |
301-
set -euo pipefail
302-
set -x
303-
rm -f artifacts/images/flatcar_test_update.gz \
304-
artifacts/images/flatcar_production_image* \
305-
artifacts/images/flatcar_developer_container* \
306-
artifacts/images/flatcar_production_update*
307-
308-
- name: Upload vendor images
309-
uses: actions/upload-artifact@v4
310-
with:
311-
retention-days: 7
312-
name: ${{ matrix.arch }}-vm-images
313-
path: |
314-
scripts/artifacts/images/*.img
315223
scripts/artifacts/images/*.bin
316-
scripts/artifacts/images/flatcar_production_*_efi_*.qcow2
224+
scripts/artifacts/images/*.img
317225
scripts/artifacts/images/*.txt
318226
scripts/artifacts/images/flatcar-*.raw
319-
scripts/artifacts/images/flatcar_production_*.sh
320-
scripts/artifacts/images/flatcar_production_pxe_image.cpio.gz
321-
scripts/artifacts/images/flatcar_production_pxe.vmlinuz
322-
323-
test:
324-
needs: packages
325-
name: "Run kola tests"
326-
uses: ./.github/workflows/run-kola-tests.yaml
227+
scripts/artifacts/images/flatcar_production_*_efi_*.qcow2
228+
scripts/artifacts/images/flatcar_production_qemu.sh

0 commit comments

Comments
 (0)