Skip to content

Commit

Permalink
ci: update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanElsner committed Jan 11, 2024
1 parent 767d3ef commit 5bdff30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,19 @@ jobs:
run: python -m pip install cibuildwheel==2.16.2
- name: Run build shell script
run: ./bin/build.sh "${{ matrix.libfranka-version }}"
- uses: actions/upload-artifact@v3
with:
path: ./archive/panda_py_libfranka_${{ matrix.libfranka-version }}/*.whl
name: wheels-${{ matrix.libfranka-version }}

documentation:
name: "Build and deploy documentation"
needs: [build_wheels]
runs-on: ubuntu-latest
env:
LIBFRANKA_VER: "0.9.2"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.10"
- uses: actions/download-artifact@v3
with:
name: wheels-0.9.2
path: wheels
- name: test
run: ls ./wheels
- name: Install wheel
run: "pip install ./wheels/panda_python-0.7.0+libfranka.0.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl[docs]"
- name: Install requirements
run: ./bin/before_install_ubuntu.sh
- name: Install package
run: pip install .[docs]
- name: Build documentation
run: cd docs && make html
- name: Setup Pages
Expand Down
2 changes: 1 addition & 1 deletion bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ libfranka_version="$1"
echo "Changing libfranka version in pyproject.toml to: $libfranka_version"
change_version "$libfranka_version"
export LIBFRANKA_VER=$libfranka_version
archive=panda_py_libfranka_${libfranka_version}
archive=panda_py_${version}_libfranka_${libfranka_version}
python -m cibuildwheel --output-dir $root/archive/$archive $root
zip -j $root/archive/$archive.zip $root/archive/$archive/*.whl

Expand Down

0 comments on commit 5bdff30

Please sign in to comment.