@@ -0,0 +1,3 @@
|
||||
FROM gcc:latest
|
||||
|
||||
WORKDIR /workspace
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user