Skip to content

Commit 0efd3ae

Browse files
Erwin Nindlpboettch
Erwin Nindl
authored andcommitted
Build conan package with Github actions
1 parent 1c126b6 commit 0efd3ae

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/github-actions.yml

+17
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,20 @@ jobs:
6464
run: cmake --build build --target all -j$(nproc)
6565
- name: test
6666
run: cd build && ctest
67+
build_conan:
68+
runs-on: ubuntu-latest
69+
container: ghcr.io/nlohmann/json-ci:v2.4.0
70+
steps:
71+
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
72+
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub."
73+
- run: echo "🔎 Branch name is ${{ github.ref }} and repository is ${{ github.repository }}."
74+
- name: Clone json-schema-validator
75+
uses: actions/checkout@v3
76+
- uses: actions/setup-python@v4
77+
with:
78+
python-version: '3.10'
79+
- run: python -m pip install --upgrade conan
80+
- run: conan config init
81+
- run: conan profile update settings.compiler.libcxx=libstdc++11 default
82+
- name: conan create package
83+
run: conan create .

0 commit comments

Comments
 (0)