Skip to content

Commit e57db2e

Browse files
author
Eric Wheeler
committed
github: fix build-appimage
1 parent 3e0ceaa commit e57db2e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/build-appimage.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,37 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v2
20+
21+
- name: Determine version and dist
22+
id: version
23+
run: |
24+
# Get the most recent tag, and check if the latest commit is tagged
25+
LATEST_TAG=$(git describe --tags --abbrev=0)
26+
TAGGED_COMMIT=$(git describe --tags --exact-match 2>/dev/null || echo "notag")
27+
28+
if [ "$TAGGED_COMMIT" = "notag" ]; then
29+
VERSION="${LATEST_TAG}+"
30+
DIST="-git"
31+
else
32+
VERSION=$LATEST_TAG
33+
DIST=""
34+
fi
35+
36+
echo "VERSION=$VERSION" >> $GITHUB_ENV
37+
echo "DIST=$DIST" >> $GITHUB_ENV
38+
1839
- name: Set up CentOS 7 Docker
1940
run: |
2041
docker run --rm -v $(pwd):/workspace -w /workspace centos:7 /bin/bash -c "
42+
# Update repository URLs to use the vault since CentOS 7 has reached EOL
43+
sed -i 's|^mirrorlist=|#mirrorlist=|g' /etc/yum.repos.d/CentOS-*.repo
44+
sed -i 's|^#baseurl=http://mirror.centos.org/centos/\$releasever|baseurl=http://vault.centos.org/7.9.2009|g' /etc/yum.repos.d/CentOS-*.repo
45+
46+
yum clean all
47+
yum makecache
48+
2149
yum install -y epel-release
2250
yum groupinstall -y 'Development Tools'
2351
yum install -y gtk3-devel glib2-devel gettext-devel desktop-file-utils \

0 commit comments

Comments
 (0)