From f6e2a7d3d0c824294e5de6a061508c489f91cc7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sawicz?= Date: Wed, 14 Aug 2024 18:38:44 +0200 Subject: [PATCH] ci: run setup script on installed snaps --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4f7f2c32..6db4d46d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -79,7 +79,9 @@ jobs: working-directory: mir-ci/mir_ci run: | [ -n '${{ matrix.ppa }}' ] && sudo add-apt-repository --yes ppa:${{ matrix.ppa }} - [ -n '${{ matrix.channel }}' ] && sudo snap install $( echo ${{ matrix.server }} | tr _ - ) --channel ${{ matrix.channel }} + SNAP=$( echo ${{ matrix.server }} | tr _ - ) + [ -n '${{ matrix.channel }}' ] && sudo snap install ${SNAP} --channel ${{ matrix.channel }} + [ -x /snap/${SNAP}/current/bin/setup.sh ] && /snap/${SNAP}/current/bin/setup.sh sudo apt-get --yes install pkg-config libwayland-dev ffmpeg pip install -e .. [ '${{ matrix.mark }}' == 'self' ] && pip install pytest-cov