@@ -15,84 +15,50 @@ concurrency:
1515 group : clingo-${{ github.ref }}
1616 cancel-in-progress : true
1717
18+ env :
19+ SPACK_COLOR : always
20+ SPACK_BACKTRACE : please
21+ PYTHONUNBUFFERED : 1
22+
1823jobs :
19- macos_clingo_x86_64 :
20- runs-on : macos-latest
24+ macos_clingo :
25+ runs-on : ${{ matrix.runner[0] }}
2126 strategy :
2227 matrix :
23- python-version : ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
28+ python-version : ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
29+ # runner + macOS deployment target
30+ runner : [["macos-13", "10.13"], ["macos-14", "11"]]
31+ exclude :
32+ - python-version : " 3.6"
33+ runner : ["macos-14", "11"]
34+ - python-version : " 3.7"
35+ runner : ["macos-14", "11"]
36+ env :
37+ MACOSX_DEPLOYMENT_TARGET : ${{ matrix.runner[1] }}
2438 steps :
2539 - uses : actions/checkout@v4
40+ - uses : actions/checkout@v4
41+ with :
42+ repository : spack/spack
43+ path : spack
44+ ref : c710a1597f3566ab850d0ee8c82e71af04a08f9e
45+ # See https://github.com/actions/setup-python/issues/960
46+ - name : Workaround for broken Python versions from setup-python
47+ run : brew install gettext zlib
2648 - uses : actions/setup-python@v4
2749 with :
2850 python-version : ${{ matrix.python-version }}
29- - name : Prepare Spack
51+ - name : Install clingo-bootstrap
3052 run : |
3153 pip install --upgrade pip
3254 brew install bison
33- export PATH="/usr/local/opt/bison/bin:$PATH"
34- git clone https://github.com/spack/spack.git spack-src
35- cd spack-src && git checkout -b docker-reference 08da9a854a53542e1f71d30ed8d14d6b7d18119f
36- if [ ${{ matrix.python-version }} = "3.12" ] ; then
37- # distutils -> setuptools patch
38- wget -q -O - https://github.com/spack/spack/commit/1452e927719ddbbf07118e88f9fd8d18fabf0fae.patch | git apply -v
39- fi
40- cd ..
41- . spack-src/share/spack/setup-env.sh
55+ export PATH="$(brew --prefix bison):$PATH"
56+ . spack/share/spack/setup-env.sh
4257 spack external find --not-buildable cmake bison
4358 spack config add "config:install_tree:padded_length:256"
44- - name : Install clingo
45- run : |
46- . spack-src/share/spack/setup-env.sh
47- spack python clingo/scripts/install_clingo.py
48- mkdir -p binary-mirror
49- spack buildcache push --unsigned --force $PWD/binary-mirror clingo-bootstrap
50- - uses : actions/upload-artifact@v3
51- with :
52- name : clingo_binary_mirror
53- path : binary-mirror
5459
55- macos_clingo_aarch64 :
56- runs-on : ["self-hosted", "macOS", "ARM64"]
57- strategy :
58- matrix :
59- python-version : ["3.6.15", "3.7.14", "3.8.14", "3.9.14", "3.10.7", "3.11.5", "3.12.0"]
60- steps :
61- - uses : actions/checkout@v4
62- - name : Prepare Spack
63- env :
64- PYENV_VERSION : ${{ matrix.python-version }}
65- run : |
66- export PATH=/Users/spack-bootstrap-runner/homebrew/bin:/Users/spack-bootstrap-runner/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
67- export PATH="$(pyenv prefix)/bin:$PATH"
68- python --version
69-
70- brew install cmake bison
71- export PATH="/Users/spack-bootstrap-runner/homebrew/opt/bison/bin:$PATH"
72-
73- pyenv exec pip install --upgrade pip
74-
75- git clone https://github.com/spack/spack.git spack-src
76- cd spack-src && git checkout -b docker-reference 08da9a854a53542e1f71d30ed8d14d6b7d18119f
77- if [ ${{ matrix.python-version }} = "3.12.0" ] ; then
78- # distutils -> setuptools patch
79- wget -q -O - https://github.com/spack/spack/commit/1452e927719ddbbf07118e88f9fd8d18fabf0fae.patch | git apply -v
80- fi
81- cd ..
82- . spack-src/share/spack/setup-env.sh
83- spack external find --not-buildable cmake bison
84- spack config add "config:install_tree:padded_length:256"
85- - name : Install clingo
86- env :
87- PYENV_VERSION : ${{ matrix.python-version }}
88- run : |
89- export PATH=/Users/spack-bootstrap-runner/homebrew/bin:/Users/spack-bootstrap-runner/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
90- export PATH="$(pyenv prefix)/bin:$PATH"
91- python --version
92- . spack-src/share/spack/setup-env.sh
9360 spack python clingo/scripts/install_clingo.py
94- mkdir -p binary-mirror
95- spack buildcache push --unsigned --force $PWD/binary-mirror clingo-bootstrap
61+ spack buildcache push --unsigned ./binary-mirror clingo-bootstrap
9662 - uses : actions/upload-artifact@v3
9763 with :
9864 name : clingo_binary_mirror
@@ -150,17 +116,15 @@ jobs:
150116 SPACK_MANYLINUX2014_TAG : ${{ needs.manylinux2014.outputs.spack_manylinux_tag }}
151117 steps :
152118 - uses : actions/checkout@v4
153- - run : |
154- . ./clingo/scripts/copy_mirror_manylinux2014.sh
119+ - run : ./copy_mirror_manylinux2014.sh
155120 - uses : actions/upload-artifact@v3
156121 with :
157122 name : clingo_binary_mirror
158- path : |
159- binary-mirror
123+ path : binary-mirror
160124
161125 clingo_json :
162126 runs-on : ubuntu-latest
163- needs : [ upload-manylinux2014, macos_clingo_x86_64, macos_clingo_aarch64 ]
127+ needs : [ upload-manylinux2014, macos_clingo ]
164128 steps :
165129 - uses : actions/checkout@v4
166130 - uses : actions/setup-python@v4
@@ -171,9 +135,8 @@ jobs:
171135 name : clingo_binary_mirror
172136 - run : |
173137 pip install ruamel.yaml
174- python clingo/scripts/clingo_json.py
138+ python3 clingo/scripts/clingo_json.py
175139 - uses : actions/upload-artifact@v3
176140 with :
177141 name : clingo_manifest
178- path : |
179- clingo.json
142+ path : clingo.json
0 commit comments