Skip to content

Commit

Permalink
use gh runners for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
haampie committed Oct 16, 2024
1 parent 9198b94 commit 06c0c45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 48 deletions.
47 changes: 4 additions & 43 deletions .github/workflows/clingo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ concurrency:
cancel-in-progress: true

jobs:
macos_clingo_x86_64:
runs-on: macos-latest
macos_clingo:
runs-on: ${{ matrix.runner }}
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
runner: ["macos-13", "macos-14"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
Expand All @@ -46,46 +47,6 @@ jobs:
name: clingo_binary_mirror
path: binary-mirror

macos_clingo_aarch64:
runs-on: ["self-hosted", "macOS", "ARM64"]
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Prepare Spack
env:
PYENV_VERSION: ${{ matrix.python-version }}
run: |
export PATH=/Users/spack-bootstrap-runner/homebrew/bin:/Users/spack-bootstrap-runner/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
export PATH="$(pyenv prefix)/bin:$PATH"
python3 --version
brew install cmake bison
export PATH="/Users/spack-bootstrap-runner/homebrew/opt/bison/bin:$PATH"
pyenv exec pip install --upgrade pip
git clone https://github.com/spack/spack.git
git -C spack checkout -b docker-reference c710a1597f3566ab850d0ee8c82e71af04a08f9e
. spack/share/spack/setup-env.sh
spack external find --not-buildable cmake bison
spack config add "config:install_tree:padded_length:256"
- name: Install clingo
env:
PYENV_VERSION: ${{ matrix.python-version }}
run: |
export PATH=/Users/spack-bootstrap-runner/homebrew/bin:/Users/spack-bootstrap-runner/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
export PATH="$(pyenv prefix)/bin:$PATH"
python3 --version
. spack/share/spack/setup-env.sh
spack python clingo/scripts/install_clingo.py
spack buildcache push --unsigned ./binary-mirror clingo-bootstrap
- uses: actions/upload-artifact@v3
with:
name: clingo_binary_mirror
path: binary-mirror


manylinux2014:
runs-on: ["self-hosted", "Linux"]
Expand Down Expand Up @@ -146,7 +107,7 @@ jobs:

clingo_json:
runs-on: ubuntu-latest
needs: [ upload-manylinux2014, macos_clingo_x86_64, macos_clingo_aarch64 ]
needs: [ upload-manylinux2014, macos_clingo ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/gnupg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,12 @@ jobs:
# 2. Target architectures
matrix:
runner: [
["macos-latest", "x86_64"],
[["self-hosted", "macOS", "ARM64"], "aarch64"]
["macos-13", "x86_64"],
["macos-14", "aarch64"]
]
steps:
- uses: actions/checkout@v4
- run: |
if [[ ${{ matrix.runner[1] }} == "aarch64" ]] ; then
export PATH=/Users/spack-bootstrap-runner/homebrew/bin:/Users/spack-bootstrap-runner/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
fi
brew install gawk perl
git clone https://github.com/spack/spack.git
git -C spack checkout -b docker-reference c710a1597f3566ab850d0ee8c82e71af04a08f9e
Expand Down

0 comments on commit 06c0c45

Please sign in to comment.