Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wangfenjin committed Oct 6, 2024
1 parent 5fd1a34 commit 363a6fd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -366,15 +366,14 @@ jobs:
with:
allow_failure: true
files: "${{ github.workspace }}/../../_temp/macos/src/libsimple.dylib, ${{ github.workspace }}/../../_temp/macos/test/dict/jieba.dict.utf8"
- name: "Install distutils"
run: brew install python-setuptools
# npm run
- uses: actions/setup-node@v2
with:
node-version: '20'
- name: run node example
working-directory: ./examples/node/
run: |
brew install python-setuptools
npm install
npm run p -- --ext_path="${{ github.workspace }}/../../_temp/macos/src/" --dict_path="${{ github.workspace }}/../../_temp/macos/test/dict/"
# don't run this as it's toooo slow
Expand All @@ -386,7 +385,12 @@ jobs:
# python-version: '3.10' # 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 }}/../../_temp/macos/src/libsimple"
run: |
export PYTHON_CONFIGURE_OPTS="--enable-loadable-sqlite-extensions"
brew install sqlite3
export LDFLAGS="-L/opt/homebrew/opt/sqlite/lib"
export CPPFLAGS="-I/opt/homebrew/opt/sqlite/include"
python db_connector.py "${{ github.workspace }}/../../_temp/macos/src/libsimple"
- name: Package
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit 363a6fd

Please sign in to comment.