Skip to content

Commit

Permalink
chore: speedup snap release by building amd64 snapp locally (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
yurijmikhalevich authored Nov 30, 2024
1 parent 85707ad commit 043e646
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ jobs:
needs: [validate, parse_tag]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: canonical/setup-lxd@main
- name: Configure git for "snapcraft remote-build"
run: |
git config --global user.email "[email protected]"
Expand All @@ -93,9 +94,12 @@ jobs:
mkdir snap/local
cp -v dist/rclip-*.tar.gz snap/local
- run: sudo snap install snapcraft --classic
- run: |
- name: Build arm64 snap remotely
run: |
export SNAPCRAFT_REMOTE_BUILD_STRATEGY="force-fallback"
snapcraft remote-build --launchpad-accept-public-upload
snapcraft remote-build --launchpad-accept-public-upload --build-for arm64
- name: Build amd64 snap locally
run: snapcraft --use-lxd --build-for amd64
- name: Validate built snap
run: |
sudo snap install rclip_*_amd64.snap --dangerous
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "rclip"
version = "1.11.1a3"
version = "1.11.1a12"
description = "AI-Powered Command-Line Photo Search Tool"
authors = ["Yurij Mikhalevich <[email protected]>"]
license = "MIT"
Expand Down
7 changes: 2 additions & 5 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: |
For a detailed demonstration, watch the video: https://www.youtube.com/watch?v=tAJHXOkHidw.
You can use another image as a query by passing a file path or even an URL to the image file to **rclip** and combine multiple queries. Check out the project's README on GitHub for more usage examples: https://github.com/yurijmikhalevich/rclip#readme.
version: 1.11.1a3
version: 1.11.1a12
website: https://github.com/yurijmikhalevich/rclip
contact: [email protected]
passthrough:
Expand All @@ -19,9 +19,6 @@ passthrough:
grade: stable
confinement: strict
base: core22
architectures:
- build-on: [amd64]
- build-on: [arm64]

apps:
rclip:
Expand All @@ -31,7 +28,7 @@ apps:
parts:
rclip:
plugin: python
source: ./snap/local/rclip-1.11.1a3.tar.gz
source: ./snap/local/rclip-1.11.1a12.tar.gz
build-packages:
- python3-pip
build-environment:
Expand Down

0 comments on commit 043e646

Please sign in to comment.