aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-08-26 10:34:20 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-09-24 22:40:31 +0200
commit052f73e4e5c7f6266bf80f392ac593046e2d8d2c (patch)
tree1317d3e7297f3df7339e0f775b2213de240d0863 /.github
parent4038ec5662a5b1ebe652e9170069e3f2f79c7e71 (diff)
downloadfbos-052f73e4e5c7f6266bf80f392ac593046e2d8d2c.tar.gz
fbos-052f73e4e5c7f6266bf80f392ac593046e2d8d2c.zip
Add CI job
This will ensure that the code style is preserved and that commits being pushed at least build successfully. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..e278d5f
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,29 @@
+name: CI
+
+on:
+ push:
+ branches: [main]
+ pull_request:
+ branches: [main]
+
+env:
+ CROSS_COMPILE: riscv64-linux-gnu-
+ CC_SUFFIX: -14
+
+jobs:
+ test:
+ name: Continuous Integration
+ runs-on: ubuntu-24.04
+
+ steps:
+ - name: Checkout Code
+ uses: actions/checkout@v4
+
+ - name: Install dependencies from Ubuntu sources
+ run: sudo apt-get install clang-format gcc-14-riscv64-linux-gnu
+
+ - name: Lint
+ run: make lint V=1
+
+ - name: Check that it builds
+ run: make V=1