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

Core24 builds action (infra) #1215

Merged
merged 3 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/core24-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ jobs:
strategy:
fail-fast: false
matrix:
type: [classic, uc]
releases: [24]
arch: [amd64, arm64]
tag: [X64, ARM64]
Expand All @@ -19,6 +18,8 @@ jobs:
- arch: arm64
tag: X64
runs-on:
group: "Canonical self-hosted runners"
labels:
- self-hosted
- linux
- jammy
Expand Down Expand Up @@ -54,7 +55,7 @@ jobs:
with: |
path: checkbox-core-snap/series${{ matrix.releases }}
snapcraft-channel: 7.x/stable
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
name: Upload logs on failure
if: failure()
with:
Expand All @@ -63,10 +64,10 @@ jobs:
/home/runner/.cache/snapcraft/log/
/home/runner/.local/state/snapcraft/log/
checkbox-core-snap/series${{ matrix.releases }}/checkbox*.txt
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
name: Upload the snap as artifact
with:
name: series${{ matrix.releases }}
name: checkbox${{ matrix.releases }}_${{ matrix.arch }}
path: checkbox-core-snap/series${{ matrix.releases }}/*.snap
- uses: Wandalen/wretry.action@a163f62ae554a8f3cbe27b23db15b60c0ae2e93c # v1.3.0
name: Upload the snap to the store
Expand Down
9 changes: 6 additions & 3 deletions checkbox-core-snap/series24/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 +222,16 @@ parts:
python3 manage.py build
python3 manage.py install --layout=relocatable --prefix=/providers/checkbox-provider-base --root="$CRAFT_PART_INSTALL"
override-prime: |
craftctl default
# needed because else this will trigger the store autoreviewer and be autorejected
# cleaning this bit should not cause any issue but if it does do not only remove this line
# contact also the store/update the package because else this will always trigger
# a manual review
[ -f usr/lib/x86_64-linux-gnu/libamdhip64.so.5.2.* ] && execstack --clear-execstack usr/lib/x86_64-linux-gnu/libamdhip64.so.5.2.* || true
for libamd_path in $(find .. -name "libamdhip64.so.5*"); do
echo "Clearing execstack on $libamd_path";
execstack --clear-execstack "$libamd_path" || exit 1
done;
craftctl default
stage-packages:
- execstack # needed to clear the execstack
- python3-opencv
- bc
- bonnie++
Expand Down Expand Up @@ -306,6 +308,7 @@ parts:
- on arm64:
- python3-rpi.gpio # only in focal
build-packages:
- execstack # needed to clear the execstack
- libasound2-dev
- libcap-dev
organize:
Expand Down
Loading