22 lines
480 B
YAML
22 lines
480 B
YAML
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
|