ci: set ar for macos #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build-and-test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 20 | |
- name: Setup Python and Install distutils | |
id: py | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- run: pip3 install setuptools | |
env: | |
PYTHON: '${{ steps.py.outputs.python-path }}' | |
- name: Set macOS Build Environment | |
if: ${{ matrix.os == 'macos-latest' }} | |
run: | | |
export AR=/usr/bin/ar | |
- run: npm rebuild | |
env: | |
NODE_GYP_FORCE_PYTHON: '${{ steps.py.outputs.python-path }}' | |
- run: npm install | |
env: | |
NODE_GYP_FORCE_PYTHON: '${{ steps.py.outputs.python-path }}' | |
- run: npm test | |
env: | |
NODE_GYP_FORCE_PYTHON: '${{ steps.py.outputs.python-path }}' |