Skip to content

Commit

Permalink
GitHub Actions: update deprecated images
Browse files Browse the repository at this point in the history
  • Loading branch information
Anexen committed Oct 28, 2024
1 parent 0ebd536 commit 5a12fcc
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@ on:

env:
MATURIN_VERSION: 1.7.4
RUNNER_IMAGE_LINUX: ubuntu-latest
RUNNER_IMAGE_MACOS: macos-latest
RUNNER_IMAGE_WINDOWS: windows-latest

jobs:
test:
runs-on: ${{ env.RUNNER_IMAGE_LINUX }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
Expand All @@ -40,11 +37,11 @@ jobs:
matrix:
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
platform:
- os: ${{ env.RUNNER_IMAGE_LINUX }}
- os: ${{ env.RUNNER_IMAGE_MACOS }}
- os: ${{ env.RUNNER_IMAGE_MACOS }}
- os: ubuntu-latest
- os: macos-latest
- os: macos-latest
arch: aarch64
- os: ${{ env.RUNNER_IMAGE_WINDOWS }}
- os: windows-latest
runs-on: ${{ matrix.platform.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -53,33 +50,33 @@ jobs:
python-version: ${{ matrix.python }}
# allow-prereleases: ${{ matrix.python == "3.13" }}
- name: Build Wheels - Linux
if: matrix.platform.os == '${{ env.RUNNER_IMAGE_LINUX }}'
if: matrix.platform.os == 'ubuntu-latest'
uses: PyO3/maturin-action@v1
with:
maturin-version: ${{ env.MATURIN_VERSION }}
manylinux: auto
args: -i python${{ matrix.python }} --release --strip --sdist

- name: Check that the source distribution installed correctly
if: matrix.platform.os == '${{ env.RUNNER_IMAGE_LINUX }}'
if: matrix.platform.os == 'ubuntu-latest'
run: pip install target/wheels/pyxirr-*.tar.gz

- name: Build Wheels - MacOS [aarch64]
if: ${{ matrix.platform.os == '${{ env.RUNNER_IMAGE_MACOS }}' && matrix.platform.arch == 'aarch64' }}
if: ${{ matrix.platform.os == 'macos-latest' && matrix.platform.arch == 'aarch64' }}
uses: PyO3/maturin-action@v1
with:
maturin-version: ${{ env.MATURIN_VERSION }}
args: -i python --release --target aarch64-apple-darwin --strip

- name: Build Wheels - MacOS [x86_64]
if: ${{ matrix.platform.os == '${{ env.RUNNER_IMAGE_MACOS }}' && matrix.platform.arch != 'aarch64' }}
if: ${{ matrix.platform.os == 'macos-latest' && matrix.platform.arch != 'aarch64' }}
uses: PyO3/maturin-action@v1
with:
maturin-version: ${{ env.MATURIN_VERSION }}
args: -i python --release --target universal2-apple-darwin --strip

- name: Build Wheels - Windows
if: matrix.platform.os == '${{ env.RUNNER_IMAGE_WINDOWS }}'
if: matrix.platform.os == 'windows-latest'
uses: PyO3/maturin-action@v1
with:
maturin-version: ${{ env.MATURIN_VERSION }}
Expand All @@ -99,7 +96,7 @@ jobs:
matrix:
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
target: [aarch64, armv7, s390x, ppc64le, ppc64]
runs-on: ${{ env.RUNNER_IMAGE_LINUX }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -129,7 +126,7 @@ jobs:
emscripten: 3.1.46 # pyodide 0.25.*
- python: '3.11'
emscripten: 3.1.45 # pyodide 0.24.*
runs-on: ${{ env.RUNNER_IMAGE_LINUX }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mymindstorm/setup-emsdk@v14
Expand Down Expand Up @@ -157,7 +154,7 @@ jobs:
- i686-unknown-linux-musl
- aarch64-unknown-linux-musl
- armv7-unknown-linux-musleabihf
runs-on: ${{ env.RUNNER_IMAGE_LINUX }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Wheels - musl
Expand All @@ -180,7 +177,7 @@ jobs:
- linux-cross
- linux-musl
- wasm-emscripten
runs-on: ${{ env.RUNNER_IMAGE_LINUX }}
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit 5a12fcc

Please sign in to comment.