Skip to content

Commit

Permalink
.github/workflows/ci-sage.yml: Add macOS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Feb 12, 2024
1 parent d71e3bf commit 53d7e3f
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/ci-sage.yml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -37,6 +37,8 @@ name: Run Sage CI for Linux
on:
push:
tags:
branches:
- main
workflow_dispatch:
# Allow to run manually

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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]

0 comments on commit 53d7e3f

Please sign in to comment.