Skip to content

Commit

Permalink
patch(build_*.yaml): Switch ARM runner image
Browse files Browse the repository at this point in the history
On September 3rd, the GitHub Ubuntu arm64 image will be removed.

Switch to runner with "Ubuntu 22.04 by Arm Limited" image
  • Loading branch information
carlcsaposs-canonical committed Aug 28, 2024
1 parent c0eccd0 commit e312336
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 29 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/build_charm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,8 @@ jobs:
runs-on: ${{ matrix.base.runner }}
timeout-minutes: 120
steps:
- name: (GitHub-hosted ARM runner) Install pipx
if: ${{ matrix.base.runner == 'Ubuntu_ARM64_4C_16G_01' }}
run: |
sudo apt-get update
# python3-pip recommends build-essential—a relatively large package we don't need
sudo apt-get install python3-pip python3-venv -y --no-install-recommends
python3 -m pip install pipx
python3 -m pipx ensurepath
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: (GitHub-hosted ARM runner) Install libpq-dev
if: ${{ matrix.base.runner == 'Ubuntu_ARM64_4C_16G_01' }}
if: ${{ matrix.base.runner == 'Ubuntu_ARM64_4C_16G_02' }}
# Needed for `charmcraftcache` to resolve dependencies (for postgresql charms with psycopg2)
run: sudo apt-get install libpq-dev -y
- name: Get workflow version
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/build_rock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,6 @@ jobs:
runs-on: ${{ matrix.base.runner }}
timeout-minutes: 15
steps:
- name: (GitHub-hosted ARM runner) Install pipx
if: ${{ matrix.base.runner == 'Ubuntu_ARM64_4C_16G_01' }}
run: |
sudo apt-get update
# python3-pip recommends build-essential—a relatively large package we don't need
sudo apt-get install python3-pip python3-venv -y --no-install-recommends
python3 -m pip install pipx
python3 -m pipx ensurepath
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: Get workflow version
id: workflow-version
uses: canonical/get-workflow-version-action@v1
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/build_snap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,6 @@ jobs:
runs-on: ${{ matrix.base.runner }}
timeout-minutes: 30
steps:
- name: (GitHub-hosted ARM runner) Install pipx
if: ${{ matrix.base.runner == 'Ubuntu_ARM64_4C_16G_01' }}
run: |
sudo apt-get update
# python3-pip recommends build-essential—a relatively large package we don't need
sudo apt-get install python3-pip python3-venv -y --no-install-recommends
python3 -m pip install pipx
python3 -m pipx ensurepath
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: Get workflow version
id: workflow-version
uses: canonical/get-workflow-version-action@v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
logging.basicConfig(level=logging.INFO, stream=sys.stdout)
RUNNERS = {
craft.Architecture.X64: "ubuntu-latest",
craft.Architecture.ARM64: "Ubuntu_ARM64_4C_16G_01",
craft.Architecture.ARM64: "Ubuntu_ARM64_4C_16G_02",
}


Expand Down

0 comments on commit e312336

Please sign in to comment.