Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create c-cpp.yml #3

Merged
merged 12 commits into from
May 29, 2022
30 changes: 30 additions & 0 deletions .github/workflows/c-cpp.yml
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.