File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5252 - name : test
5353 run : prove -bl
5454
55+ build-artifact :
56+ needs : run-tests
57+ runs-on : ubuntu-22.04
58+ steps :
59+ - uses : actions/checkout@v4
60+
61+ - name : apt install
62+ run : sudo apt-get install -y git build-essential libmodule-install-perl libdevel-checklib-perl libextutils-pkgconfig-perl libmodule-install-xsutil-perl libssl-dev libidn2-dev
63+
64+ - name : build
65+ run : perl Makefile.PL && make all dist
66+
67+ - name : Get short SHA
68+ id : short_sha
69+ run : echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
70+
71+ - name : Get Zonemaster-LDNS version
72+ id : version
73+ run : |
74+ result=`grep 'our $VERSION' lib/Zonemaster/LDNS.pm`
75+ result+='printf $VERSION;'
76+ VERSION=`perl -e "$result"`
77+ echo "version=$VERSION" >> $GITHUB_OUTPUT
78+
79+ - name : upload artifact
80+ uses : actions/upload-artifact@v4
81+ with :
82+ name : Zonemaster-LDNS-${{ steps.version.outputs.version }}-${{ steps.short_sha.outputs.short_sha }}
83+ path : Zonemaster-LDNS-${{ steps.version.outputs.version }}.tar.gz
You can’t perform that action at this time.
0 commit comments