Skip to content

Commit 53d7e3f

Browse files
committed
.github/workflows/ci-sage.yml: Add macOS tests
1 parent d71e3bf commit 53d7e3f

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.github/workflows/ci-sage.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Run Sage CI for Linux
1+
name: Run Sage CI for Linux and macOS
22

33
## This GitHub Actions workflow provides:
44
##
55
## - portability testing, by building and testing this project on many platforms
6-
## (Linux variants)
6+
## (Linux variants, macOS)
77
##
88
## - continuous integration, by building and testing other software
99
## that depends on this project.
@@ -37,6 +37,8 @@ name: Run Sage CI for Linux
3737
on:
3838
push:
3939
tags:
40+
branches:
41+
- main
4042
workflow_dispatch:
4143
# Allow to run manually
4244

@@ -57,7 +59,7 @@ jobs:
5759
runs-on: ubuntu-latest
5860
steps:
5961
- name: Check out ${{ env.SPKG }}
60-
uses: actions/checkout@v2
62+
uses: actions/checkout@v3
6163
with:
6264
path: build/pkgs/${{ env.SPKG }}/src
6365
- name: Install prerequisites
@@ -74,7 +76,7 @@ jobs:
7476
&& echo "sed -i.bak \"/pushdef.*LT_VERSION/s/3[0-9.]*/4/\" ../build/pkgs/python3/spkg-configure.m4" >> upstream/update-pkgs.sh \
7577
&& echo "sed -i.bak \"/export.*proxy/d\" ../build/bin/sage-spkg" >> upstream/update-pkgs.sh \
7678
&& ls -l upstream/
77-
- uses: actions/upload-artifact@v2
79+
- uses: actions/upload-artifact@v3
7880
with:
7981
path: upstream
8082
name: upstream
@@ -86,7 +88,7 @@ jobs:
8688
# Extra system packages to install. See available packages at
8789
# https://github.com/sagemath/sage/tree/develop/build/pkgs
8890
# liblzma, bzip2, and libffi are python3 dependencies.
89-
extra_sage_packages: "patch cmake liblzma bzip2 libffi python3 onetbb"
91+
extra_sage_packages: "patch cmake gfortran openblas liblzma bzip2 libffi python3 onetbb"
9092
# Sage distribution packages to build
9193
targets: SAGE_CHECK=no SAGE_CHECK_PACKAGES="soplex,scipoptsuite,pyscipopt" pyscipopt
9294
# Standard setting: Test the current beta release of Sage:
@@ -99,3 +101,13 @@ jobs:
99101
# 'Package "sage-docker-..." is already associated with another repository.'
100102
docker_push_repository: ghcr.io/${{ github.repository }}/pyscipopt
101103
needs: [dist]
104+
105+
macos:
106+
# Use https://github.com/sagemath/sage/pull/37237
107+
uses: mkoeppe/sage/.github/workflows/macos.yml@ci-macos-2024
108+
with:
109+
targets: SAGE_CHECK=no SAGE_CHECK_PACKAGES="soplex,scipoptsuite,pyscipopt" pyscipopt
110+
sage_repo: sagemath/sage
111+
sage_ref: refs/pull/37237/head
112+
upstream_artifact: upstream
113+
needs: [dist]

0 commit comments

Comments
 (0)