Skip to content

Commit 632ab1e

Browse files
committed
.github/workflows: Remove support for Fedora 38
1 parent 19a2c39 commit 632ab1e

File tree

1 file changed

+1
-119
lines changed

1 file changed

+1
-119
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -196,68 +196,9 @@ jobs:
196196
name: fedora-39-latest
197197
path: pkg/fedora/release
198198

199-
200-
build-f38:
201-
name: Build Fedora 38 package
202-
runs-on: ubuntu-latest
203-
container:
204-
image: registry.fedoraproject.org/fedora:38
205-
options: --security-opt seccomp=unconfined
206-
steps:
207-
- name: Checkout code
208-
uses: actions/checkout@v3
209-
210-
- name: Install build dependencies
211-
run: |
212-
dnf distro-sync -y
213-
dnf install -y make rpmdevtools rpm-sign 'dnf-command(builddep)'
214-
dnf builddep -y pkg/fedora/libwacom-surface.spec
215-
216-
- name: Build package
217-
run: |
218-
cd pkg/fedora
219-
220-
# Build the .rpm packages
221-
./makerpm
222-
223-
- name: Sign packages
224-
env:
225-
GPG_KEY_ID: 56C464BAAC421453
226-
GPG_KEY: ${{ secrets.LINUX_SURFACE_GPG_KEY }}
227-
run: |
228-
cd pkg/fedora/out
229-
230-
# import GPG key
231-
echo "$GPG_KEY" | base64 -d | gpg --import --no-tty --batch --yes
232-
233-
# sign package
234-
cd noarch
235-
rpm --resign *.rpm --define "_gpg_name $GPG_KEY_ID"
236-
237-
cd ..
238-
239-
cd x86_64
240-
rpm --resign *.rpm --define "_gpg_name $GPG_KEY_ID"
241-
242-
- name: Prepare artifacts
243-
run: |
244-
cd pkg/fedora
245-
mkdir release
246-
247-
cp out/noarch/* release/
248-
cp out/x86_64/* release/
249-
250-
rm release/libwacom-surface-devel-*
251-
252-
- name: Upload artifacts
253-
uses: actions/upload-artifact@v3
254-
with:
255-
name: fedora-38-latest
256-
path: pkg/fedora/release
257-
258199
release:
259200
name: Publish release
260-
needs: [build-deb, build-f40, build-f39, build-f38]
201+
needs: [build-deb, build-f40, build-f39]
261202
runs-on: ubuntu-latest
262203
steps:
263204
- name: Download Debian artifacts
@@ -278,12 +219,6 @@ jobs:
278219
name: fedora-39-latest
279220
path: fedora-39-latest
280221

281-
- name: Download Fedora 38 artifacts
282-
uses: actions/download-artifact@v3
283-
with:
284-
name: fedora-38-latest
285-
path: fedora-38-latest
286-
287222
- name: Upload assets
288223
uses: svenstaro/upload-release-action@v2
289224
with:
@@ -450,56 +385,3 @@ jobs:
450385
git add .
451386
git commit -m "Update Fedora 39 libwacom"
452387
git push --set-upstream origin "${update_branch}"
453-
454-
repo-f38:
455-
name: Update Fedora 38 package repository
456-
needs: [release]
457-
runs-on: ubuntu-latest
458-
container:
459-
image: registry.fedoraproject.org/fedora:38
460-
options: --security-opt seccomp=unconfined
461-
steps:
462-
- name: Install dependencies
463-
run: |
464-
dnf install -y git findutils
465-
466-
- name: Download artifacts
467-
uses: actions/download-artifact@v3
468-
with:
469-
name: fedora-38-latest
470-
path: fedora-38-latest
471-
472-
- name: Update repository
473-
env:
474-
SURFACEBOT_TOKEN: ${{ secrets.LINUX_SURFACE_BOT_TOKEN }}
475-
BRANCH_STAGING: u/staging
476-
GIT_REF: ${{ github.ref }}
477-
run: |
478-
repo="https://surfacebot:${SURFACEBOT_TOKEN}@github.com/linux-surface/repo.git"
479-
480-
# clone package repository
481-
git clone -b "${BRANCH_STAGING}" "${repo}" repo
482-
483-
# copy packages
484-
cp fedora-38-latest/* repo/fedora/f38
485-
cd repo/fedora/f38
486-
487-
# parse git tag from ref
488-
GIT_TAG=$(echo $GIT_REF | sed 's|^refs/tags/||g')
489-
490-
# convert packages into references
491-
for pkg in $(find . -name '*.rpm'); do
492-
echo "libwacom-surface:$GIT_TAG/$(basename $pkg)" > $pkg.blob
493-
rm $pkg
494-
done
495-
496-
# set git identity
497-
git config --global user.email "[email protected]"
498-
git config --global user.name "surfacebot"
499-
500-
# commit and push
501-
update_branch="${BRANCH_STAGING}-$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
502-
git checkout -b "${update_branch}"
503-
git add .
504-
git commit -m "Update Fedora 38 libwacom"
505-
git push --set-upstream origin "${update_branch}"

0 commit comments

Comments
 (0)