Skip to content

Commit

Permalink
Copy paste example
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Hook25 committed Nov 1, 2024
1 parent 0904b9e commit dcc7cdd
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 16 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/armhf_lxd.yaml
Original file line number Diff line number Diff line change
@@ -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
31 changes: 15 additions & 16 deletions tools/release/get_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit dcc7cdd

Please sign in to comment.