Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,34 @@ jobs:
- name: Test
run: |
prove -lv t

build-artifact:
needs: run-tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: perl version
run: perl -v

- name: apt install
run: sudo apt-get install -y build-essential git libmodule-install-perl

- name: build
run: perl Makefile.PL && make dist

- name: Get short SHA
id: short_sha
run: echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Get Zonemaster-LDNS version
id: version
run: |
VERSION=$(grep "use version; our $VERSION" lib/Zonemaster/Engine.pm | sed -rn 's/.*declare\(\"(.*)\"\);/\1/p')
echo "version=$VERSION" >> $GITHUB_OUTPUT

- name: upload artifact
uses: actions/upload-artifact@v4
with:
name: Zonemaster-Engine-${{ steps.version.outputs.version }}-${{ steps.short_sha.outputs.short_sha }}
path: Zonemaster-Engine-${{ steps.version.outputs.version }}.tar.gz
Loading