summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfalkTX <falktx@falktx.com>2021-08-02 12:24:57 +0100
committerfalkTX <falktx@falktx.com>2021-08-02 12:24:57 +0100
commit8820482d5aabf6f6be90593d253176f25e7ab79b (patch)
treed5504bde0b56f54917f43c4ee0e6174510489a8c
parentb3dd666c66db87e7e8e0b71a24ba2f28355a87d6 (diff)
downloadjack2-8820482d5aabf6f6be90593d253176f25e7ab79b.tar.gz
Begin ubuntu-20.04 automated deb packaging
Signed-off-by: falkTX <falktx@falktx.com>
-rw-r--r--.github/workflows/build.yml41
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index b4afcfba..d88beb03 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -269,3 +269,44 @@ jobs:
with:
name: jack2-win64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
path: windows/inno/jack2-*.exe
+
+ # ubuntu-20.04
+ ubuntu-20.04:
+ runs-on: ubuntu-20.04
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ submodules: recursive
+ - name: Set up cache
+ uses: actions/cache@v2
+ with:
+ path: |
+ ~/debs
+ key: ubuntu-20.04
+ - name: Restore debian packages cache
+ run: |
+ if [ -d ~/debs ] && [ "$(ls ~/debs | wc -l)" -ne 0 ]; then \
+ sudo cp ~/debs/*.deb /var/cache/apt/archives/; \
+ fi
+ - name: Set up dependencies
+ run: |
+ sudo add-apt-repository -y ppa:ubuntustudio-ppa/backports
+ sudo sed -i "s/# deb-src/deb-src/" /etc/apt/sources.list /etc/apt/sources.list.d/*.list
+ sudo apt-get update -qq
+ sudo apt-get build-dep jackd2
+ sudo apt-get install devscripts
+ - name: Cache debian packages
+ run: |
+ mkdir -p ~/debs && \
+ sudo mv /var/cache/apt/archives/*.deb ~/debs/
+ - name: Set sha8
+ id: slug
+ run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
+ - name: Build jack2 packages
+ shell: bash
+ run: |
+ apt-get source jackd2
+ - uses: actions/upload-artifact@v2
+ with:
+ name: jack2-ubuntu-20.04-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
+ path: *.deb