Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: speedup snap release by building amd64 snapp locally #153

Merged
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 "yurij@mikhalevi.ch"
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 <yurij@mikhalevi.ch>"]
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: yurij@mikhalevi.ch
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
Loading