Skip to content

Commit 7fae01a

Browse files
Add artifact build to the CI
1 parent de4dc68 commit 7fae01a

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,32 @@ jobs:
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

0 commit comments

Comments
 (0)