Upgrades GitHub actions

pull/264/head
Tpt 2 years ago committed by Thomas Tanon
parent d16033ba66
commit 4dbe079d37
  1. 48
      .github/workflows/artifacts.yml
  2. 52
      .github/workflows/release.yml
  3. 18
      .github/workflows/tests.yml

@ -13,11 +13,11 @@ jobs:
python_doc: python_doc:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- run: rustup update - run: rustup update
- uses: actions/setup-python@v2 - uses: actions/setup-python@v4
with: with:
python-version: 3.8 python-version: 3.8
- run: python -m venv venv - run: python -m venv venv
@ -30,7 +30,7 @@ jobs:
working-directory: ./python/docs working-directory: ./python/docs
- run: source ../venv/bin/activate && sphinx-build -M html . build - run: source ../venv/bin/activate && sphinx-build -M html . build
working-directory: ./python/docs working-directory: ./python/docs
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
repository: oxigraph/oxigraph.github.io repository: oxigraph/oxigraph.github.io
path: website path: website
@ -47,12 +47,12 @@ jobs:
binary_linux: binary_linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- run: cargo build --release - run: cargo build --release
working-directory: ./server working-directory: ./server
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: oxigraph_server_x86_64_linux_gnu name: oxigraph_server_x86_64_linux_gnu
path: target/release/oxigraph_server path: target/release/oxigraph_server
@ -64,13 +64,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@v2 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- run: rustup update - run: rustup update
- run: cargo build --release - run: cargo build --release
working-directory: ./server working-directory: ./server
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: oxigraph_server_x86_64_apple name: oxigraph_server_x86_64_apple
path: target/release/oxigraph_server path: target/release/oxigraph_server
@ -78,14 +78,14 @@ jobs:
binary_windows: binary_windows:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- run: rustup update - run: rustup update
- 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: ./server working-directory: ./server
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: oxigraph_server_x86_64_windows_msvc name: oxigraph_server_x86_64_windows_msvc
path: target/release/oxigraph_server.exe path: target/release/oxigraph_server.exe
@ -93,12 +93,12 @@ jobs:
wheel_linux: wheel_linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- run: sed 's/%arch%/x86_64/g' .github/workflows/manylinux_build.sh > .github/workflows/manylinux_build_script.sh - run: sed 's/%arch%/x86_64/g' .github/workflows/manylinux_build.sh > .github/workflows/manylinux_build_script.sh
- run: docker run -v "$(pwd)":/workdir --platform linux/x86_64 quay.io/pypa/manylinux2014_x86_64 /bin/bash /workdir/.github/workflows/manylinux_build_script.sh - run: docker run -v "$(pwd)":/workdir --platform linux/x86_64 quay.io/pypa/manylinux2014_x86_64 /bin/bash /workdir/.github/workflows/manylinux_build_script.sh
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: pyoxigraph_x86_64_linux name: pyoxigraph_x86_64_linux
path: target/wheels/*.whl path: target/wheels/*.whl
@ -110,10 +110,10 @@ 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@v2 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- uses: actions/setup-python@v2 - uses: actions/setup-python@v4
with: with:
python-version: "3.10" python-version: "3.10"
- run: rustup update && rustup target add aarch64-apple-darwin - run: rustup update && rustup target add aarch64-apple-darwin
@ -123,7 +123,7 @@ jobs:
- run: python generate_stubs.py pyoxigraph pyoxigraph.pyi --black - run: python generate_stubs.py pyoxigraph pyoxigraph.pyi --black
working-directory: ./python working-directory: ./python
- run: maturin build --release -m python/Cargo.toml --universal2 - run: maturin build --release -m python/Cargo.toml --universal2
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: pyoxigraph_wheel_universal2_mac name: pyoxigraph_wheel_universal2_mac
path: target/wheels/*.whl path: target/wheels/*.whl
@ -131,10 +131,10 @@ jobs:
wheel_windows: wheel_windows:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- uses: actions/setup-python@v2 - uses: actions/setup-python@v4
with: with:
python-version: "3.10" python-version: "3.10"
- run: rustup update - run: rustup update
@ -145,7 +145,7 @@ jobs:
- run: python generate_stubs.py pyoxigraph pyoxigraph.pyi --black - run: python generate_stubs.py pyoxigraph pyoxigraph.pyi --black
working-directory: ./python working-directory: ./python
- run: maturin build --release -m python/Cargo.toml - run: maturin build --release -m python/Cargo.toml
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: pyoxigraph_wheel_x86_64_windows name: pyoxigraph_wheel_x86_64_windows
path: target/wheels/*.whl path: target/wheels/*.whl
@ -153,12 +153,12 @@ jobs:
npm_tarball: npm_tarball:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- run: rustup update - run: rustup update
- run: cargo install wasm-pack - run: cargo install wasm-pack
- run: npm run pack - run: npm run pack
working-directory: ./js working-directory: ./js
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: oxigraph_wasm_npm name: oxigraph_wasm_npm
path: js/*.tgz path: js/*.tgz
@ -166,21 +166,21 @@ jobs:
docker: docker:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
submodules: 'recursive' submodules: 'recursive'
- uses: docker/setup-buildx-action@v1 - uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v1 - uses: docker/login-action@v2
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{github.actor}} username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}} password: ${{secrets.GITHUB_TOKEN}}
- uses: docker/metadata-action@v3 - uses: docker/metadata-action@v4
id: docker_meta id: docker_meta
with: with:
images: ghcr.io/${{ github.repository }} images: ghcr.io/${{ github.repository }}
tags: nightly tags: nightly
- uses: docker/build-push-action@v2 - uses: docker/build-push-action@v3
with: with:
context: . context: .
file: server/Dockerfile file: server/Dockerfile

@ -8,26 +8,26 @@ jobs:
push_server_to_docker_registry: push_server_to_docker_registry:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- uses: docker/setup-buildx-action@v1 - uses: docker/setup-buildx-action@v2
- uses: docker/metadata-action@v3 - uses: docker/metadata-action@v4
id: docker_meta id: docker_meta
with: with:
images: | images: |
${{ github.repository }} ${{ github.repository }}
ghcr.io/${{ github.repository }} ghcr.io/${{ github.repository }}
- uses: docker/login-action@v1 - uses: docker/login-action@v2
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
- uses: docker/login-action@v1 - uses: docker/login-action@v2
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{github.actor}} username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}} password: ${{secrets.GITHUB_TOKEN}}
- uses: docker/build-push-action@v2 - uses: docker/build-push-action@v3
with: with:
context: . context: .
file: server/Dockerfile file: server/Dockerfile
@ -41,7 +41,7 @@ jobs:
publish_crates: publish_crates:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- run: rustup update - run: rustup update
@ -76,10 +76,10 @@ jobs:
architecture: [ "x86_64", "aarch64" ] architecture: [ "x86_64", "aarch64" ]
continue-on-error: true continue-on-error: true
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- uses: docker/setup-qemu-action@v1 - uses: docker/setup-qemu-action@v2
with: with:
platforms: linux/${{ matrix.architecture }} platforms: linux/${{ matrix.architecture }}
if: matrix.architecture != 'x86_64' if: matrix.architecture != 'x86_64'
@ -101,10 +101,10 @@ 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@v2 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- uses: actions/setup-python@v2 - uses: actions/setup-python@v4
with: with:
python-version: "3.10" python-version: "3.10"
- run: rustup update && rustup target add aarch64-apple-darwin - run: rustup update && rustup target add aarch64-apple-darwin
@ -122,10 +122,10 @@ jobs:
publish_pypi_windows: publish_pypi_windows:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- uses: actions/setup-python@v2 - uses: actions/setup-python@v4
with: with:
python-version: "3.10" python-version: "3.10"
- run: rustup update - run: rustup update
@ -143,10 +143,10 @@ jobs:
publish_pypi_stdist: publish_pypi_stdist:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- uses: actions/setup-python@v2 - uses: actions/setup-python@v4
with: with:
python-version: "3.10" python-version: "3.10"
- run: rustup update - run: rustup update
@ -168,12 +168,12 @@ jobs:
publish_npm: publish_npm:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- uses: actions/setup-node@v2 - uses: actions/setup-node@v3
with: with:
node-version: 14 node-version: 16
registry-url: https://registry.npmjs.org registry-url: https://registry.npmjs.org
- run: rustup update - run: rustup update
- run: cargo install wasm-pack - run: cargo install wasm-pack
@ -192,11 +192,11 @@ jobs:
publish_python_doc: publish_python_doc:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- run: rustup update - run: rustup update
- uses: actions/setup-python@v2 - uses: actions/setup-python@v4
with: with:
python-version: 3.8 python-version: 3.8
- run: python -m venv venv - run: python -m venv venv
@ -209,7 +209,7 @@ jobs:
working-directory: ./python/docs working-directory: ./python/docs
- run: source ../venv/bin/activate && sphinx-build -M html . build - run: source ../venv/bin/activate && sphinx-build -M html . build
working-directory: ./python/docs working-directory: ./python/docs
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
repository: oxigraph/oxigraph.github.io repository: oxigraph/oxigraph.github.io
path: website path: website
@ -229,7 +229,7 @@ jobs:
publish_full_archive: publish_full_archive:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- run: | - run: |
@ -247,7 +247,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: publish_full_archive needs: publish_full_archive
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
repository: oxigraph/homebrew-oxigraph repository: oxigraph/homebrew-oxigraph
token: ${{ secrets.FULL_ACCESS_TOKEN }} token: ${{ secrets.FULL_ACCESS_TOKEN }}
@ -266,7 +266,7 @@ jobs:
publish_binary_linux: publish_binary_linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- run: cargo build --release - run: cargo build --release
@ -283,7 +283,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@v2 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- run: rustup update - run: rustup update
@ -297,7 +297,7 @@ jobs:
publish_binary_windows: publish_binary_windows:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- run: rustup update - run: rustup update

@ -18,14 +18,14 @@ jobs:
fmt: fmt:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- run: rustup update && rustup component add rustfmt - run: rustup update && rustup component add rustfmt
- run: cargo fmt -- --check - run: cargo fmt -- --check
clippy: clippy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- run: rustup update && rustup component add clippy - run: rustup update && rustup component add clippy
@ -34,13 +34,13 @@ jobs:
deny: deny:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: EmbarkStudios/cargo-deny-action@v1 - uses: EmbarkStudios/cargo-deny-action@v1
test_linux: test_linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- run: rustup update - run: rustup update
@ -51,7 +51,7 @@ jobs:
address_sanitizer: address_sanitizer:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- run: rustup update && rustup toolchain install nightly - run: rustup update && rustup toolchain install nightly
@ -63,7 +63,7 @@ jobs:
test_windows: test_windows:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- run: rustup update - run: rustup update
@ -75,7 +75,7 @@ jobs:
js: js:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- run: rustup update - run: rustup update
- run: cargo install wasm-pack - run: cargo install wasm-pack
- run: npm install - run: npm install
@ -86,11 +86,11 @@ jobs:
python: python:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- run: rustup update - run: rustup update
- uses: actions/setup-python@v2 - uses: actions/setup-python@v4
with: with:
python-version: "3.10" python-version: "3.10"
- run: pip install -r python/requirements.dev.txt - run: pip install -r python/requirements.dev.txt

Loading…
Cancel
Save