1- name: Build debos recipe
1+ name: Build debos recipe in AWS
22
33on:
44 # run on pull requests to the main branch
@@ -23,21 +23,20 @@ defaults:
2323 run:
2424 working-directory: debos-recipes
2525
26- env:
27- FILESERVER_URL: https://quic-yocto-fileserver-1029608027416.us-central1.run.app
28-
2926# cancel in progress builds for this workflow triggered by the same ref
3027concurrency:
3128 group: ${{ github.workflow }}-${{ github.ref }}
3229 cancel-in-progress: true
3330
3431jobs:
3532 build-debos:
36- runs-on: [self-hosted, arm64, debbuilder]
33+ runs-on:
34+ - codebuild-QualcommLinux-Arm64-${{ github.run_id }}-${{ github.run_attempt }}
35+ - buildspec-override:true # This tells our self-hosted runner to upload artifacts
3736 container:
38- image: debian:trixie
37+ image: public.ecr.aws/docker/library/ debian:trixie
3938 volumes:
40- - /srv /gh-runners/quic-yocto/builds:/fileserver-builds
39+ - /efs/qli/metaqcom /gh-runners/quic-yocto/builds:/fileserver-builds
4140 options: --privileged
4241 steps:
4342 - uses: actions/checkout@v4
7473 # build flashable files
7574 debos qualcomm-linux-debian-flash.yaml
7675
77- - name: Upload artifacts to fileserver
76+ - name: Stage image for publishing
7877 run: |
7978 set -x
8079 # curl will be used to talk to fileserver; should be installed by
@@ -86,13 +85,11 @@ jobs:
8685 # create a directory for the current run
8786 dir="/fileserver-builds/${id}"
8887 mkdir -vp "${dir}"
89- # copy output files
88+
89+ # Files placed under ${dir} will be published internally
9090 cp -av rootfs.tar.gz "${dir}"
9191 cp -av dtbs.tar.gz "${dir}"
9292 cp -av disk-ufs.img.gz "${dir}"
9393 cp -av disk-sdcard.img.gz "${dir}"
9494 tar -cvf "${dir}"/flash.tar.gz disk-ufs.img1 disk-ufs.img2 flash_*
95- # instruct fileserver to publish this directory
96- url="${FILESERVER_URL}/${id}/"
97- curl -X POST -H 'Accept: text/event-stream' "${url}"
9895
0 commit comments