From f665ea21d4e08d6512e71b6dbdee18cd16c04c67 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Wed, 27 Jul 2022 10:43:31 +0100 Subject: [PATCH] Add the Distribution packages workflow from libxmp --- .github/workflows/dist-package.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/dist-package.yaml diff --git a/.github/workflows/dist-package.yaml b/.github/workflows/dist-package.yaml new file mode 100644 index 0000000..e24e7a4 --- /dev/null +++ b/.github/workflows/dist-package.yaml @@ -0,0 +1,28 @@ +name: Distribution packages + +on: + - pull_request + - push + +jobs: + dist-package: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Install dependencies + run: sudo apt update && sudo apt install --no-install-recommends libxmp-dev libasound2-dev libpulse-dev libsndio-dev + - name: Create and run configure script + run: | + ./autogen.sh + ./configure + - name: Create distribution package + run: make dist DIST="xmp-$(git rev-parse --short HEAD)" + - name: Test distribution package + run: make distcheck DIST="xmp-$(git rev-parse --short HEAD)" + - name: Archive dist packages + uses: actions/upload-artifact@v2 + with: + name: dist-packages + path: | + xmp-*.tar.gz