Skip to content

Commit

Permalink
Make: Hard-code GitHub CI OS versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Oct 12, 2024
1 parent 78937f9 commit c0c1dcb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ permissions:
jobs:
versioning:
name: Update Version
runs-on: ubuntu-latest
runs-on: ubuntu-24
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:

# Python
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5
uses: actions/setup-python@v5.2.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Build Python
Expand Down Expand Up @@ -184,7 +184,7 @@ jobs:

# Python
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5
uses: actions/setup-python@v5.2.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Build Python
Expand Down Expand Up @@ -281,7 +281,7 @@ jobs:
test_macos:
name: MacOS
runs-on: macos-latest
runs-on: macos-13

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -316,7 +316,7 @@ jobs:

# Python
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5
uses: actions/setup-python@v5.2.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Build Python
Expand Down Expand Up @@ -348,7 +348,7 @@ jobs:

test_windows:
name: Windows
runs-on: windows-latest
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
Expand Down Expand Up @@ -389,7 +389,7 @@ jobs:

# Python
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5
uses: actions/setup-python@v5.2.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Build Python
Expand All @@ -402,7 +402,7 @@ jobs:

test_alpine:
name: Alpine Linux
runs-on: ubuntu-latest
runs-on: ubuntu-24
container:
image: alpine:latest
options: --privileged # If needed for certain Docker operations
Expand Down Expand Up @@ -451,18 +451,18 @@ jobs:
]
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-24, macos-13, windows-2022]
python-version: ["36", "37", "38", "39", "310", "311", "312"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v5.2.0
with:
python-version: 3.x

# We only need QEMU for Linux builds
- name: Setup QEMU
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-24'
uses: docker/setup-qemu-action@v3
- name: Install cibuildwheel
run: python -m pip install cibuildwheel
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ permissions:
jobs:
versioning:
name: Update Version
runs-on: ubuntu-latest
runs-on: ubuntu-24
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:

rebase:
name: Rebase Dev. Branch
runs-on: ubuntu-latest
runs-on: ubuntu-24
if: github.ref == 'refs/heads/main'
needs: versioning
steps:
Expand Down Expand Up @@ -78,19 +78,19 @@ jobs:
needs: versioning
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-24, macos-13, windows-2022]
python-version: ["36", "37", "38", "39", "310", "311", "312"]
steps:
- uses: actions/checkout@v4
with:
ref: "main"

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v5.2.0
with:
python-version: 3.x
- name: Setup QEMU
if: matrix.os == 'ubuntu-latest' # We only need QEMU for Linux builds
if: matrix.os == 'ubuntu-24' # We only need QEMU for Linux builds
uses: docker/setup-qemu-action@v3
- name: Install cibuildwheel
run: python -m pip install cibuildwheel
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:
# publish_javascript:
# name: Publish JavaScript
# needs: versioning
# runs-on: ubuntu-latest
# runs-on: ubuntu-24
# steps:
# - uses: actions/checkout@v4
# with:
Expand Down Expand Up @@ -298,7 +298,7 @@ jobs:

create_macos_library:
name: Create Library for MacOS ${{ matrix.arch }}
runs-on: macos-latest
runs-on: macos-13
needs: versioning
strategy:
fail-fast: false
Expand Down

0 comments on commit c0c1dcb

Please sign in to comment.