Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

WIP

WIP #9

Workflow file for this run

name: 'macOS'
on: push
jobs:
osx-sdk:
runs-on: macos-12.0
strategy:
matrix:
python-version: ['3.10']
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install system dependencies
run: |
brew install cmake ninja ccache
python -m pip install --upgrade pip setuptools wheel
- name: Get Date
id: get-date
run: |
echo "::set-output name=date::$(/bin/date -u "+%Y-%m-%d-%H;%M;%S")"
shell: bash
- name: Setup cache dir
shell: bash
run: |
mkdir -p ~/.ccache
- name: ccache cache files
uses: actions/[email protected]
with:
path: ~/.ccache
key: osx-${{ runner.os }}-${{ steps.get-date.outputs.date }}
restore-keys: |
osx-${{ runner.os }}-
- name: Upgrade pip
shell: bash
run: |
python -m pip install --upgrade pip
- name: Prepare dependencies
shell: bash
run: |
mkdir -p /tmp/third-party && cd /tmp/third-party
curl -LO https://data.romainthomas.fr/icdump/LLVM-14.0.6-Darwin-slim.tar.gz
curl -LO https://data.romainthomas.fr/icdump/LIEF-0.13.0-Darwin.tar.gz
tar xzvf LLVM-14.0.6-Darwin-slim.tar.gz
tar xzvf LIEF-0.13.0-Darwin.tar.gz
- name: Build Python ${{ matrix.python-version }} wheel (arm64)
shell: bash
env:
MACOSX_DEPLOYMENT_TARGET: "10.7"
CCACHE_DIR: ~/.ccache
CCACHE_MAXSIZE: 10.0G
CCACHE_CPP2: 1
CCACHE_COMPRESS: 1
run: |
bash $GITHUB_WORKSPACE/.github/py_osx.sh