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

patch(build_*.yaml): Switch ARM runner image #233

Merged
merged 1 commit into from
Aug 28, 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
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