@@ -168,56 +168,11 @@ jobs:
168168 name : fedora-39-latest
169169 path : pkg/fedora/out/x86_64
170170
171- build-f38 :
172- if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
173-
174- name : Build Fedora 38 package
175- runs-on : ubuntu-latest
176- needs : [lint, test]
177- container :
178- image : registry.fedoraproject.org/fedora:38
179- options : --security-opt seccomp=unconfined
180-
181- steps :
182- - name : Checkout code
183- uses : actions/checkout@v4
184-
185- - name : Install build dependencies
186- run : |
187- dnf distro-sync -y
188- dnf install -y rpmdevtools rpm-sign 'dnf-command(builddep)'
189- dnf builddep -y pkg/fedora/surface-dtx-daemon.spec
190-
191- - name : Build package
192- run : |
193- cd pkg/fedora
194- # Build the .rpm packages
195- ./makerpm
196-
197- - name : Sign packages
198- env :
199- GPG_KEY_ID : 56C464BAAC421453
200- GPG_KEY : ${{ secrets.LINUX_SURFACE_GPG_KEY }}
201- run : |
202- cd pkg/fedora/out/x86_64
203-
204- # import GPG key
205- echo "$GPG_KEY" | base64 -d | gpg --import --no-tty --batch --yes
206-
207- # sign package
208- rpm --resign *.rpm --define "_gpg_name $GPG_KEY_ID"
209-
210- - name : Upload artifacts
211- uses : actions/upload-artifact@v4
212- with :
213- name : fedora-38-latest
214- path : pkg/fedora/out/x86_64
215-
216171 release :
217172 if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
218173
219174 name : Publish release
220- needs : [build-bin, build-deb, build-f39, build-f38 ]
175+ needs : [build-bin, build-deb, build-f39]
221176 runs-on : ubuntu-latest
222177
223178 steps :
@@ -239,12 +194,6 @@ jobs:
239194 name : fedora-39-latest
240195 path : fedora-39-latest
241196
242- - name : Download Fedora 38 artifacts
243- uses : actions/download-artifact@v4
244- with :
245- name : fedora-38-latest
246- path : fedora-38-latest
247-
248197 - name : Upload assets
249198 uses : svenstaro/upload-release-action@v2
250199 with :
@@ -358,56 +307,3 @@ jobs:
358307 git add .
359308 git commit -m "Update Fedora 39 DTX daemon"
360309 git push --set-upstream origin "${update_branch}"
361-
362- repo-f38 :
363- name : Update Fedora 38 package repository
364- needs : [release]
365- runs-on : ubuntu-latest
366- container :
367- image : registry.fedoraproject.org/fedora:38
368- options : --security-opt seccomp=unconfined
369- steps :
370- - name : Install dependencies
371- run : |
372- dnf install -y git findutils
373-
374- - name : Download artifacts
375- uses : actions/download-artifact@v4
376- with :
377- name : fedora-38-latest
378- path : fedora-38-latest
379-
380- - name : Update repository
381- env :
382- SURFACEBOT_TOKEN : ${{ secrets.LINUX_SURFACE_BOT_TOKEN }}
383- BRANCH_STAGING : u/staging
384- GIT_REF : ${{ github.ref }}
385- run : |
386- repo="https://surfacebot:${SURFACEBOT_TOKEN}@github.com/linux-surface/repo.git"
387-
388- # clone package repository
389- git clone -b "${BRANCH_STAGING}" "${repo}" repo
390-
391- # copy packages
392- cp fedora-38-latest/* repo/fedora/f38
393- cd repo/fedora/f38
394-
395- # parse git tag from ref
396- GIT_TAG=$(echo $GIT_REF | sed 's|^refs/tags/||g')
397-
398- # convert packages into references
399- for pkg in $(find . -name '*.rpm'); do
400- echo "surface-dtx-daemon:$GIT_TAG/$(basename $pkg)" > $pkg.blob
401- rm $pkg
402- done
403-
404- # set git identity
405- git config --global user.email "[email protected] " 406- git config --global user.name "surfacebot"
407-
408- # commit and push
409- update_branch="${BRANCH_STAGING}-$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
410- git checkout -b "${update_branch}"
411- git add .
412- git commit -m "Update Fedora 38 DTX daemon"
413- git push --set-upstream origin "${update_branch}"
0 commit comments