Skip to content

Commit

Permalink
patch: Switch ARM runners from self-hosted (on Azure) to GitHub-hosted (
Browse files Browse the repository at this point in the history
#147)

Waiting on IS to deploy Azure self-hosted runners to `canonical` GitHub
org
  • Loading branch information
carlcsaposs-canonical authored Mar 1, 2024
1 parent 6e2b9f1 commit ade6e84
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 7 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build_charm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,17 @@ 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
sudo apt-get install python3-pip python3-venv -y
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' }}
run: sudo apt-get install libpq-dev -y
- name: Install CLI
run: pipx install git+https://github.com/canonical/data-platform-workflows@'${{ needs.get-workflow-version.outputs.version }}'#subdirectory=python/cli
- name: Parse charmcraft version inputs
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/build_rock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ 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
sudo apt-get install python3-pip python3-venv -y
python3 -m pip install pipx
python3 -m pipx ensurepath
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: Install CLI
run: pipx install git+https://github.com/canonical/data-platform-workflows@'${{ needs.get-workflow-version.outputs.version }}'#subdirectory=python/cli
- name: Parse rockcraft version inputs
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/build_snap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ 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
sudo apt-get install python3-pip python3-venv -y
python3 -m pip install pipx
python3 -m pipx ensurepath
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: Install CLI
run: pipx install git+https://github.com/canonical/data-platform-workflows@'${{ needs.get-workflow-version.outputs.version }}'#subdirectory=python/cli
- name: Parse snapcraft version inputs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,7 @@
logging.basicConfig(level=logging.INFO, stream=sys.stdout)
RUNNERS = {
craft.Architecture.X64: "ubuntu-latest",
craft.Architecture.ARM64: [
"self-hosted",
"data-platform",
"ubuntu",
"ARM64",
"4cpu16ram",
],
craft.Architecture.ARM64: "Ubuntu_ARM64_4C_16G_01",
}


Expand Down

0 comments on commit ade6e84

Please sign in to comment.