From 53d7e3fd6b91e7eee0fdf5011b7a078336771433 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 11 Feb 2024 20:11:43 -0800 Subject: [PATCH] .github/workflows/ci-sage.yml: Add macOS tests --- .github/workflows/ci-sage.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-sage.yml b/.github/workflows/ci-sage.yml index b355544ee..1b5760a3b 100644 --- a/.github/workflows/ci-sage.yml +++ b/.github/workflows/ci-sage.yml @@ -1,9 +1,9 @@ -name: Run Sage CI for Linux +name: Run Sage CI for Linux and macOS ## This GitHub Actions workflow provides: ## ## - portability testing, by building and testing this project on many platforms -## (Linux variants) +## (Linux variants, macOS) ## ## - continuous integration, by building and testing other software ## that depends on this project. @@ -37,6 +37,8 @@ name: Run Sage CI for Linux on: push: tags: + branches: + - main workflow_dispatch: # Allow to run manually @@ -57,7 +59,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out ${{ env.SPKG }} - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: path: build/pkgs/${{ env.SPKG }}/src - name: Install prerequisites @@ -74,7 +76,7 @@ jobs: && echo "sed -i.bak \"/pushdef.*LT_VERSION/s/3[0-9.]*/4/\" ../build/pkgs/python3/spkg-configure.m4" >> upstream/update-pkgs.sh \ && echo "sed -i.bak \"/export.*proxy/d\" ../build/bin/sage-spkg" >> upstream/update-pkgs.sh \ && ls -l upstream/ - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: path: upstream name: upstream @@ -86,7 +88,7 @@ jobs: # Extra system packages to install. See available packages at # https://github.com/sagemath/sage/tree/develop/build/pkgs # liblzma, bzip2, and libffi are python3 dependencies. - extra_sage_packages: "patch cmake liblzma bzip2 libffi python3 onetbb" + extra_sage_packages: "patch cmake gfortran openblas liblzma bzip2 libffi python3 onetbb" # Sage distribution packages to build targets: SAGE_CHECK=no SAGE_CHECK_PACKAGES="soplex,scipoptsuite,pyscipopt" pyscipopt # Standard setting: Test the current beta release of Sage: @@ -99,3 +101,13 @@ jobs: # 'Package "sage-docker-..." is already associated with another repository.' docker_push_repository: ghcr.io/${{ github.repository }}/pyscipopt needs: [dist] + + macos: + # Use https://github.com/sagemath/sage/pull/37237 + uses: mkoeppe/sage/.github/workflows/macos.yml@ci-macos-2024 + with: + targets: SAGE_CHECK=no SAGE_CHECK_PACKAGES="soplex,scipoptsuite,pyscipopt" pyscipopt + sage_repo: sagemath/sage + sage_ref: refs/pull/37237/head + upstream_artifact: upstream + needs: [dist]