Skip to content

Commit 66ee660

Browse files
committed
Add support of Linux/Windows arm64 runners
Starting Aug 07, 2025, Linux and Windows `arm64` standard hosted runners in public repositories are generally available[^1]. This patch makes these runners part of the test matrix, fixing necessary things along the way to make it happen. [^1]: https://github.blog/changelog/2025-08-07-arm64-hosted-runners-for-public-repositories-are-now-generally-available/
1 parent ec26547 commit 66ee660

File tree

2 files changed

+27
-18
lines changed

2 files changed

+27
-18
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,16 @@ jobs:
1818
strategy:
1919
matrix:
2020
os:
21-
- ubuntu-22.04
22-
- ubuntu-24.04
23-
- macos-13
24-
- macos-14
25-
- macos-15
26-
- windows-2022
27-
- windows-2025
21+
# - ubuntu-22.04
22+
# - ubuntu-24.04
23+
# - ubuntu-24.04-arm
24+
# - ubuntu-22.04-arm
25+
# - macos-13
26+
# - macos-14
27+
# - macos-15
28+
- windows-11-arm
29+
# - windows-2022
30+
# - windows-2025
2831
steps:
2932
- uses: actions/checkout@v4
3033

@@ -35,7 +38,7 @@ jobs:
3538
- name: Run setup-python
3639
uses: actions/setup-python@v5
3740
with:
38-
python-version: "3.10"
41+
python-version: "3.13"
3942

4043
- name: Run tests
4144
run: |
@@ -55,16 +58,18 @@ jobs:
5558
strategy:
5659
matrix:
5760
os:
58-
- ubuntu-22.04
59-
- ubuntu-24.04
60-
- macos-13
61-
- macos-14
62-
- macos-15
63-
- windows-2022
64-
- windows-2025
61+
# - ubuntu-22.04
62+
# - ubuntu-24.04
63+
- ubuntu-24.04-arm
64+
# - ubuntu-22.04-arm
65+
# - macos-13
66+
# - macos-14
67+
# - macos-15
68+
# - windows-2022
69+
# - windows-2025
6570
postgres-version:
66-
- "14"
67-
- "15"
71+
# - "14"
72+
# - "15"
6873
- "16"
6974
steps:
7075
- uses: actions/checkout@v4
@@ -83,7 +88,7 @@ jobs:
8388
- name: Run setup-python
8489
uses: actions/setup-python@v5
8590
with:
86-
python-version: "3.10"
91+
python-version: "3.13"
8792

8893
- name: Run tests
8994
run: |

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ runs:
5757
sudo apt-get update
5858
sudo apt-get -y install postgresql-${{ inputs.postgres-version }}
5959
60+
# The PostgreSQL 17 package for ARM64 automatically starts the
61+
# PostgreSQL service, occupying the default PostgreSQL port.
62+
sudo systemctl stop postgresql.service
63+
6064
PG_BINDIR=$("/usr/lib/postgresql/${{ inputs.postgres-version }}/bin/pg_config" --bindir)
6165
echo "$PG_BINDIR" >> $GITHUB_PATH
6266

0 commit comments

Comments
 (0)