Move repo-specific variables out of clone- and update- cmake scripts. #198
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: Build and Test | |
on: push | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.7", "3.8", "3.9", "3.10"] | |
defaults: | |
run: | |
shell: bash | |
name: ${{ matrix.os }} with py${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: bigladder/github-actions/setup-python-poetry@main | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Build and test | |
run: | | |
poetry run doit | |
poetry run doit libtk205 --PAT "${{secrets.CI_PA_TOKEN}}" | |
poetry run doit libtk205_tests | |
- name: Export libtk205 source | |
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10' | |
run: cmake -DPA_TOKEN="${{secrets.CI_PA_TOKEN}}" -DPROJECT_SOURCE_DIR="${{github.workspace}}" -Drepo_name=libtk205 -Dupload_repo=https://github.com/open205/libtk205 -P "${{github.workspace}}/cmake/update_lib_repo_ci.cmake" | |