-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from jay-tux/github-ci
Create c-cpp.yml
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: C/C++ CI | ||
|
||
on: | ||
push: | ||
branches: [ root ] | ||
pull_request: | ||
branches: [ root ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: update | ||
if: ${{ env.ACT }} | ||
run: sudo apt update && sudo apt install python3 && sudo apt install cmake | ||
- name: Install pip3 | ||
if: ${{ env.ACT }} | ||
run: curl https://bootstrap.pypa.io/get-pip.py >get-pip.py && python3 get-pip.py | ||
- name: Install Conan | ||
id: conan | ||
uses: turtlebrowser/get-conan@main | ||
- name: Conan version | ||
run: echo "${{ steps.conan.outputs.version }}" | ||
- uses: actions/checkout@v2 | ||
- name: make test | ||
run: make test | ||
|
||
# Note: the steps with `if: ${{ env.ACT }}` are for local setup only. |