Skip to content

Commit ed12924

Browse files
committed
build: adjust platforms for release and CI
1 parent d2a8101 commit ed12924

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/_test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ jobs:
1010
build-test:
1111
strategy:
1212
matrix:
13-
python-version: [3.11, 3.13]
14-
platform: [ubuntu-latest, macos-latest]
15-
runs-on: ${{ matrix.platform }}
13+
python-version: [3.11]
14+
runner: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, macos-13, windows-latest]
15+
runs-on: ${{ matrix.runner }}
1616
steps:
1717
- uses: actions/checkout@v4
1818

1919
- run: rustup toolchain install stable --profile minimal
2020
- name: Rust Cache
2121
uses: Swatinem/rust-cache@v2
2222
with:
23-
key: ${{ runner.os }}-rust-${{ matrix.python-version }}
23+
key: rust-${{ matrix.runner }}-${{ matrix.python-version }}
2424
- name: Rust build
2525
run: cargo build --verbose
2626
- name: Rust tests
@@ -34,9 +34,9 @@ jobs:
3434
- uses: actions/cache@v4
3535
with:
3636
path: .venv
37-
key: ${{ runner.os }}-pyenv-${{ steps.setup_python.outputs.python-version }}-${{ hashFiles('pyproject.toml') }}
37+
key: pyenv-${{ matrix.runner }}-${{ steps.setup_python.outputs.python-version }}-${{ hashFiles('pyproject.toml') }}
3838
restore-keys: |
39-
${{ runner.os }}-pyenv-${{ steps.setup_python.outputs.python-version }}-
39+
pyenv-${{ matrix.runner }}-${{ steps.setup_python.outputs.python-version }}-
4040
- name: Setup venv
4141
run: |
4242
python -m venv .venv

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ jobs:
3030
strategy:
3131
matrix:
3232
platform:
33-
- { os: linux, runner: ubuntu-24.04, target: x86_64, container: "ghcr.io/rust-cross/manylinux_2_28-cross:x86_64" }
34-
- { os: linux, runner: ubuntu-24.04, target: aarch64, container: "ghcr.io/rust-cross/manylinux_2_28-cross:aarch64" }
35-
- { os: windows, runner: windows-latest, target: x64 }
33+
- { os: linux, runner: ubuntu-latest, target: x86_64, container: "ghcr.io/rust-cross/manylinux_2_28-cross:x86_64" }
34+
- { os: linux, runner: ubuntu-24.04-arm, target: aarch64, container: "ghcr.io/rust-cross/manylinux_2_28-cross:aarch64" }
35+
- { os: macos, runner: macos-latest, target: aarch64 }
3636
- { os: macos, runner: macos-13, target: x86_64 }
37-
- { os: macos, runner: macos-14, target: aarch64 }
37+
- { os: windows, runner: windows-latest, target: x64 }
3838
steps:
3939
- uses: actions/checkout@v4
4040
- uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)