Skip to content

Commit

Permalink
- update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Oct 25, 2024
1 parent a8a4bba commit 8193289
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 23 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/checkout-submodules.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

git submodule update --init --remote

pushd submodules/libSBML-dependencies
git submodule update --init --remote expat
popd

pushd submodules/zipper
git submodule update --init --remote
popd
6 changes: 3 additions & 3 deletions .github/workflows/doxygen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Doxygen Action
uses: mattnotmitt/doxygen-action@v1.1.0
uses: mattnotmitt/doxygen-action@v1
with:
# Path to Doxyfile
doxyfile-path: "./dev/Doxyfile" # default is ./Doxyfile
Expand All @@ -37,7 +37,7 @@ jobs:

- name: Deploy
if: startsWith(github.event.ref, 'refs/tags/') == true
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Checkout submodules
run: git submodule update --init --recursive
shell: bash
run: |
./.github/workflows/checkout-submodules.sh
- name: add SWIG to windows
# this is separate from the SWIG download itself, because it needs to be added to the path also when SWIG is cached
Expand Down
42 changes: 25 additions & 17 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,22 @@ jobs:
name: Make SDist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Optional, use if you use setuptools_scm
submodules: recursive # Optional, use if you have submodules

- name: Checkout submodules
shell: bash
run: |
./.github/workflows/checkout-submodules.sh
- name: Build SDist
run: |
cp src/bindings/python/setup.py .
cp src/bindings/python/MANIFEST.in .
pipx run build --sdist
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
path: dist/*.tar.gz
name: libCombine-sdist
Expand All @@ -33,26 +37,30 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-2019, macos-11]
python_version: ['cp37-*', 'cp38-*', 'cp39-*', 'cp310-*', 'cp311-*', 'cp312-*']
os: [ubuntu-latest, windows-latest, macos-latest]
python_version: ['cp39-*', 'cp310-*', 'cp311-*', 'cp312-*', 'cp313-*']

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Optional, use if you use setuptools_scm
submodules: recursive # Optional, use if you have submodules

- name: Checkout submodules
shell: bash
run: |
./.github/workflows/checkout-submodules.sh
- name: Copy setup.py
run: |
cp src/bindings/python/setup.py .
- uses: pypa/cibuildwheel@v2.16.2
- uses: pypa/cibuildwheel@v2.21.3
env:
CIBW_BUILD: ${{ matrix.python_version }}
CIBW_ARCHS_MACOS: x86_64 arm64

- name: Upload wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: wheelhouse/*.whl
name: libCombine-${{ matrix.os }}
Expand All @@ -62,24 +70,24 @@ jobs:
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: libCombine-sdist
path: dist
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: libCombine-ubuntu-20.04
name: libCombine-ubuntu-latest
path: dist
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: libCombine-macos-11
name: libCombine-macos-latest
path: dist
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: libCombine-windows-2019
name: libCombine-windows-latest
path: dist

- uses: pypa/gh-action-pypi-publish@v1.4.2
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion submodules/libSBML-dependencies

0 comments on commit 8193289

Please sign in to comment.