Skip to content

Commit

Permalink
Update CI to use modern Python build/install
Browse files Browse the repository at this point in the history
  • Loading branch information
swt2c committed Sep 13, 2023
1 parent 5762391 commit 3c21eb0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get install libcurl4-openssl-dev libhidapi-dev libzip-dev
run: |
sudo apt-get install libcurl4-openssl-dev libhidapi-dev libzip-dev
sudo pip install build
- name: Build libconcord
run: |
cd libconcord
Expand All @@ -19,7 +21,8 @@ jobs:
- name: Build libconcord Python bindings
run: |
cd libconcord/bindings/python
sudo python3 setup.py install
python3 -m build
sudo pip install dist/*.whl
python3 -c 'import libconcord; print(libconcord)'
cd -
- name: Build concordance
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: brew install autoconf automake hidapi libzip
run: |
brew install autoconf automake hidapi libzip
pip install build
- name: Build libconcord
run: |
cd libconcord
Expand All @@ -18,7 +20,8 @@ jobs:
- name: Build libconcord Python bindings
run: |
cd libconcord/bindings/python
sudo python3 setup.py install
python3 -m build
sudo pip install dist/*.whl
python3 -c 'import libconcord; print(libconcord)'
cd -
- name: Build concordance
Expand Down

0 comments on commit 3c21eb0

Please sign in to comment.