Skip to content

Commit fb15d78

Browse files
committed
chore(ci): swtich uv/yarn upgrade jobs to arm
These seem to have shorter queue, so spread the load there for faster execution of lock file updates. Also consolidate the CI with pre-commit shared setup.
1 parent 22dfb90 commit fb15d78

3 files changed

Lines changed: 6 additions & 39 deletions

File tree

.github/workflows/licenses-update.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ permissions:
2020

2121
jobs:
2222
licenses-update:
23-
runs-on: ubuntu-24.04
23+
runs-on: ubuntu-24.04-arm
2424

2525
steps:
2626
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -39,14 +39,7 @@ jobs:
3939
with:
4040
persist-credentials: false
4141
submodules: true
42-
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
43-
with:
44-
path: ~/.cache/pre-commit
45-
key: ${{ runner.os }}-pre-commit-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('.pre-commit-config.yaml') }}
46-
- name: Set up Python
47-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
48-
with:
49-
python-version: '3.14'
42+
- uses: ./.github/actions/pre-commit-setup
5043
- run: ./scripts/generate-license-data.py
5144

5245
- name: Commit or create pull request (pre-commit-ci-lite)

.github/workflows/uv-upgrade.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ permissions:
2828
jobs:
2929
uv-update:
3030
if: startsWith(github.repository, 'WeblateOrg/')
31-
runs-on: ubuntu-24.04
31+
runs-on: ubuntu-24.04-arm
3232
permissions:
3333
contents: write
3434

@@ -46,21 +46,7 @@ jobs:
4646
if: github.event_name == 'pull_request'
4747
with:
4848
persist-credentials: false
49-
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
50-
with:
51-
path: ~/.cache/pre-commit
52-
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
53-
- name: Set up Python
54-
id: setup_python
55-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
56-
with:
57-
python-version: '3.14'
58-
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
59-
with:
60-
save-cache: ${{ github.ref == 'refs/heads/main' }}
61-
cache-suffix: ${{ steps.setup_python.outputs.python-version }}
62-
63-
version: 0.11.11
49+
- uses: ./.github/actions/pre-commit-setup
6450
- name: Install apt dependencies
6551
run: sudo ./ci/apt-install
6652

.github/workflows/yarn-update.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
permissions:
3535
contents: write
3636
if: startsWith(github.repository, 'WeblateOrg/')
37-
runs-on: ubuntu-24.04
37+
runs-on: ubuntu-24.04-arm
3838

3939
steps:
4040
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -50,19 +50,7 @@ jobs:
5050
if: github.event_name == 'pull_request'
5151
with:
5252
persist-credentials: false
53-
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
54-
with:
55-
path: ~/.cache/pre-commit
56-
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
57-
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
58-
with:
59-
enable-cache: false
60-
61-
version: 0.11.11
62-
- name: Set up Python
63-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
64-
with:
65-
python-version: '3.14'
53+
- uses: ./.github/actions/pre-commit-setup
6654
- working-directory: ./client
6755
run: |
6856
yarn install --check-files

0 commit comments

Comments
 (0)