From 9514fa87407b670ac92c3f855201b399516ccd0e Mon Sep 17 00:00:00 2001 From: David Gonzalez Martin Date: Sun, 30 Jun 2024 22:03:41 +0200 Subject: [PATCH] Integrate CI --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ run.sh => compile.sh | 1 - debug.sh | 3 +++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml rename run.sh => compile.sh (92%) create mode 100755 debug.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e70726e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: + pull_request: + push: + branches: + - main + schedule: + - cron: "0 0 * * *" + +env: + TIMEOUT_MINUTES: 15 +jobs: + build_and_test: + runs-on: ubuntu-24.04 + timeout-minutes: 15 + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Build + run: | + set -ex + ./compile.sh + - name: Test + run: | + set -ex + ./build/nest diff --git a/run.sh b/compile.sh similarity index 92% rename from run.sh rename to compile.sh index adef565..b43a36c 100755 --- a/run.sh +++ b/compile.sh @@ -25,4 +25,3 @@ bootstrap/entry.S \ -ferror-limit=1 \ `#-ftime-report` \ -MJ $NEST_BUILD_DIR/compile_commands.json -gf2 -ex r $NEST_BUILD_DIR/$NEST_EXE_NAME diff --git a/debug.sh b/debug.sh new file mode 100755 index 0000000..70da335 --- /dev/null +++ b/debug.sh @@ -0,0 +1,3 @@ +#!/bin/sh +source ./compile.sh +gf2 -ex r $NEST_BUILD_DIR/$NEST_EXE_NAME