diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..f1895bd --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,20 @@ +name: libakerror CI Build +run-name: ${{ gitea.actor }} libakerror test +on: [push] + +jobs: + cmake_build: + runs-on: ubuntu-latest + steps: + - run: echo "Triggered by ${{ gitea.event_name }} from ${{ gitea.repository }}@${{ gitea.ref }}. Building on ${{ runner.os }}." + - name: Check out repository code + uses: actions/checkout@v4 + - name: cmake build + run: | + mkdir installdir + sudo apt-get update + sudo apt-get install cmake gcc + cmake -S . -B build -DCMAKE_INSTALL_PREFIX=installdir + cmake --build build + cmake --install build + - run: echo "🍏 This job's status is ${{ job.status }}." diff --git a/README.md b/README.md index ea8570d..c7533df 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ This library provides a TRY/CATCH style exception handling mechanism for C. +![build badge](https://source.starfort.tech/{owner}/{repo}/actions/workflows/{workflow_file}/badge.svg?branch={branch}&event={event}&style={style}) + # Why? There is nothing wrong with C as it is. This library does not claim to fix some problem with C.