Improves naming of artifacts built by the CI

pull/599/head
Tpt 1 year ago committed by Thomas Tanon
parent c6e55c706a
commit 5fee36e587
  1. 25
      .github/workflows/artifacts.yml
  2. 8
      .github/workflows/manylinux_build.sh
  3. 8
      .github/workflows/musllinux_build.sh

@ -37,7 +37,7 @@ jobs:
path: target/release/oxigraph_server path: target/release/oxigraph_server
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
name: oxigraph_server_aarch64-linux_gnu name: oxigraph_server_aarch64_linux_gnu
path: target/aarch64-unknown-linux-gnu/release/oxigraph_server path: target/aarch64-unknown-linux-gnu/release/oxigraph_server
- run: mv target/release/oxigraph_server oxigraph_server_${{ github.event.release.tag_name }}_x86_64_linux_gnu - run: mv target/release/oxigraph_server oxigraph_server_${{ github.event.release.tag_name }}_x86_64_linux_gnu
if: github.event_name == 'release' if: github.event_name == 'release'
@ -126,7 +126,7 @@ jobs:
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@v3
with: with:
name: pyoxigraph_wheel_x86_64_linux name: pyoxigraph_wheel_x86_64_linux_gnu
path: target/wheels/*.whl path: target/wheels/*.whl
- uses: pypa/gh-action-pypi-publish@release/v1 - uses: pypa/gh-action-pypi-publish@release/v1
with: with:
@ -181,15 +181,19 @@ jobs:
cache: pip cache: pip
cache-dependency-path: '**/requirements.dev.txt' cache-dependency-path: '**/requirements.dev.txt'
- run: pip install -r python/requirements.dev.txt - run: pip install -r python/requirements.dev.txt
- run: maturin build --release -m python/Cargo.toml --features abi3 - run: maturin build --release --features abi3
working-directory: ./python
- run: pip install --no-index --find-links=target/wheels/ pyoxigraph - run: pip install --no-index --find-links=target/wheels/ pyoxigraph
- run: rm -r target/wheels - run: rm -r target/wheels
- 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 --target universal2-apple-darwin -m python/Cargo.toml --features abi3 - run: maturin build --release --target universal2-apple-darwin --features abi3
- run: maturin build --release -m python/Cargo.toml --features abi3 working-directory: ./python
- run: maturin build --release --features abi3
working-directory: ./python
if: github.event_name == 'release' if: github.event_name == 'release'
- run: maturin build --release --target aarch64-apple-darwin -m python/Cargo.toml --features abi3 - run: maturin build --release --target aarch64-apple-darwin --features abi3
working-directory: ./python
if: github.event_name == 'release' if: github.event_name == 'release'
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
@ -216,13 +220,16 @@ jobs:
cache-dependency-path: '**/requirements.dev.txt' cache-dependency-path: '**/requirements.dev.txt'
- run: Remove-Item -LiteralPath "C:\msys64\" -Force -Recurse - run: Remove-Item -LiteralPath "C:\msys64\" -Force -Recurse
- run: pip install -r python/requirements.dev.txt - run: pip install -r python/requirements.dev.txt
- run: maturin build --release -m python/Cargo.toml --features abi3 - run: maturin build --release --features abi3
working-directory: ./python
- run: pip install --no-index --find-links=target/wheels/ pyoxigraph - run: pip install --no-index --find-links=target/wheels/ pyoxigraph
- run: rm -r target/wheels - run: rm -r target/wheels
- 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 --features abi3 - run: maturin build --release --features abi3
- run: maturin sdist -m python/Cargo.toml working-directory: ./python
- run: maturin sdist
working-directory: ./python
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
name: pyoxigraph_wheel_x86_64_windows name: pyoxigraph_wheel_x86_64_windows

@ -8,14 +8,14 @@ chmod +x rustup-init
source "$HOME/.cargo/env" source "$HOME/.cargo/env"
export PATH="${PATH}:/opt/python/cp37-cp37m/bin:/opt/python/cp38-cp38/bin:/opt/python/cp39-cp39/bin:/opt/python/cp310-cp310/bin:/opt/python/cp311-cp311/bin" export PATH="${PATH}:/opt/python/cp37-cp37m/bin:/opt/python/cp38-cp38/bin:/opt/python/cp39-cp39/bin:/opt/python/cp310-cp310/bin:/opt/python/cp311-cp311/bin"
cd python cd python
python3.10 -m venv venv python3.11 -m venv venv
source venv/bin/activate source venv/bin/activate
pip install -r requirements.dev.txt pip install -r requirements.dev.txt
maturin develop --release -m Cargo.toml maturin develop --release
python generate_stubs.py pyoxigraph pyoxigraph.pyi --black python generate_stubs.py pyoxigraph pyoxigraph.pyi --black
maturin build --release -m Cargo.toml --features abi3 --compatibility manylinux2014 maturin build --release --features abi3 --compatibility manylinux2014
if [ %for_each_version% ]; then if [ %for_each_version% ]; then
for VERSION in 7 8 9 10 11; do for VERSION in 7 8 9 10 11; do
maturin build --release -m Cargo.toml --interpreter "python3.$VERSION" --compatibility manylinux2014 maturin build --release --interpreter "python3.$VERSION" --compatibility manylinux2014
done done
fi fi

@ -6,14 +6,14 @@ chmod +x rustup-init
source "$HOME/.cargo/env" source "$HOME/.cargo/env"
export PATH="${PATH}:/opt/python/cp37-cp37m/bin:/opt/python/cp38-cp38/bin:/opt/python/cp39-cp39/bin:/opt/python/cp310-cp310/bin:/opt/python/cp311-cp311/bin" export PATH="${PATH}:/opt/python/cp37-cp37m/bin:/opt/python/cp38-cp38/bin:/opt/python/cp39-cp39/bin:/opt/python/cp310-cp310/bin:/opt/python/cp311-cp311/bin"
cd python cd python
python3.10 -m venv venv python3.11 -m venv venv
source venv/bin/activate source venv/bin/activate
pip install -r requirements.dev.txt pip install -r requirements.dev.txt
maturin develop --release -m Cargo.toml maturin develop --release
python generate_stubs.py pyoxigraph pyoxigraph.pyi --black python generate_stubs.py pyoxigraph pyoxigraph.pyi --black
maturin build --release -m Cargo.toml --features abi3 --compatibility musllinux_1_1 maturin build --release --features abi3 --compatibility musllinux_1_1
if [ %for_each_version% ]; then if [ %for_each_version% ]; then
for VERSION in 7 8 9 10 11; do for VERSION in 7 8 9 10 11; do
maturin build --release -m Cargo.toml --interpreter "python3.$VERSION" --compatibility musllinux_1_1 maturin build --release --interpreter "python3.$VERSION" --compatibility musllinux_1_1
done done
fi fi

Loading…
Cancel
Save