Gitea action #2

Open
noselasd wants to merge 2 commits from gitea-action into main
2 changed files with 26 additions and 0 deletions
Showing only changes of commit 106f1e9eb6 - Show all commits
+3
View File
@@ -0,0 +1,3 @@
FROM gcc:latest
WORKDIR /workspace
+23
View File
@@ -0,0 +1,23 @@
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 --load -t nob-build -f .gitea/Dockerfile .
- name: Build project
run: docker run --interactive=false --rm -v "$PWD":/workspace -w /workspace nob-build ./build.sh
CONTAINER_ID=$(docker run --detach --rm -v "$PWD":/workspace -w /workspace nob-build ./build.sh)
docker logs --follow $CONTAINER_ID
- name: Run smoketest binary
run: podman run --interactive=false --rm -v "$PWD":/workspace -w /workspace nob-build ./a.out