Skip to content

Commit 5ccbc34

Browse files
committed
Remove support for Fedora 37
1 parent ada5237 commit 5ccbc34

1 file changed

Lines changed: 1 addition & 118 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -197,67 +197,9 @@ jobs:
197197
name: fedora-38-latest
198198
path: pkg/fedora/release
199199

200-
build-f37:
201-
name: Build Fedora 37 package
202-
runs-on: ubuntu-latest
203-
container:
204-
image: registry.fedoraproject.org/fedora:37
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-37-latest
256-
path: pkg/fedora/release
257-
258200
release:
259201
name: Publish release
260-
needs: [build-deb, build-f39, build-f38, build-f37]
202+
needs: [build-deb, build-f39, build-f38]
261203
runs-on: ubuntu-latest
262204
steps:
263205
- name: Download Debian artifacts
@@ -278,12 +220,6 @@ jobs:
278220
name: fedora-38-latest
279221
path: fedora-38-latest
280222

281-
- name: Download Fedora 37 artifacts
282-
uses: actions/download-artifact@v3
283-
with:
284-
name: fedora-37-latest
285-
path: fedora-37-latest
286-
287223
- name: Upload assets
288224
uses: svenstaro/upload-release-action@v2
289225
with:
@@ -450,56 +386,3 @@ jobs:
450386
git add .
451387
git commit -m "Update Fedora 38 libwacom"
452388
git push --set-upstream origin "${update_branch}"
453-
454-
repo-f37:
455-
name: Update Fedora 37 package repository
456-
needs: [release]
457-
runs-on: ubuntu-latest
458-
container:
459-
image: registry.fedoraproject.org/fedora:37
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-37-latest
470-
path: fedora-37-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-37-latest/* repo/fedora/f37
485-
cd repo/fedora/f37
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 "surfacebot@users.noreply.github.com"
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 37 libwacom"
505-
git push --set-upstream origin "${update_branch}"

0 commit comments

Comments
 (0)