Skip to content

Commit 90609b7

Browse files
authored
Merge pull request #3 from jay-tux/github-ci
Create c-cpp.yml
2 parents 2536620 + 56ede7e commit 90609b7

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/c-cpp.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: C/C++ CI
2+
3+
on:
4+
push:
5+
branches: [ root ]
6+
pull_request:
7+
branches: [ root ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-22.04
13+
14+
steps:
15+
- name: update
16+
if: ${{ env.ACT }}
17+
run: sudo apt update && sudo apt install python3 && sudo apt install cmake
18+
- name: Install pip3
19+
if: ${{ env.ACT }}
20+
run: curl https://bootstrap.pypa.io/get-pip.py >get-pip.py && python3 get-pip.py
21+
- name: Install Conan
22+
id: conan
23+
uses: turtlebrowser/get-conan@main
24+
- name: Conan version
25+
run: echo "${{ steps.conan.outputs.version }}"
26+
- uses: actions/checkout@v2
27+
- name: make test
28+
run: make test
29+
30+
# Note: the steps with `if: ${{ env.ACT }}` are for local setup only.

0 commit comments

Comments
 (0)