diff --git a/.gitea/Dockerfile b/.gitea/Dockerfile new file mode 100644 index 0000000..257c3f8 --- /dev/null +++ b/.gitea/Dockerfile @@ -0,0 +1,3 @@ +FROM gcc:latest + +WORKDIR /workspace diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..b79c046 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,21 @@ +name: build + +on: + push: + pull_request: + +jobs: + smoketest: + runs-on: x86_64 + steps: + - name: Checkout + uses: actions/checkout@v7 + + - name: Build container image + run: docker build -t nob-build -f .gitea/Dockerfile . + + - name: Build project + run: docker run --rm -v "$PWD":/workspace -w /workspace nob-build ./build.sh + + - name: Run smoketest binary + run: docker run --rm -v "$PWD":/workspace -w /workspace nob-build ./a.out