Skip to content

Commit

Permalink
Merge pull request #404 from sbmlteam/update-actions
Browse files Browse the repository at this point in the history
Update GitHub Actions where needed
  • Loading branch information
skeating authored Oct 8, 2024
2 parents 2ef3a2a + 2ba348b commit 25cfd4a
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 48 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/brief.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@ jobs:
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: seanmiddleditch/gha-setup-ninja@master

- name: Add msbuild to PATH (Windows)
if: matrix.platform == 'windows-latest'
uses: ilammy/msvc-dev-cmd@v1.6.0
uses: ilammy/msvc-dev-cmd@v1

### configure the operating system ###
- name: Cache Windows dependencies and SWIG
# On Windows, the dependencies live inside the source folder, ie `.`.
# For the CI, we put SWIG there too, for simplicity.
if: matrix.platform == 'windows-latest'
id: cache-win-dependencies-static
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
./dependencies
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
echo "COMPILER_LAUNCHER=ccache" >> "${GITHUB_ENV}"
- name: cache ccache files
if: matrix.platform != 'windows-latest'
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{runner.workspace}}/.ccache
key:
Expand Down Expand Up @@ -185,13 +185,13 @@ jobs:
package_option: ["-DWITH_STABLE_PACKAGES=ON"]
cpp_standard: [98, 20]
language_bindings:
["-DWITH_JAVA=True -DWITH_PYTHON=True -DWITH_CSHARP=True"]
container: ["quay.io/pypa/manylinux2010_x86_64"]
["-DWITH_JAVA=True -DWITH_PYTHON=True"]
container: ["quay.io/pypa/manylinux_2_28_x86_64"]
runs-on: ${{ matrix.platform }}
container: ${{ matrix.container}}

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: install Swig 4 from source
run: |
yum install -y pcre-devel
Expand All @@ -213,7 +213,7 @@ jobs:
ctest --version
- name: Install dependencies, configure, build
run: |
yum install -y libxml2-devel check-devel java-devel mono-devel
yum install -y libxml2-devel check-devel java-devel
cd ..
mkdir build
cd build
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/doxygen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ on:

jobs:
build:
if: github.repository_owner == 'sbmlteam'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: seanmiddleditch/gha-setup-ninja@master

Expand Down Expand Up @@ -52,7 +53,7 @@ jobs:
cmake --build . --config Release --target api_docs_cpp
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/formatted/cpp-api
8 changes: 4 additions & 4 deletions .github/workflows/extensive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,20 @@ jobs:
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: seanmiddleditch/gha-setup-ninja@master

- name: Add msbuild to PATH (Windows)
if: matrix.platform == 'windows-latest'
uses: ilammy/msvc-dev-cmd@v1.6.0
uses: ilammy/msvc-dev-cmd@v1

### configure the operating system ###
- name: Cache Windows dependencies and SWIG
# On Windows, the dependencies live inside the source folder, ie `.`.
# For the CI, we put SWIG there too, for simplicity.
if: matrix.platform == 'windows-latest'
id: cache-win-dependencies-static
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
./dependencies
Expand Down Expand Up @@ -178,7 +178,7 @@ jobs:
echo "COMPILER_LAUNCHER=ccache" >> "${GITHUB_ENV}"
- name: cache ccache files
if: matrix.platform != 'windows-latest'
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{runner.workspace}}/.ccache
key:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/matlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: seanmiddleditch/gha-setup-ninja@master

- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v1
uses: matlab-actions/setup-matlab@v2
# with:
# release: ${{ env.MATLAB_VERSION }}

Expand Down Expand Up @@ -58,6 +58,6 @@ jobs:
cmake --build . --config Debug --target matlab_binding_OutputSBML
- name: Run Test
uses: matlab-actions/run-command@v1
uses: matlab-actions/run-command@v2
with:
command: cd('../build/src/bindings/matlab/test'); runTests
4 changes: 2 additions & 2 deletions .github/workflows/octave.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ${{ matrix.os }}

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

- name: Checkout submodules
run: git submodule update --init --recursive
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
run: LD_LIBRARY_PATH=../../../../.. octave --eval "runTests()"

- name: Upload
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
path: ${{runner.workspace}}/build/octave_${{ matrix.os }}.tar.gz
name: octave_${{ matrix.os }}.tar.gz
46 changes: 18 additions & 28 deletions .github/workflows/store-artefact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,20 @@ jobs:
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: seanmiddleditch/gha-setup-ninja@master

- name: Add msbuild to PATH (Windows)
if: matrix.platform == 'windows-latest'
uses: ilammy/msvc-dev-cmd@v1.6.0
uses: ilammy/msvc-dev-cmd@v1

### configure the operating system ###
- name: Cache Windows dependencies and SWIG
# On Windows, the dependencies live inside the source folder, ie `.`.
# For the CI, we put SWIG there too, for simplicity.
if: matrix.platform == 'windows-latest'
id: cache-win-dependencies-static
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
./dependencies
Expand Down Expand Up @@ -133,12 +133,11 @@ jobs:
echo "COMPILER_LAUNCHER=ccache" >> "${GITHUB_ENV}"
- name: cache ccache files
if: matrix.platform != 'windows-latest'
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{runner.workspace}}/.ccache
key:
${{ runner.os }}-${{ steps.ccache_cache_timestamp.outputs.timestamp
}}
${{ runner.os }}-${{ steps.ccache_cache_timestamp.outputs.timestamp}}
restore-keys: |
${{ runner.os }}-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
${{ runner.os }}-
Expand Down Expand Up @@ -226,22 +225,22 @@ jobs:
### Upload installed versions ###
- name: Upload Windows binary archive
if: matrix.platform == 'windows-latest'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name:
Windows (zip, libSBML ${{env.LIBSBML_VERSION}},
${{env.ARTIFACT_NAME_SUFFIX}})
${{env.ARTIFACT_NAME_SUFFIX}})-${{ strategy.job-index }}
path: ${{runner.workspace}}/install/*
retention-days: 1
if-no-files-found: error

- name: Upload MacOS binary archive
if: matrix.platform == 'macos-latest'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name:
MacOS (zip, libSBML ${{env.LIBSBML_VERSION}},
${{env.ARTIFACT_NAME_SUFFIX}})
${{env.ARTIFACT_NAME_SUFFIX}})-${{ strategy.job-index }}
path: |
${{runner.workspace}}/install/*
${{runner.workspace}}/build/r-binaries/*
Expand All @@ -250,14 +249,13 @@ jobs:

- name: Upload Ubuntu binary archive
if: matrix.platform == 'ubuntu-latest'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name:
Ubuntu nightly (zip, libSBML ${{env.LIBSBML_VERSION}},
${{env.ARTIFACT_NAME_SUFFIX}})
${{env.ARTIFACT_NAME_SUFFIX}})-${{ strategy.job-index }}
path: |
${{runner.workspace}}/install/*
# ${{runner.workspace}}/build/r-binaries/*
retention-days: 1
if-no-files-found: error
manylinuxbuild:
Expand All @@ -279,12 +277,12 @@ jobs:
cpp_standard: [98]
language_bindings:
["-DWITH_JAVA=True -DWITH_PYTHON=True -DWITH_CSHARP=True -DWITH_R=True"]
container: ["quay.io/pypa/manylinux2010_x86_64"]
container: ["quay.io/pypa/manylinux_2_28_x86_64"]
runs-on: ${{ matrix.platform }}
container: ${{ matrix.container}}

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: install Swig 4 from source
run: |
yum install -y pcre-devel
Expand Down Expand Up @@ -365,18 +363,10 @@ jobs:
run: |
echo "ARTIFACT_NAME_SUFFIX=all-packages" >> "${GITHUB_ENV}"
- name: Upload Manylinux2010 binary archive
uses: actions/upload-artifact@v1 # note v1 used here, because v2 incompatible
- name: Upload Manylinux binary archive
uses: actions/upload-artifact@v4
with:
name:
Manylinux2010 nightly (zip, libSBML ${{env.LIBSBML_VERSION}},
${{env.ARTIFACT_NAME_SUFFIX}})
path: ../install # paths handled differently by v1 - note that "./install/*" does not work

# - name: Upload Manylinux2010 R binary archive
# uses: actions/upload-artifact@v1 # note v1 used here, because v2 incompatible
# with:
# name:
# Manylinux2010 R nightly (zip, libSBML ${{env.LIBSBML_VERSION}},
# ${{env.ARTIFACT_NAME_SUFFIX}})
# path: ../build/r-binaries # paths handled differently by v1 - note that v1 doesn't allow multiple paths
Manylinux nightly (zip, libSBML ${{env.LIBSBML_VERSION}},
${{env.ARTIFACT_NAME_SUFFIX}})-${{ strategy.job-index }}
path: ../install
2 changes: 1 addition & 1 deletion artefacts.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ The artefacts are built using [virtual machines provided by GitHub Actions](http
- Precompiled version of libSBML, built using the [libxml2](http://xmlsoft.org/) parser. Contains interfaces to C, C++, C# (Mono), Python, and R.
- Precompiled R package for libSBML.

## CentOS 6 ([ManyLinux2010](quay.io/pypa/manylinux2010_x86_64))
## CentOS 6 ([ManyLinux2014](quay.io/pypa/manylinux2014_x86_64))
- Precompiled version of libSBML, built using the [libxml2](http://xmlsoft.org/) parser. Contains interfaces to C, C++, C# (Mono), Python, and R.
- Precompiled R package for libSBML (as a separate artefact).

0 comments on commit 25cfd4a

Please sign in to comment.