Skip to content

Commit

Permalink
optimize Macos workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xujiajiadexiaokeai committed Feb 8, 2025
1 parent 395fe77 commit d509e8b
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,28 +306,24 @@ jobs:
allow_failure: true
files: "${{ github.workspace }}/build/src/libsimple.dylib, ${{ github.workspace }}/build/test/dict/jieba.dict.utf8"

# npm run
- uses: actions/setup-node@v4
with:
node-version: '20'

# - uses: actions/setup-python@v5
# with:
# python-version: '3.12' # Version range or exact version of a Python version to use, using SemVer's version range syntax
# npm run
- name: run node example
working-directory: ./examples/node/
run: |
brew install python-setuptools
npm install
npm run p -- --ext_path="${{ github.workspace }}/build/src/" --dict_path="${{ github.workspace }}/build/test/dict/"
# don't run this as it's toooo slow
# npm run b -- --ext_path="${{ github.workspace }}/build/src/" --dict_path="${{ github.workspace }}/build/test/dict/"
# python run
# - name: run python example
# working-directory: ./examples/python3/
# run: |
# python db_connector.py "${{ github.workspace }}/build/src/libsimple"
- uses: actions/setup-python@v5
with:
python-version: '3.13' # Version range or exact version of a Python version to use, using SemVer's version range syntax
- name: run python example
working-directory: ./examples/python3/
run: python db_connector.py "${{ github.workspace }}/build/src/libsimple"

- name: Package
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit d509e8b

Please sign in to comment.