Skip to content

Commit

Permalink
Try add Github Action for Conan
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-PLACET committed Aug 20, 2024
1 parent 375f8d4 commit 88d8238
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/conan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Conan
on:
workflow_dispatch:
pull_request:
push:
branches: [main]

jobs:
setup-conan:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Conan Environment
uses: hankhsu1996/[email protected]

- name: Build the project
working-directory: test-project
run: |
conan profile detect --force
conan install . --output-folder=build --build=missing
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release
cmake --build .

0 comments on commit 88d8238

Please sign in to comment.