Bump pypa/cibuildwheel from 2.19.2 to 2.21.0 #31
Workflow file for this run
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: Testing c++ only on ubuntu-latest | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '0 12 * * 0' | |
env: | |
SKBUILD_BUILD_OPTIONS: --verbose | |
jobs: | |
build-depends: | |
uses: ./.github/workflows/test-linux-dependencies.yml | |
build: | |
needs: build-depends | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Set up requirements & configuration variables | |
run: | | |
sudo apt-get update | |
sudo apt-get install build-essential cmake | |
pip install --upgrade pip wheel build | |
git submodule update --init --recursive | |
echo "SKBUILD_BUILD_OPTIONS=${{ env.SKBUILD_BUILD_OPTIONS }}" >> "$GITHUB_ENV" | |
### libcasm-global ### | |
- name: restore libcasm-global cache | |
id: cache-libcasm-global-restore | |
uses: actions/cache/restore@v4 | |
with: | |
path: CASMcode_global/dist | |
key: ${{ runner.os }}-libcasm-global-v2-0-5 | |
### libcasm-composition ### | |
- name: restore libcasm-composition cache | |
id: cache-libcasm-composition-restore | |
uses: actions/cache/restore@v4 | |
with: | |
path: CASMcode_composition/dist | |
key: ${{ runner.os }}-libcasm-composition-v2-0a3 | |
### libcasm-xtal ### | |
- name: restore libcasm-xtal cache | |
id: cache-libcasm-xtal-restore | |
uses: actions/cache/restore@v4 | |
with: | |
path: CASMcode_crystallography/dist | |
key: ${{ runner.os }}-libcasm-xtal-v2-0a11 | |
### libcasm-clexulator ### | |
- name: restore libcasm-clexulator cache | |
id: cache-libcasm-clexulator-restore | |
uses: actions/cache/restore@v4 | |
with: | |
path: CASMcode_clexulator/dist | |
key: ${{ runner.os }}-libcasm-clexulator-v2-0a5 | |
### libcasm-configuration ### | |
- name: restore libcasm-configuration cache | |
id: cache-libcasm-configuration-restore | |
uses: actions/cache/restore@v4 | |
with: | |
path: CASMcode_configuration/dist | |
key: ${{ runner.os }}-libcasm-configuration-v2-0a5 | |
### libcasm-monte ### | |
- name: restore libcasm-monte cache | |
id: cache-libcasm-monte-restore | |
uses: actions/cache/restore@v4 | |
with: | |
path: CASMcode_monte/dist | |
key: ${{ runner.os }}-libcasm-monte-v2-0a2 | |
- name: Install CASM dependencies | |
run: | | |
pip install CASMcode_global/dist/*.whl | |
pip install CASMcode_composition/dist/*.whl | |
pip install CASMcode_crystallography/dist/*.whl | |
pip install CASMcode_clexulator/dist/*.whl | |
pip install CASMcode_configuration/dist/*.whl | |
pip install CASMcode_monte/dist/*.whl | |
pip install -r build_requirements.txt | |
- name: configure | |
shell: bash | |
run: | | |
mkdir build_cxx_only | |
cd build_cxx_only | |
cmake -DCMAKE_BUILD_TYPE=Release .. | |
- name: make | |
shell: bash | |
run: | | |
cd build_cxx_only | |
make -j4 VERBOSE=1 | |
- name: install | |
shell: bash | |
run: | | |
cd build_cxx_only | |
make install | |
- name: configure tests | |
shell: bash | |
run: | | |
mkdir build_cxx_test | |
cd build_cxx_test | |
cmake -DCMAKE_BUILD_TYPE=Release ../tests | |
- name: make tests | |
shell: bash | |
run: | | |
cd build_cxx_test | |
make -j4 VERBOSE=1 | |
- name: run tests | |
shell: bash | |
run: | | |
cd build_cxx_test | |
export CASM_PREFIX=$(python -m libcasm.casmglobal --prefix) | |
make test | |
- name: upload test log | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: libcasm-monte-cxx-test-log | |
path: build_cxx_test/Testing/Temporary/LastTest.log |