From dcc7cdd9c20f3d7c55481d409b234c6f8cc073e8 Mon Sep 17 00:00:00 2001 From: Hook25 Date: Thu, 31 Oct 2024 10:41:40 +0100 Subject: [PATCH] Copy paste example Actually try a series22 build Fix sintax No sudo? install snapd install snapd and update Start the snapd service Another action Another action 2 Another action 2 Another action 2 Matrix and correct path for snaps Core16 needs cgroup1 Set all values for all includes Set all values for all includes Update python core16 sad :( Update python core16 sad :( Update python core16 sad :( Update python core16 sad :( Update python core16 sad :( Remove new syntax Remove new syntax Remove new syntax Remove new syntax sadf --- .github/workflows/armhf_lxd.yaml | 37 ++++++++++++++++++++++++++++++++ tools/release/get_version.py | 31 +++++++++++++------------- 2 files changed, 52 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/armhf_lxd.yaml diff --git a/.github/workflows/armhf_lxd.yaml b/.github/workflows/armhf_lxd.yaml new file mode 100644 index 0000000000..6154383bb9 --- /dev/null +++ b/.github/workflows/armhf_lxd.yaml @@ -0,0 +1,37 @@ +on: [push, pull_request] + +jobs: + build_job: + strategy: + fail-fast: false + matrix: + include: + # series: "series24" + - series: "series22" + runner_os: "ubuntu-22.04" + - series: "series20" + runner_os: "ubuntu-22.04" + - series: "series18" + runner_os: "ubuntu-22.04" + - series: "series16" + runner_os: "ubuntu-20.04" + runs-on: ${{ matrix.runner_os }} + name: "Build: ${{ matrix.series }}" + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Prepare the repo + run: | + cd checkbox-core-snap/ + ./prepare.sh ${{ matrix.series }} + - uses: docker/setup-qemu-action@v1 + - uses: diddlesnaps/snapcraft-multiarch-action@v1 + with: + architecture: armhf + snapcraft-channel: "stable" + path: "checkbox-core-snap/${{matrix.series}}" + - uses: actions/upload-artifact@v4 + with: + path: "checkbox-core-snap/${{matrix.series}}/*.snap" + name: checkbox_runtime_${{matrix.series}}.snap diff --git a/tools/release/get_version.py b/tools/release/get_version.py index ea9683ae26..789e91ab6d 100755 --- a/tools/release/get_version.py +++ b/tools/release/get_version.py @@ -112,7 +112,7 @@ def get_last_stable_release(repo_path: str) -> str: ).strip() -def get_history_since(tag: str, repo_path: str) -> list[str]: +def get_history_since(tag: str, repo_path: str) -> "list[str]": """ Returns the list of commits messages since the input tag """ @@ -123,7 +123,7 @@ def get_history_since(tag: str, repo_path: str) -> list[str]: ).splitlines() -def get_needed_bump(history: list[str]) -> TraceabilityEnum: +def get_needed_bump(history: "list[str]") -> TraceabilityEnum: """ Get what version number should be bumped using traceability postfixes @@ -188,20 +188,19 @@ def bump_version( """ version_no_v = version.replace("v", "") major, minor, patch = (int(n) for n in version_no_v.split(".")) - match needed_bump: - case TraceabilityEnum.BREAKING: - major += 1 - minor = 0 - patch = 0 - case TraceabilityEnum.NEW: - minor += 1 - patch = 0 - case TraceabilityEnum.BUGFIX: - patch += 1 - case TraceabilityEnum.INFRA: - pass - case _: - raise ValueError(f"Unknown traceability marker {needed_bump}") + if needed_bump == TraceabilityEnum.BREAKING: + major += 1 + minor = 0 + patch = 0 + elif needed_bump == TraceabilityEnum.NEW: + minor += 1 + patch = 0 + elif needed_bump == TraceabilityEnum.BUGFIX: + patch += 1 + elif needed_bump == TraceabilityEnum.INFRA: + pass + else: + raise ValueError(f"Unknown traceability marker {needed_bump}") prefix = "" if output_format == OutputFormats.TAG: