Skip to content

Commit

Permalink
- run build weekly
Browse files Browse the repository at this point in the history
no ccache, install mono on ubuntu
  • Loading branch information
fbergmann committed Jan 10, 2025
1 parent 89da8ed commit 4f255a9
Showing 1 changed file with 11 additions and 49 deletions.
60 changes: 11 additions & 49 deletions .github/workflows/store-artefact.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Nightly build (binaries)
name: Weekly build (binaries)

on:
workflow_dispatch:
schedule:
- cron: "0 5 * * *"
- cron: "0 5 * * 0"

env:
BUILD_TYPE: Release
Expand Down Expand Up @@ -39,25 +39,11 @@ jobs:
if: matrix.platform == 'windows-latest'
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@v4
with:
path: |
./dependencies
./swig
key: ${{ runner.os }}-dependencies-static-2

- name: Download pre-built Windows dependencies and SWIG
# Windows dependencies have to be in a subfolder called `dependencies`, directly under the git repository root.
# also gets SWIG, completing the set of dependencies needed for windows
if:
matrix.platform == 'windows-latest' &&
steps.cache-win-dependencies-static.outputs.cache-hit != 'true'
matrix.platform == 'windows-latest'
shell: bash
run: |
curl -L https://github.com/sbmlteam/libSBML-dependencies/releases/download/latest/libSBML-dependencies-1.0.1-x64-Release-static.zip > dependencies.zip
Expand Down Expand Up @@ -92,7 +78,7 @@ jobs:
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y check ccache
sudo apt-get install -y check mono-devel
echo PYTHON_LINKING_OPTION="-DPYTHON_USE_DYNAMIC_LOOKUP=ON" >> "${GITHUB_ENV}"
echo CSHARP_OPTION="-DWITH_CSHARP=True" >> "${GITHUB_ENV}"
git clone https://github.com/libexpat/libexpat
Expand All @@ -106,7 +92,7 @@ jobs:
if: matrix.platform == 'macos-latest'
shell: bash
run: |
brew install check swig ccache
brew install check swig
echo PYTHON_LINKING_OPTION="-DPYTHON_USE_DYNAMIC_LOOKUP=ON" >> "${GITHUB_ENV}"
echo CSHARP_OPTION="-DWITH_CSHARP=OFF" >> "${GITHUB_ENV}"
Expand All @@ -117,31 +103,6 @@ jobs:
echo R_PLATFORM_SPECIFIC_OPTIONS="-DWITH_CREATE_R_SOURCE=ON
-DWITH_SKIP_R_BINARY=ON" >> "${GITHUB_ENV}"

### setup ccache, not on Windows ###
- name: Prepare ccache timestamp
if: matrix.platform != 'windows-latest'
id: ccache_cache_timestamp
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
- name: Set ccache cache directory
if: matrix.platform != 'windows-latest'
shell: bash
run: |
echo "CCACHE_DIR=${{runner.workspace}}/.ccache" >> "${GITHUB_ENV}"
echo "COMPILER_LAUNCHER=ccache" >> "${GITHUB_ENV}"
- name: cache ccache files
if: matrix.platform != 'windows-latest'
uses: actions/cache@v4
with:
path: ${{runner.workspace}}/.ccache
key:
${{ runner.os }}-${{ steps.ccache_cache_timestamp.outputs.timestamp}}
restore-keys: |
${{ runner.os }}-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
${{ runner.os }}-
### build the project ###
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
Expand Down Expand Up @@ -231,7 +192,7 @@ jobs:
Windows (zip, libSBML ${{env.LIBSBML_VERSION}},
${{env.ARTIFACT_NAME_SUFFIX}})-${{ strategy.job-index }}
path: ${{runner.workspace}}/install/*
retention-days: 1
retention-days: 7
if-no-files-found: error

- name: Upload MacOS binary archive
Expand All @@ -244,19 +205,19 @@ jobs:
path: |
${{runner.workspace}}/install/*
${{runner.workspace}}/build/r-binaries/*
retention-days: 1
retention-days: 7
if-no-files-found: error

- name: Upload Ubuntu binary archive
if: matrix.platform == 'ubuntu-latest'
uses: actions/upload-artifact@v4
with:
name:
Ubuntu nightly (zip, libSBML ${{env.LIBSBML_VERSION}},
Ubuntu (zip, libSBML ${{env.LIBSBML_VERSION}},
${{env.ARTIFACT_NAME_SUFFIX}})-${{ strategy.job-index }}
path: |
${{runner.workspace}}/install/*
retention-days: 1
retention-days: 7
if-no-files-found: error
manylinuxbuild:
if: github.repository_owner == 'sbmlteam'
Expand Down Expand Up @@ -359,7 +320,8 @@ jobs:
uses: actions/upload-artifact@v4
with:
name:
Manylinux nightly (zip, libSBML ${{env.LIBSBML_VERSION}},
Manylinux (zip, libSBML ${{env.LIBSBML_VERSION}},
${{env.ARTIFACT_NAME_SUFFIX}})-${{ strategy.job-index }}
path:
install/
retention-days: 7

0 comments on commit 4f255a9

Please sign in to comment.