|
29 | 29 | # for cross-builds |
30 | 30 | runs-on: [self-hosted, qcom-u2404, amd64] |
31 | 31 | # alternative for native builds, but overkill to do both |
32 | | - #runs-on: [self-hosted, arm64, debbuilder] |
| 32 | + #runs-on: [self-hosted, qcom-u2404, arm64] |
33 | 33 | container: |
34 | 34 | image: debian:trixie |
35 | 35 | volumes: |
@@ -62,34 +62,30 @@ jobs: |
62 | 62 | debhelper-compat kmod python3 rsync coreutils |
63 | 63 | scripts/build-linux-deb.sh kernel-configs/systemd-boot.config |
64 | 64 |
|
65 | | - - name: Upload results to fileserver |
66 | | - env: |
67 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 65 | + - name: Stage artifacts for upload |
68 | 66 | run: | |
69 | 67 | set -ux |
70 | 68 | # dcmd from devscripts will be used to parse .changes file |
71 | 69 | apt -y install --no-install-recommends devscripts |
72 | | - # python3-requests is used by publish_aritfacts.py |
73 | | - apt -y install python3-requests |
74 | | - # copy to fileserver builds and downloads directories |
| 70 | + # stage artifacts in a directory |
| 71 | + mkdir -v artifacts |
| 72 | + cp -av `dcmd *.changes` artifacts |
| 73 | +
|
| 74 | + - name: Upload results to fileserver space for downloads |
| 75 | + run: | |
| 76 | + set -ux |
75 | 77 | export BUILD_DIR="/fileserver-downloads/${BUILD_ID}" |
76 | 78 | mkdir -vp "${BUILD_DIR}" |
77 | | - cp -av `dcmd *.changes` "${BUILD_DIR}" |
78 | | -
|
| 79 | + cp -av artifacts/* "${BUILD_DIR}" |
79 | 80 | # create or update linux-deb-latest symlink |
80 | 81 | mkdir -vp /fileserver-downloads/qcom-deb-images |
81 | | - ( |
82 | | - cd /fileserver-downloads/qcom-deb-images |
83 | | - # remove what used to be a directory and create/update symlink to |
84 | | - # point to latest build |
85 | | - rm -rvf linux-latest |
86 | | - rm -rvf linux-deb-latest |
87 | | - ln -svf "../${BUILD_ID}" linux-deb-latest |
88 | | - ) |
| 82 | + ln -svf "../${BUILD_ID}" /fileserver-downloads/qcom-deb-images/linux-deb-latest |
89 | 83 | # perhaps help NFS sync |
90 | 84 | sync |
91 | | - # instruct fileserver to publish this directory |
92 | | - export URL="${FILESERVER_URL}/${BUILD_ID}/" |
93 | | - .github/workflows/publish_artifacts.py |
94 | | - echo Image available at: ${URL} |
| 85 | +
|
| 86 | + - name: Upload private artifacts |
| 87 | + uses: qualcomm-linux/upload-private-artifact-action@v1 |
| 88 | + id: upload_artifacts |
| 89 | + with: |
| 90 | + path: artifacts |
95 | 91 |
|
0 commit comments