From 32def1058c590acc327262cd37a3f1c5ad2a9a9d Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Fri, 22 Sep 2023 10:13:05 +1000 Subject: [PATCH] venv for debian builds --- .github/workflows/debian-publish.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/debian-publish.yml b/.github/workflows/debian-publish.yml index 62eb01e..cc19858 100644 --- a/.github/workflows/debian-publish.yml +++ b/.github/workflows/debian-publish.yml @@ -34,21 +34,29 @@ jobs: - name: Install system dependencies run: | apt-get update - apt-get install -y build-essential apt-utils python3-pip python3-venv python3-pillow ruby ruby-dev rubygems git zlib1g-dev + apt-get install -y build-essential apt-utils libconfig-file-perl python3-pip python3-venv python3-pillow ruby ruby-dev rubygems git zlib1g-dev apt-get install -y dpkg-sig || true apt-get install -y debdelta || true - export HOME="/tmp" # To allow for writable pip - python3 -m pip install virtualenv-tools3 wheel gem install --no-document fpm + python3 -m venv .venv + source .venv/bin/activate + python3 -m pip install virtualenv-tools3 wheel + deactivate # Build Debian package - name: Build debian package - run: ./build_deb_package.sh + run: | + source .venv/bin/activate + ./build_deb_package.sh + deactivate - name: Build debian package repository env: QMK_GPG_PRIVATE_KEY: ${{ secrets.QMK_GPG_PRIVATE_KEY }} - run: ./build_deb_repo.sh + run: | + source .venv/bin/activate + ./build_deb_repo.sh + deactivate - name: Upload Debian Repo uses: jakejarvis/s3-sync-action@master