Commit fb5616a 1 parent e411f1d commit fb5616a Copy full SHA for fb5616a
File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
check :
10
- runs-on : ubuntu-20.04
10
+ runs-on : ubuntu-latest
11
11
outputs :
12
12
version : ${{ steps.latest.outputs.ver }}
13
13
need_build : ${{ steps.check.outputs.exists == 'false' }}
@@ -17,19 +17,21 @@ jobs:
17
17
run : |
18
18
VERSION=$(
19
19
curl -sL 'https://api.github.com/repos/gwsw/less/git/refs/tags' |
20
- jq -r '.[-1].ref' | sed 's|^refs/tags/v||' | grep -Eo '^[0-9]+$'
20
+ jq -r '.[-1].ref' |
21
+ sed 's|^refs/tags/v||' |
22
+ grep -Eo '^[0-9]+$'
21
23
)
22
- echo "::set-output name= ver:: ${VERSION}"
24
+ echo "ver= ${VERSION}" >> "$GITHUB_OUTPUT "
23
25
- name : Check if the tag already exists
24
- uses : mukunku/tag-exists-action@v1.0 .0
26
+ uses : mukunku/tag-exists-action@v1.5 .0
25
27
id : check
26
28
with :
27
29
tag : v${{ steps.latest.outputs.ver }}
28
30
env :
29
31
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30
32
31
33
prepare :
32
- runs-on : ubuntu-20.04
34
+ runs-on : ubuntu-latest
33
35
needs : [check]
34
36
if : needs.check.outputs.need_build == 'true'
35
37
outputs :
@@ -53,12 +55,12 @@ jobs:
53
55
prerelease : false
54
56
55
57
build :
56
- runs-on : ubuntu-20 .04
58
+ runs-on : ubuntu-22 .04
57
59
needs : [prepare]
58
60
steps :
59
61
- run : |
60
62
sudo apt-get install -y musl-tools make autoconf libncurses-dev
61
- wget 'https://github.com/gwsw/less/archive/v${{ needs.prepare.outputs.version }}.tar.gz' -O - | tar --strip-components=1 -zx
63
+ curl -L 'https://github.com/gwsw/less/archive/v${{ needs.prepare.outputs.version }}.tar.gz' | tar --strip-components=1 -zx
62
64
make -f Makefile.aut
63
65
CFLAGS=-Os LDFLAGS=-static ./configure
64
66
CC=musl-gcc make -j
You can’t perform that action at this time.
0 commit comments