From 4f255a9a546e57e929a77a23424cf5eb02ca1366 Mon Sep 17 00:00:00 2001 From: "Frank T. Bergmann" Date: Fri, 10 Jan 2025 08:55:49 +0100 Subject: [PATCH] - run build weekly no ccache, install mono on ubuntu --- .github/workflows/store-artefact.yml | 60 +++++----------------------- 1 file changed, 11 insertions(+), 49 deletions(-) diff --git a/.github/workflows/store-artefact.yml b/.github/workflows/store-artefact.yml index a2c812291..d9f85b058 100644 --- a/.github/workflows/store-artefact.yml +++ b/.github/workflows/store-artefact.yml @@ -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 @@ -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 @@ -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 @@ -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}" @@ -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 @@ -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 @@ -244,7 +205,7 @@ 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 @@ -252,11 +213,11 @@ jobs: 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' @@ -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