diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e385581a4..f3d26df28 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -251,7 +251,7 @@ jobs: overwrite: true build-snap: if: ${{ github.event.inputs.platform == 'all' || github.event.inputs.platform == 'snap' }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest needs: [ get-release ] steps: - uses: actions/checkout@v3 @@ -344,6 +344,31 @@ jobs: flutter build linux --release -v mkdir -p \$CRAFT_PART_INSTALL/bin/ cp -r build/linux/*/release/bundle/* \$CRAFT_PART_INSTALL/bin/ + command-chain: + - bin/gpu-2404-wrapper + gpu-2404: + after: [redrose] + source: https://github.com/canonical/gpu-snap.git + plugin: dump + override-prime: | + craftctl default + ${CRAFT_PART_SRC}/bin/gpu-2404-cleanup mesa-2404 + prime: + - bin/gpu-2404-wrapper + + plugs: + gpu-2404: + inteface: content + target: $SNAP/gpu-2404 + default-provider: mesa-2404 + + layout: + /usr/share/libdrm: + bind: $SNAP/gpu-2404/libdrm + /usr/share/drirc.d: + symlink: $SNAP/gpu-2404/drirc.d + /usr/share/X11/XErrorDB: + symlink: $SNAP/gpu-2404/X11/XErrorDB EOF cp linux/assets/com.gopeed.Gopeed.desktop snap/gui/gopeed.desktop