From 0baba000eb6e157f2d39f53edeb13a445c610d5e Mon Sep 17 00:00:00 2001 From: ccmywish Date: Wed, 13 Sep 2023 17:07:25 +0800 Subject: [PATCH] Create c-cpp.yml --- .github/workflows/c-cpp.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/c-cpp.yml diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 0000000..040a35c --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,29 @@ +name: C/C++ CI + +on: + push: + branches: [ "gh-pipeline" ] + pull_request: + branches: [ "gh-pipeline" ] + +jobs: + build: + + runs-on: [ubuntu-latest, macos-latest] + + steps: + - uses: actions/checkout@v3 + - name: make + run: make + + - name: Upload a Build Artifact + uses: actions/upload-artifact@v3.1.3 + with: + # Artifact name + name: chsrc + path: chsrc + # The desired behavior if no files are found using the provided path. + + warn: Output a warning but do not fail the action + error: Fail the action with an error message +