From 6b4ecb12ac4a19dfa000690dbcaf5c685b9e153a Mon Sep 17 00:00:00 2001 From: Alex Batisse Date: Tue, 5 May 2026 21:03:49 +0200 Subject: [PATCH 1/2] refactor: Migrate craft-ls part to uv plugin --- snapcraft.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/snapcraft.yaml b/snapcraft.yaml index a437c8b..b223eb0 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -18,12 +18,11 @@ platforms: parts: craft-ls: - plugin: python + plugin: uv source: . build-snaps: - astral-uv override-build: | - uv export --format requirements-txt --no-dev -o requirements.txt craftctl set version="$(cat src/craft_ls/__init__.py | cut -d '"' -f2 | xargs)" craftctl default stage-packages: From a82280f788d1afef2ddefc192c53f9e1b59ac450 Mon Sep 17 00:00:00 2001 From: Alex Batisse Date: Wed, 6 May 2026 21:31:48 +0200 Subject: [PATCH 2/2] ci: Execute built artifacts in CI --- .github/workflows/ci.yaml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 05448bb..3d622ec 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -66,8 +66,19 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - - uses: snapcore/action-build@v1 - name: Build snap + + - name: Build snap + uses: snapcore/action-build@v1 + + - name: Execute snap + run: | + sudo snap install $(find . -type f -name '*.snap') --dangerous + snap run craft-ls --version + - uses: "DeterminateSystems/nix-installer-action@main" - - run: nix build - name: Build Flake + + - name: Build Flake + run: nix build + + - name: Execute flake + run: ./result/bin/craft-ls --version