Skip to content

Commit

Permalink
try mac arm
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipDeegan committed Aug 13, 2024
1 parent a11e617 commit 338ac93
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
fail-fast: false
max-parallel: 4
matrix:
python-version: ['3.9', '3.10', '3.11'] # , '3.12' not ready
python-version: ['3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v3
Expand Down
23 changes: 16 additions & 7 deletions .github/workflows/build_osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,38 +20,47 @@ env:
jobs:
build:
name: Python ${{ matrix.python-version }}
runs-on: macos-latest
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
max-parallel: 4
max-parallel: 6
matrix:
os: [ macos-12, macos-13, macos-latest]
python-version: ['3.11', '3.12']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64

- name: info
run: |
python3 -V
clang -v
swig -version
swig -version || ( brew update && brew install swig && swig -version )
- name: pip
run: |
python3 -m pip install wheel pip --upgrade
python3 -m pip install -r requirements.txt
- name: build
- name: build_arm
if: matrix.os == 'macos-latest'
run: |
curl -Lo mkn https://github.com/mkn/mkn/releases/download/latest/mkn_osx
curl -Lo mkn https://github.com/mkn/mkn/releases/download/latest/mkn_arm_osx
chmod +x mkn
./mkn -C lib build -g 0 -dtOa "-fPIC -std=c++17"
- name: build_x86
if: matrix.os != 'macos-latest'
run: |
curl -Lo mkn https://github.com/mkn/mkn/releases/download/latest/mkn_x86_osx
chmod +x mkn
./mkn -C lib build -g 0 -dtOa "-fPIC -std=c++17"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
fail-fast: false
max-parallel: 4
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v3
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/merge_master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ env:
jobs:

build_linux:
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64
runs-on: ubuntu-20.04
container: quay.io/pypa/manylinux_2_28_x86_64:latest

strategy:
fail-fast: false
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
max-parallel: 4
matrix:
os: [windows-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12']

runs-on: ${{ matrix.os }}

Expand All @@ -86,7 +86,7 @@ jobs:
git config --global --add safe.directory '*'
python3 -V
python3 -m pip install -U pip
python3 -m pip install -U build twine wheel
python3 -m pip install -U build twine wheel setuptools
python3 -m pip install -U -r requirements.txt
- name: build windows
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v4
Expand All @@ -134,12 +134,13 @@ jobs:
python3 -m pip install -U pip
python3 -m pip install -U build twine wheel
python3 -m pip install -U -r requirements.txt
swig -version || ( brew update && brew install swig && swig -version )
- name: build macos
env:
MKN_PYTHON_LIB_EMBED: 1
run: |
curl -Lo mkn https://github.com/mkn/mkn/releases/download/latest/mkn_osx
curl -Lo mkn https://github.com/mkn/mkn/releases/download/latest/mkn_arm_osx
chmod +x mkn
PATH=$PWD:$PATH mkn -C lib build -g 0 -dtO 2 -a "-fPIC -std=c++17"
Expand Down Expand Up @@ -188,7 +189,7 @@ jobs:
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12']
runs-on: ${{ matrix.os }}
steps:
- name: Setup Python
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pythonpublish-osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12']
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pythonpublish-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12']
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion lib/mkn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ profile:
bsd_lib: ${bsd_largs}
win: -LTCG
mod: |
lang.python3{compile{with: numpy}, link{delete: CoreFoundation }}
lang.python3{compile:{with: numpy}, link:{delete: CoreFoundation }}
- name: tick.py
parent: arg
Expand Down

0 comments on commit 338ac93

Please sign in to comment.