build zerr-core static library #16
This file contains hidden or 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 zerr-core static library | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'core/**' | |
| jobs: | |
| build-library: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v3 | |
| - name: Set up Conan | |
| run: | | |
| pip install conan | |
| conan profile detect | |
| - name: Install Dependencies | |
| working-directory: core | |
| run: | | |
| conan install . --output-folder=build --build=missing | |
| - name: Build Static Library | |
| working-directory: core | |
| run: | | |
| cd build/ | |
| cmake .. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release | |
| cmake --build . | |
| make install | |
| - name: Upload zerr-core library | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: zerr-core | |
| path: core/lib/ | |
| retention-days: 1 |