1
- name : Run Sage CI for Linux
1
+ name : Run Sage CI for Linux and macOS
2
2
3
3
# # This GitHub Actions workflow provides:
4
4
# #
5
5
# # - portability testing, by building and testing this project on many platforms
6
- # # (Linux variants)
6
+ # # (Linux variants, macOS )
7
7
# #
8
8
# # - continuous integration, by building and testing other software
9
9
# # that depends on this project.
@@ -37,6 +37,8 @@ name: Run Sage CI for Linux
37
37
on :
38
38
push :
39
39
tags :
40
+ branches :
41
+ - main
40
42
workflow_dispatch :
41
43
# Allow to run manually
42
44
57
59
runs-on : ubuntu-latest
58
60
steps :
59
61
- name : Check out ${{ env.SPKG }}
60
- uses : actions/checkout@v2
62
+ uses : actions/checkout@v3
61
63
with :
62
64
path : build/pkgs/${{ env.SPKG }}/src
63
65
- name : Install prerequisites
74
76
&& echo "sed -i.bak \"/pushdef.*LT_VERSION/s/3[0-9.]*/4/\" ../build/pkgs/python3/spkg-configure.m4" >> upstream/update-pkgs.sh \
75
77
&& echo "sed -i.bak \"/export.*proxy/d\" ../build/bin/sage-spkg" >> upstream/update-pkgs.sh \
76
78
&& ls -l upstream/
77
- - uses : actions/upload-artifact@v2
79
+ - uses : actions/upload-artifact@v3
78
80
with :
79
81
path : upstream
80
82
name : upstream
86
88
# Extra system packages to install. See available packages at
87
89
# https://github.com/sagemath/sage/tree/develop/build/pkgs
88
90
# 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"
90
92
# Sage distribution packages to build
91
93
targets : SAGE_CHECK=no SAGE_CHECK_PACKAGES="soplex,scipoptsuite,pyscipopt" pyscipopt
92
94
# Standard setting: Test the current beta release of Sage:
@@ -99,3 +101,13 @@ jobs:
99
101
# 'Package "sage-docker-..." is already associated with another repository.'
100
102
docker_push_repository : ghcr.io/${{ github.repository }}/pyscipopt
101
103
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