diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 12d3ac1c..d99e9620 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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' @@ -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 @@ -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 @@ -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 }} @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 45b44045..10764e8b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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' @@ -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 @@ -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" @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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: