-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also add a spread test that ensures we can fetch foreign architecture packages, and their dependencies, correctly.
- Loading branch information
Showing
5 changed files
with
100 additions
and
2 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
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
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: test-archs | ||
version: '1.0' | ||
summary: test package repos with different architectures | ||
description: test package repos with different architectures | ||
grade: stable | ||
confinement: strict | ||
base: core22 | ||
architectures: | ||
- build-on: amd64 | ||
|
||
package-repositories: | ||
# The repo that contains libpython3.11-minimal:armhf | ||
- type: apt | ||
formats: [deb] | ||
architectures: [armhf] | ||
components: [main] | ||
suites: [jammy] | ||
key-id: F23C5A6CF475977595C89F51BA6932366A755776 | ||
url: https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu | ||
# Also add the armhf arch for the "ports" repo, to fetch python's deps | ||
- type: apt | ||
architectures: [ armhf ] | ||
components: [ main ] | ||
suites: [ jammy, jammy-security, jammy-updates ] | ||
key-id: F6ECB3762474EDA9D21B7022871920D1991BC93C | ||
url: http://ports.ubuntu.com/ubuntu-ports | ||
|
||
|
||
parts: | ||
mypart: | ||
plugin: nil | ||
build-packages: | ||
- file | ||
stage-packages: | ||
- libpython3.11-minimal:armhf | ||
override-build: | | ||
file ${CRAFT_PART_INSTALL}/usr/lib/arm-linux-gnueabihf/libssl.so.3 | grep "ARM" | ||
craftctl default |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: test-archs | ||
version: '1.0' | ||
summary: test package repos with different architectures | ||
description: test package repos with different architectures | ||
grade: stable | ||
confinement: strict | ||
base: core22 | ||
architectures: | ||
- build-on: amd64 | ||
|
||
package-repositories: | ||
# The repo that contains libpython3.11-minimal:i386 | ||
- type: apt | ||
formats: [deb] | ||
architectures: [i386] | ||
components: [main] | ||
suites: [jammy] | ||
key-id: F23C5A6CF475977595C89F51BA6932366A755776 | ||
url: https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu | ||
# Also add the i386 arch for the official archives, to fetch python's deps | ||
- type: apt | ||
architectures: [i386] | ||
key-id: F6ECB3762474EDA9D21B7022871920D1991BC93C | ||
key-server: keyserver.ubuntu.com | ||
formats: [deb] | ||
components: [main] | ||
suites: [jammy] | ||
url: https://archive.ubuntu.com/ubuntu | ||
|
||
parts: | ||
mypart: | ||
plugin: nil | ||
build-packages: | ||
- file | ||
stage-packages: | ||
- libpython3.11-minimal:i386 | ||
override-build: | | ||
file ${CRAFT_PART_INSTALL}/usr/lib/i386-linux-gnu/libssl.so.3 | grep "ELF 32-bit" | ||
craftctl default |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
summary: Test using package-repositories with different architectures on core22 | ||
|
||
environment: | ||
SNAP_ARCH/i386: i386 | ||
SNAP_ARCH/armhf: armhf | ||
SNAPCRAFT_BUILD_ENVIRONMENT: "" | ||
|
||
restore: | | ||
snapcraft clean | ||
execute: | | ||
# The task works by copying one of the arch-specific yaml files as | ||
# "snapcraft.yaml", and then building it. | ||
rm -rf snap/ | ||
mkdir snap | ||
cp "$SNAP_ARCH".yaml snap/snapcraft.yaml | ||
# The part's build script does the checking. | ||
snapcraft build --verbose --use-lxd |