File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 15
15
runs-on : ubuntu-latest
16
16
17
17
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
+
18
39
- name : Set up CentOS 7 Docker
19
40
run : |
20
41
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
+
21
49
yum install -y epel-release
22
50
yum groupinstall -y 'Development Tools'
23
51
yum install -y gtk3-devel glib2-devel gettext-devel desktop-file-utils \
You can’t perform that action at this time.
0 commit comments