Skip to content
Draft
Show file tree
Hide file tree
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
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
target:
- id: 'linux-amd64'
os: 'ubuntu-latest'
os: 'ubuntu-22.04'
target-name: 'x86_64-unknown-linux-gnu'
rust-toolchain: 'stable'
llvm_url: 'https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.0/clang+llvm-13.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz'
Expand Down Expand Up @@ -44,13 +44,13 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v5.0.0

- name: Install dependencies
if: matrix.target.id == 'linux-amd64'
run: |
sudo apt-get update -y
sudo apt-get install libtinfo5
sudo apt-get install libtinfo6
echo "LD_LIBRARY_PATH=/lib/x86_64-linux-gnu" >> $GITHUB_ENV

- name: Set up Rust
Expand All @@ -61,7 +61,7 @@ jobs:
override: true
target: ${{ matrix.target.target-name }}

- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2.8.0

- name: Set current Python version
shell: bash
Expand All @@ -70,7 +70,7 @@ jobs:

- name: Set up Python ${{ matrix.python }} (amd64)
if: matrix.target.id != 'linux-aarch64'
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}

Expand Down Expand Up @@ -168,7 +168,7 @@ jobs:
ls -lhaGiR target/wheels/*.whl

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.6.2
with:
name: wheels-${{ matrix.python }}-${{ matrix.target.id }}
path: target/wheels
Expand All @@ -178,16 +178,16 @@ jobs:
release:
name: Release

runs-on: ubuntu-latest
runs-on: ubuntu-22.04

needs: [build]

steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v5.0.0

- name: Download the Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4.6.2
with:
path: artifacts

Expand All @@ -210,7 +210,7 @@ jobs:

- name: Set up Python ${{ matrix.python }} (amd64)
if: matrix.target.id != 'linux-aarch64'
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: 3.11

Expand All @@ -226,7 +226,7 @@ jobs:
pyenv install --skip-existing "$(cat .python-version)"

# Caching is disabled because it interferes with artifact creation
#- uses: Swatinem/rust-cache@v1
#- uses: Swatinem/rust-cache@v2.8.0

- name: Set up utilities
shell: bash
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
target:
- id: 'linux-amd64'
os: 'ubuntu-latest'
os: 'ubuntu-22.04'
target-name: 'x86_64-unknown-linux-gnu'
rust-toolchain: 'stable'
llvm_url: 'https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.0/clang+llvm-13.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz'
Expand Down Expand Up @@ -54,13 +54,13 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v5.0.0

- name: Install dependencies
if: matrix.target.id == 'linux-amd64'
run: |
sudo apt-get update -y
sudo apt-get install libtinfo5
sudo apt-get install libtinfo6
echo "LD_LIBRARY_PATH=/lib/x86_64-linux-gnu" >> $GITHUB_ENV

- name: Set up Rust
Expand All @@ -72,7 +72,7 @@ jobs:
target: ${{ matrix.target.target-name }}

# Caching is disabled because it interferes with artifact creation
# - uses: Swatinem/rust-cache@v2
# - uses: Swatinem/rust-cache@v2.8.0
# with:
# shared-key: "rust-cache"

Expand All @@ -83,7 +83,7 @@ jobs:

- name: Set up Python ${{ matrix.python }} (amd64)
if: matrix.target.id != 'linux-aarch64'
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
architecture: x64
Expand Down Expand Up @@ -201,7 +201,7 @@ jobs:
ls -lhaGiR target/wheels/*.whl

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.6.2
with:
name: wheels-${{ matrix.python }}-${{ matrix.target.id }}
path: target/wheels
Expand All @@ -211,17 +211,17 @@ jobs:
prerelease:
name: Pre-Release

runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: startsWith(github.ref, 'refs/heads/prepare-')

needs: [test]

steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v5.0.0

- name: Download the Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4.6.2
with:
path: artifacts

Expand All @@ -237,7 +237,7 @@ jobs:

- name: Set up Python ${{ matrix.python }} (amd64)
if: matrix.target.id != 'linux-aarch64'
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.11

Expand All @@ -253,7 +253,7 @@ jobs:
pyenv install --skip-existing "$(cat .python-version)"

# Caching is disabled because it interferes with artifact creation
#- uses: Swatinem/rust-cache@v1
#- uses: Swatinem/rust-cache@v2.8.0

- name: Set up just
shell: bash
Expand Down Expand Up @@ -281,7 +281,7 @@ jobs:

build-status:
if: always() && github.event_name == 'push'
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [test]

steps:
Expand Down
Loading