Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deprecated actions and images in CI #1815

Merged
merged 7 commits into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 26 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
backend: [mkl, dnnl]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
backend: [openblas]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -137,11 +137,11 @@ jobs:
include:
- os: ubuntu-20.04
arch: aarch64
- os: macos-12
- os: macos-13
arch: arm64

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand All @@ -150,7 +150,7 @@ jobs:
name: Set up QEMU

- name: Build wheels
uses: pypa/cibuildwheel@v2.16.5
uses: pypa/cibuildwheel@v2.21.3
with:
package-dir: python
output-dir: python/wheelhouse
Expand All @@ -168,9 +168,9 @@ jobs:
CIBW_SKIP: pp* *-musllinux_*

- name: Upload Python wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: python-wheels
name: python-wheels-${{ runner.os }}-${{ matrix.arch }}
path: python/wheelhouse


Expand All @@ -185,21 +185,23 @@ jobs:

steps:
- name: Set up Python 3.8
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.8

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Prepare test environment
shell: bash
run: |
./python/tools/prepare_test_environment.sh

- name: Download Python wheels
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: python-wheels
pattern: python-wheels-${{ runner.os }}-*
merge-multiple: true
path: .

- name: Install wheel
if: startsWith(matrix.os, 'ubuntu')
Expand All @@ -222,10 +224,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python 3.8
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.8

Expand Down Expand Up @@ -257,9 +259,11 @@ jobs:

steps:
- name: Download Python wheels
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: python-wheels
pattern: python-wheels-*
merge-multiple: true
path: .

- name: Publish Python wheels to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand All @@ -272,7 +276,7 @@ jobs:
build-and-push-docker-images:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand All @@ -299,17 +303,19 @@ jobs:
needs: [check-python-style, build-python-wheels]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python 3.8
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.8

- name: Download CTranslate2 wheels
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: python-wheels
pattern: python-wheels-${{ runner.os }}-*
merge-multiple: true
path: .

- name: Install CTranslate2 wheel
run: |
Expand Down
Loading