Skip to content

Commit 6276db9

Browse files
Add artefact build to the CI
1 parent f337796 commit 6276db9

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,36 @@ jobs:
110110
- name: Test
111111
run: |
112112
prove -lv t
113+
114+
build-artifact:
115+
needs: run-tests
116+
runs-on: ubuntu-22.04
117+
steps:
118+
- uses: actions/checkout@v4
119+
120+
- name: perl version
121+
run: perl -v
122+
123+
- name: apt install
124+
run: sudo apt-get install -y build-essential git libmodule-install-perl
125+
126+
- name: build
127+
run: perl Makefile.PL && make dist
128+
129+
- name: Get short SHA
130+
id: short_sha
131+
run: echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
132+
133+
- name: Get Zonemaster-CLI version
134+
id: version
135+
run: |
136+
result=`grep "use version; our $VERSION" lib/Zonemaster/CLI.pm`
137+
result+='printf $VERSION;'
138+
VERSION=`perl -e "$result"`
139+
echo "version=$VERSION" >> $GITHUB_OUTPUT
140+
141+
- name: upload artifact
142+
uses: actions/upload-artifact@v4
143+
with:
144+
name: Zonemaster-CLI-${{ steps.version.outputs.version }}-${{ steps.short_sha.outputs.short_sha }}
145+
path: Zonemaster-CLI-${{ steps.version.outputs.version }}.tar.gz

0 commit comments

Comments
 (0)