-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
331 additions
and
257 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 |
---|---|---|
|
@@ -16,3 +16,19 @@ with: | |
cache: true | ||
``` | ||
remember to add your charm's branch(es) to charmcraftcache by running `ccc add` or by [opening an issue](https://github.com/canonical/charmcraftcache-hub/issues/new?assignees=&labels=add-charm&projects=&template=add_charm_branch.yaml&title=Add+charm+branch). | ||
|
||
### Required charmcraft.yaml syntax | ||
Only [ST124 - Multi-base platforms in craft tools](https://docs.google.com/document/d/1QVHxZumruKVZ3yJ2C74qWhvs-ye5I9S6avMBDHs2YcQ/edit) "shorthand notation" syntax is supported | ||
|
||
#### Example | ||
```yaml | ||
platforms: | ||
[email protected]:amd64: | ||
[email protected]:arm64: | ||
[email protected]:amd64: | ||
[email protected]:arm64: | ||
``` | ||
|
||
Under the charmcraft.yaml `platforms` key, `build-on` and `build-for` syntax are not supported | ||
|
||
The `base` and `bases` charmcraft.yaml keys are not supported |
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 |
---|---|---|
|
@@ -8,4 +8,16 @@ jobs: | |
build: | ||
name: Build rock | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected] | ||
``` | ||
``` | ||
### Supported `platforms` syntax in rockcraft.yaml | ||
Only "shorthand notation" is supported | ||
|
||
Example rockcraft.yaml | ||
```yaml | ||
platforms: | ||
amd64: | ||
arm64: | ||
``` | ||
|
||
`build-on` and `build-for` are not supported |
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 |
---|---|---|
|
@@ -8,4 +8,35 @@ jobs: | |
build: | ||
name: Build snap | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected] | ||
``` | ||
``` | ||
### Supported `platforms` and `architectures` syntax in snapcraft.yaml | ||
See https://snapcraft.io/docs/architectures#how-to-create-a-snap-for-a-specific-architecture | ||
|
||
#### core24 | ||
Only `platforms` is supported. `architectures` is not supported | ||
|
||
Only "shorthand notation" is supported | ||
|
||
Example snapcraft.yaml | ||
```yaml | ||
platforms: | ||
amd64: | ||
arm64: | ||
``` | ||
|
||
`build-on` and `build-for` are not supported | ||
|
||
#### core22 | ||
Only `architectures` is supported. `platforms` is not supported | ||
|
||
`architectures` must be a list of dictionaries. Each dictionary in the list must contain a `build-on` key | ||
|
||
Example snapcraft.yaml | ||
```yaml | ||
architectures: | ||
- build-on: [amd64] | ||
build-for: [amd64] | ||
- build-on: [arm64] | ||
build-for: [arm64] | ||
``` |
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
Oops, something went wrong.