Upgrades GitHub actions

main
Tpt 9 months ago committed by Thomas Tanon
parent 1a40ab2017
commit 427d675c9b
  1. 81
      .github/workflows/artifacts.yml
  2. 75
      .github/workflows/tests.yml

@ -17,7 +17,7 @@ jobs:
binary_linux: binary_linux:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
@ -33,11 +33,11 @@ jobs:
working-directory: ./cli working-directory: ./cli
env: env:
BINDGEN_EXTRA_CLANG_ARGS: --sysroot /usr/aarch64-linux-gnu BINDGEN_EXTRA_CLANG_ARGS: --sysroot /usr/aarch64-linux-gnu
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: oxigraph_x86_64_linux_gnu name: oxigraph_x86_64_linux_gnu
path: target/release/oxigraph path: target/release/oxigraph
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: oxigraph_aarch64_linux_gnu name: oxigraph_aarch64_linux_gnu
path: target/aarch64-unknown-linux-gnu/release/oxigraph path: target/aarch64-unknown-linux-gnu/release/oxigraph
@ -59,7 +59,7 @@ jobs:
SDKROOT: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk' SDKROOT: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk'
MACOSX_DEPLOYMENT_TARGET: '10.14' MACOSX_DEPLOYMENT_TARGET: '10.14'
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
@ -69,11 +69,11 @@ jobs:
working-directory: ./cli working-directory: ./cli
- run: cargo build --release --target aarch64-apple-darwin - run: cargo build --release --target aarch64-apple-darwin
working-directory: ./cli working-directory: ./cli
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: oxigraph_x86_64_apple name: oxigraph_x86_64_apple
path: target/release/oxigraph path: target/release/oxigraph
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: oxigraph_aarch64_apple name: oxigraph_aarch64_apple
path: target/aarch64-apple-darwin/release/oxigraph path: target/aarch64-apple-darwin/release/oxigraph
@ -91,14 +91,14 @@ jobs:
binary_windows: binary_windows:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
- run: Remove-Item -LiteralPath "C:\msys64\" -Force -Recurse - run: Remove-Item -LiteralPath "C:\msys64\" -Force -Recurse
- run: cargo build --release - run: cargo build --release
working-directory: ./cli working-directory: ./cli
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: oxigraph_x86_64_windows_msvc name: oxigraph_x86_64_windows_msvc
path: target/release/oxigraph.exe path: target/release/oxigraph.exe
@ -112,11 +112,11 @@ jobs:
python_sdist: python_sdist:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: "3.12" python-version: "3.12"
cache: pip cache: pip
@ -128,9 +128,9 @@ jobs:
- run: python generate_stubs.py pyoxigraph pyoxigraph.pyi --ruff - run: python generate_stubs.py pyoxigraph pyoxigraph.pyi --ruff
working-directory: ./python working-directory: ./python
- run: maturin sdist -m python/Cargo.toml - run: maturin sdist -m python/Cargo.toml
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: pyoxigraph_dist name: pyoxigraph_sdist
path: target/wheels/*.tar.gz path: target/wheels/*.tar.gz
wheel_linux: wheel_linux:
@ -140,7 +140,7 @@ jobs:
architecture: [ "x86_64", "aarch64" ] architecture: [ "x86_64", "aarch64" ]
continue-on-error: true continue-on-error: true
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: docker/setup-qemu-action@v2 - uses: docker/setup-qemu-action@v2
@ -151,9 +151,9 @@ jobs:
- run: sed 's/%arch%/${{ matrix.architecture }}/g' .github/workflows/manylinux_build.sh | sed 's/%for_each_version%/${{ github.event_name == 'release' || '' }}/g' > .github/workflows/manylinux_build_script.sh - run: sed 's/%arch%/${{ matrix.architecture }}/g' .github/workflows/manylinux_build.sh | sed 's/%for_each_version%/${{ github.event_name == 'release' || '' }}/g' > .github/workflows/manylinux_build_script.sh
- run: docker run -v "$(pwd)":/workdir --platform linux/${{ matrix.architecture }} quay.io/pypa/manylinux2014_${{ matrix.architecture }} /bin/bash /workdir/.github/workflows/manylinux_build_script.sh - run: docker run -v "$(pwd)":/workdir --platform linux/${{ matrix.architecture }} quay.io/pypa/manylinux2014_${{ matrix.architecture }} /bin/bash /workdir/.github/workflows/manylinux_build_script.sh
if: github.event_name == 'release' || matrix.architecture == 'x86_64' if: github.event_name == 'release' || matrix.architecture == 'x86_64'
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: pyoxigraph_dist name: pyoxigraph_${{ matrix.architecture }}_linux_gnu
path: target/wheels/*.whl path: target/wheels/*.whl
wheel_linux_musl: wheel_linux_musl:
@ -163,7 +163,7 @@ jobs:
architecture: [ "x86_64", "aarch64" ] architecture: [ "x86_64", "aarch64" ]
continue-on-error: true continue-on-error: true
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: docker/setup-qemu-action@v2 - uses: docker/setup-qemu-action@v2
@ -174,9 +174,9 @@ jobs:
- run: sed 's/%arch%/${{ matrix.architecture }}/g' .github/workflows/musllinux_build.sh | sed 's/%for_each_version%/${{ github.event_name == 'release' || '' }}/g' > .github/workflows/musllinux_build_script.sh - run: sed 's/%arch%/${{ matrix.architecture }}/g' .github/workflows/musllinux_build.sh | sed 's/%for_each_version%/${{ github.event_name == 'release' || '' }}/g' > .github/workflows/musllinux_build_script.sh
- run: docker run -v "$(pwd)":/workdir --platform linux/${{ matrix.architecture }} quay.io/pypa/musllinux_1_2_${{ matrix.architecture }} /bin/bash /workdir/.github/workflows/musllinux_build_script.sh - run: docker run -v "$(pwd)":/workdir --platform linux/${{ matrix.architecture }} quay.io/pypa/musllinux_1_2_${{ matrix.architecture }} /bin/bash /workdir/.github/workflows/musllinux_build_script.sh
if: github.event_name == 'release' || matrix.architecture == 'x86_64' if: github.event_name == 'release' || matrix.architecture == 'x86_64'
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: pyoxigraph_dist name: pyoxigraph_${{ matrix.architecture }}_linux_musl
path: target/wheels/*.whl path: target/wheels/*.whl
wheel_mac: wheel_mac:
@ -186,13 +186,13 @@ jobs:
SDKROOT: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk' SDKROOT: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk'
MACOSX_DEPLOYMENT_TARGET: '10.14' MACOSX_DEPLOYMENT_TARGET: '10.14'
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
with: with:
target: aarch64-apple-darwin target: aarch64-apple-darwin
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: "3.12" python-version: "3.12"
cache: pip cache: pip
@ -212,19 +212,19 @@ jobs:
- run: maturin build --release --target aarch64-apple-darwin --features abi3 - run: maturin build --release --target aarch64-apple-darwin --features abi3
working-directory: ./python working-directory: ./python
if: github.event_name == 'release' if: github.event_name == 'release'
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: pyoxigraph_dist name: pyoxigraph_macos
path: target/wheels/*.whl path: target/wheels/*.whl
wheel_windows: wheel_windows:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: "3.12" python-version: "3.12"
cache: pip cache: pip
@ -238,9 +238,9 @@ jobs:
- run: python generate_stubs.py pyoxigraph pyoxigraph.pyi --ruff - run: python generate_stubs.py pyoxigraph pyoxigraph.pyi --ruff
working-directory: ./python working-directory: ./python
- run: maturin build --release -m python/Cargo.toml --features abi3 - run: maturin build --release -m python/Cargo.toml --features abi3
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: pyoxigraph_dist name: pyoxigraph_windows
path: target/wheels/*.whl path: target/wheels/*.whl
publish_pypi: publish_pypi:
@ -258,10 +258,11 @@ jobs:
- wheel_linux - wheel_linux
- wheel_linux_musl - wheel_linux_musl
steps: steps:
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v4
with: with:
name: pyoxigraph_dist pattern: pyoxigraph_*
path: dist path: dist
merge-multiple: true
- uses: pypa/gh-action-pypi-publish@release/v1 - uses: pypa/gh-action-pypi-publish@release/v1
with: with:
packages-dir: dist packages-dir: dist
@ -270,13 +271,13 @@ jobs:
npm_tarball: npm_tarball:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
- uses: taiki-e/install-action@v2 - uses: taiki-e/install-action@v2
with: { tool: wasm-pack } with: { tool: wasm-pack }
- uses: actions/setup-node@v3 - uses: actions/setup-node@v4
with: with:
node-version: 16 node-version: 16
cache: npm cache: npm
@ -284,7 +285,7 @@ jobs:
registry-url: https://registry.npmjs.org registry-url: https://registry.npmjs.org
- run: npm run pack - run: npm run pack
working-directory: ./js working-directory: ./js
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: oxigraph_wasm_npm name: oxigraph_wasm_npm
path: js/*.tgz path: js/*.tgz
@ -297,21 +298,21 @@ jobs:
docker: docker:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: docker/setup-buildx-action@v2 - uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v2 - uses: docker/login-action@v3
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{github.actor}} username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}} password: ${{secrets.GITHUB_TOKEN}}
- uses: docker/login-action@v2 - uses: docker/login-action@v3
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
if: github.event_name == 'release' if: github.event_name == 'release'
- uses: docker/metadata-action@v4 - uses: docker/metadata-action@v5
id: docker_meta id: docker_meta
with: with:
images: | images: |
@ -322,7 +323,7 @@ jobs:
type=ref,event=pr type=ref,event=pr
type=semver,pattern={{version}} type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.{{minor}}
- uses: docker/build-push-action@v4 - uses: docker/build-push-action@v5
with: with:
context: . context: .
file: server/Dockerfile file: server/Dockerfile
@ -338,7 +339,7 @@ jobs:
if: github.event_name == 'release' if: github.event_name == 'release'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- run: rustup update - run: rustup update
@ -386,7 +387,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: full_archive needs: full_archive
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
repository: oxigraph/homebrew-oxigraph repository: oxigraph/homebrew-oxigraph
token: ${{ secrets.FULL_ACCESS_TOKEN }} token: ${{ secrets.FULL_ACCESS_TOKEN }}
@ -406,7 +407,7 @@ jobs:
if: github.event_name == 'release' if: github.event_name == 'release'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- run: | - run: |

@ -16,7 +16,7 @@ jobs:
fmt: fmt:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
with: with:
component: rustfmt component: rustfmt
@ -25,7 +25,7 @@ jobs:
clippy: clippy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
@ -66,7 +66,7 @@ jobs:
clippy_wasm_js: clippy_wasm_js:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
@ -80,7 +80,7 @@ jobs:
clippy_wasi: clippy_wasi:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
@ -96,7 +96,7 @@ jobs:
clippy_wasm_emscripten: clippy_wasm_emscripten:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
@ -112,7 +112,7 @@ jobs:
clippy_wasm_unknown: clippy_wasm_unknown:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
@ -126,7 +126,7 @@ jobs:
deny: deny:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: taiki-e/install-action@v2 - uses: taiki-e/install-action@v2
with: { tool: cargo-deny } with: { tool: cargo-deny }
- run: cargo deny check - run: cargo deny check
@ -134,13 +134,13 @@ jobs:
semver_checks: semver_checks:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
- uses: taiki-e/install-action@v2 - uses: taiki-e/install-action@v2
with: { tool: cargo-semver-checks } with: { tool: cargo-semver-checks }
- uses: actions/cache@v3 - uses: actions/cache@v4
with: with:
path: rocksdb path: rocksdb
key: ${{ runner.os }}-rocksdb-8.0.0 key: ${{ runner.os }}-rocksdb-8.0.0
@ -150,7 +150,7 @@ jobs:
test_linux_x86_64: test_linux_x86_64:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
@ -159,7 +159,7 @@ jobs:
test_linux_i686: test_linux_i686:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
@ -172,7 +172,7 @@ jobs:
test_linux_msv: test_linux_msv:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- name: Read MSRV from Cargo.toml - name: Read MSRV from Cargo.toml
@ -188,7 +188,7 @@ jobs:
test_linux_latest: test_linux_latest:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
@ -198,7 +198,7 @@ jobs:
test_linux_address_sanitizer: test_linux_address_sanitizer:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
@ -212,11 +212,11 @@ jobs:
test_linux_dynamic_linking: test_linux_dynamic_linking:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
- uses: actions/cache@v3 - uses: actions/cache@v4
with: with:
path: rocksdb path: rocksdb
key: ${{ runner.os }}-rocksdb-8.0.0 key: ${{ runner.os }}-rocksdb-8.0.0
@ -226,7 +226,7 @@ jobs:
test_windows: test_windows:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
@ -236,7 +236,7 @@ jobs:
test_wasi: test_wasi:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
@ -249,7 +249,7 @@ jobs:
rustdoc: rustdoc:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
@ -262,11 +262,11 @@ jobs:
js: js:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
- uses: taiki-e/install-action@v2 - uses: taiki-e/install-action@v2
with: { tool: wasm-pack } with: { tool: wasm-pack }
- uses: actions/setup-node@v3 - uses: actions/setup-node@v4
with: with:
node-version: 18 node-version: 18
cache: npm cache: npm
@ -279,11 +279,11 @@ jobs:
python: python:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: "3.12" python-version: "3.12"
cache: pip cache: pip
@ -312,7 +312,7 @@ jobs:
python_msv: python_msv:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- name: Read MSRV from Cargo.toml - name: Read MSRV from Cargo.toml
@ -322,7 +322,7 @@ jobs:
with: with:
version: ${{ steps.metadata.outputs.rust-version }} version: ${{ steps.metadata.outputs.rust-version }}
- run: rustup toolchain install nightly - run: rustup toolchain install nightly
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: "3.8" python-version: "3.8"
cache: pip cache: pip
@ -338,11 +338,11 @@ jobs:
python_pypy: python_pypy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: "pypy3.10" python-version: "pypy3.10"
cache: pip cache: pip
@ -357,11 +357,11 @@ jobs:
python_windows: python_windows:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: "3.12" python-version: "3.12"
cache: pip cache: pip
@ -376,10 +376,10 @@ jobs:
python_pyodide: python_pyodide:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
submodules: true submodules: true
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: "3.11" python-version: "3.11"
cache: pip cache: pip
@ -406,7 +406,7 @@ jobs:
typos: typos:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: taiki-e/install-action@v2 - uses: taiki-e/install-action@v2
with: { tool: typos-cli } with: { tool: typos-cli }
- run: typos - run: typos
@ -414,7 +414,7 @@ jobs:
clang_fmt: clang_fmt:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- run: sudo apt-get update && sudo apt-get install -y clang-format - run: sudo apt-get update && sudo apt-get install -y clang-format
- run: clang-format --Werror --dry-run oxrocksdb-sys/api/* - run: clang-format --Werror --dry-run oxrocksdb-sys/api/*
@ -485,20 +485,20 @@ jobs:
shellcheck: shellcheck:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- run: sudo apt-get update && sudo apt-get install -y shellcheck - run: sudo apt-get update && sudo apt-get install -y shellcheck
- run: git grep -l '^#\( *shellcheck \|!\(/bin/\|/usr/bin/env \)\(sh\|bash\|dash\|ksh\)\)' | xargs shellcheck - run: git grep -l '^#\( *shellcheck \|!\(/bin/\|/usr/bin/env \)\(sh\|bash\|dash\|ksh\)\)' | xargs shellcheck
spec_links: spec_links:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- run: python lints/test_spec_links.py - run: python lints/test_spec_links.py
debian_compatibility: debian_compatibility:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
- run: python lints/test_debian_compatibility.py - run: python lints/test_debian_compatibility.py
@ -528,8 +528,9 @@ jobs:
- uses: taiki-e/install-action@v2 - uses: taiki-e/install-action@v2
with: { tool: cargo-llvm-cov } with: { tool: cargo-llvm-cov }
- run: cargo llvm-cov --codecov --output-path codecov.json - run: cargo llvm-cov --codecov --output-path codecov.json
- uses: codecov/codecov-action@v3 - uses: codecov/codecov-action@v4
with: with:
files: codecov.json files: codecov.json
flags: rust flags: rust
fail_ci_if_error: true fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}

Loading…
Cancel
Save