Skip to content

Commit

Permalink
GA
Browse files Browse the repository at this point in the history
  • Loading branch information
FI-Mihej committed Mar 23, 2024
1 parent ad5d974 commit 9a2e728
Showing 1 changed file with 41 additions and 42 deletions.
83 changes: 41 additions & 42 deletions .github/workflows/build__macos__shell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,52 +7,51 @@ on:
branches: [ master ]

jobs:
build_wheels_shell__macos_x64__cpython:
name: Build Cengal Shell wheels on ${{ matrix.os }} for CPython ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# macos-13 is an intel runner, macos-14 is apple silicon
os: [macos-13]
# python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.9']
# build_wheels_shell__macos_x64__cpython:
# name: Build Cengal Shell wheels on ${{ matrix.os }} for CPython ${{ matrix.python-version }}
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# # macos-13 is an intel runner, macos-14 is apple silicon
# os: [macos-13]
# python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v4
# steps:
# - uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}

- name: Install basic Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
python -m pip install --upgrade wheel
# - name: Install basic Python dependencies
# run: |
# python -m pip install --upgrade pip
# python -m pip install --upgrade setuptools
# python -m pip install --upgrade wheel

- name: Prepare Setup Shell
run: |
chmod +x ./prepare__setup_shell.sh
./prepare__setup_shell.sh
chmod +x ./rename_wheel__github_actions__macos__cpython.sh
# - name: Prepare Setup Shell
# run: |
# chmod +x ./prepare__setup_shell.sh
# ./prepare__setup_shell.sh
# chmod +x ./rename_wheel__github_actions__macos__cpython.sh

- name: Build wheels
run: |
python -m pip install -r ./requirements.txt
mkdir ./wheelhouse_temp/
export ARCHFLAGS="-arch x86_64"
python -m pip wheel . -w ./wheelhouse_temp/ -v -v -v
ls -la ./wheelhouse_temp/
./rename_wheel__github_actions__macos__cpython.sh ${{ matrix.python-version }} ${{ matrix.os }}
mkdir ./wheelhouse/
cp -R ./wheelhouse_temp/cengal-*.whl ./wheelhouse/
ls -la ./wheelhouse/
# - name: Build wheels
# run: |
# python -m pip install -r ./requirements.txt
# mkdir ./wheelhouse_temp/
# export ARCHFLAGS="-arch x86_64"
# python -m pip wheel . -w ./wheelhouse_temp/ -v -v -v
# ls -la ./wheelhouse_temp/
# ./rename_wheel__github_actions__macos__cpython.sh ${{ matrix.python-version }} ${{ matrix.os }}
# mkdir ./wheelhouse/
# cp -R ./wheelhouse_temp/cengal-*.whl ./wheelhouse/
# ls -la ./wheelhouse/

- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-cengal-shell-${{ matrix.os }}-Py_${{ matrix.python-version }}-${{ strategy.job-index }}-${{ github.run_number }}-${{ github.run_attempt }}
path: ./wheelhouse/*.whl
# - uses: actions/upload-artifact@v4
# with:
# name: cibw-wheels-cengal-shell-${{ matrix.os }}-Py_${{ matrix.python-version }}-${{ strategy.job-index }}-${{ github.run_number }}-${{ github.run_attempt }}
# path: ./wheelhouse/*.whl

# build_wheels_shell__macos_arm64__cpython:
# name: Build Cengal Shell wheels on ${{ matrix.os }} for CPython ${{ matrix.python-version }}
Expand Down Expand Up @@ -108,7 +107,7 @@ jobs:
# macos-13 is an intel runner, macos-14 is apple silicon
os: [macos-13]
# python-version: ['pypy-3.8', 'pypy-3.9', 'pypy-3.10']
python-version: ['pypy-3.8']
python-version: ['pypy-3.9', 'pypy-3.10']

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -155,7 +154,7 @@ jobs:
# macos-13 is an intel runner, macos-14 is apple silicon
os: [macos-14]
# python-version: ['pypy-3.8', 'pypy-3.9', 'pypy-3.10']
python-version: ['pypy-3.8']
python-version: ['pypy-3.9', 'pypy-3.10']

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 9a2e728

Please sign in to comment.