-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: speedup snap release by building amd64 snapp locally (#153)
- Loading branch information
1 parent
85707ad
commit 043e646
Showing
3 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]" | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -19,9 +19,6 @@ passthrough: | |
grade: stable | ||
confinement: strict | ||
base: core22 | ||
architectures: | ||
- build-on: [amd64] | ||
- build-on: [arm64] | ||
|
||
apps: | ||
rclip: | ||
|
@@ -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: | ||
|