aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-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