Get chemfiles from cache #109
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: CMake Python Binding | |
on: | |
push: | |
branches: [ "master", "dev", "dev-ndy", "dev-sge" ] | |
paths: ['lib/python_binding/**', '.github/workflows/cmake_python_binding.yml'] | |
env: | |
CMAKELISTS_DIR: ${{github.workspace}}/lib/python_binding | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest, macos-latest] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Get Conan | |
uses: turtlebrowser/[email protected] | |
- name: Create default profile | |
run: conan profile detect --force | |
- name: Add custom remote | |
run: | | |
conan remote add --insecure cano7782 ${{ secrets.CONAN_SERVER_HOST }} | |
conan remote login -p ${{ secrets.CONAN_SERVER_USER }} cano7782 ${{ secrets.CONAN_SERVER_PASSWORD }} | |
- name: Create package | |
working-directory: ${{env.CMAKELISTS_DIR}} | |
run: | | |
conan export ../util | |
conan export ../core | |
conan export ../app | |
conan export ../renderer | |
conan export ../io | |
conan create . --build=missing --settings=compiler.cppstd=20 | |
- name: Test | |
working-directory: ${{env.CMAKELISTS_DIR}} | |
run: conan create test --build=missing --settings=compiler.cppstd=20 | |
- name: Upload dependencies | |
working-directory: ${{env.CMAKELISTS_DIR}} | |
run: | | |
conan upload pybind11 -r=cano7782 |