Skip to content

Commit

Permalink
Build only 64 bit in ci (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
surgura authored Oct 10, 2023
1 parent 9009d53 commit 15c798e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 30 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ jobs:
- uses: actions/setup-python@v3

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.15.0
run: python -m pip install cibuildwheel==2.16.2

- name: Build wheels
run: python -m cibuildwheel --output-dir dist
env:
CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* cp312-* # build for 3.8 and higher
CIBW_ARCHS_MACOS: x86_64 arm64 # explicitly also build for mac arm processors
CIBW_ARCHS_WINDOWS: AMD64
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_ARCHS_LINUX: x86_64

- uses: actions/upload-artifact@v3
with:
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: dependencies
run: sudo apt install -y libboost-all-dev
- name: cmake
run: cmake -B build -DENABLE_TESTING=ON
- name: build
run: cmake --build build
- name: test
run: cd build && ctest
- name: install
run: sudo cmake --build build --target install
- name: dependencies
run: sudo apt install -y libboost-all-dev
- name: cmake
run: cmake -B build -DENABLE_TESTING=ON
- name: build
run: cmake --build build
- name: test
run: cd build && ctest
- name: install
run: sudo cmake --build build --target install
34 changes: 17 additions & 17 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: dependencies
run: sudo apt install -y libboost-all-dev python3-pybind11 pybind11-dev
- name: pip install
run: pip install .
- name: test import
run: cd tests/python && ./test_import.py
- name: test raw genome
run: cd tests/python && ./test_raw_genome.py
- name: test xor
run: cd tests/python && ./test_xor.py
- name: configure tests
run: cmake -B build -DGENERATE_PYTHON_BINDINGS=ON -DENABLE_TESTING=ON
- name: build tests
run: cmake --build build
- name: run cmake tests
run: cmake --build build --target test
- name: dependencies
run: sudo apt install -y libboost-all-dev python3-pybind11 pybind11-dev
- name: pip install
run: pip install .
- name: test import
run: cd tests/python && ./test_import.py
- name: test raw genome
run: cd tests/python && ./test_raw_genome.py
- name: test xor
run: cd tests/python && ./test_xor.py
- name: configure tests
run: cmake -B build -DGENERATE_PYTHON_BINDINGS=ON -DENABLE_TESTING=ON
- name: build tests
run: cmake --build build
- name: run cmake tests
run: cmake --build build --target test

0 comments on commit 15c798e

Please sign in to comment.