aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/apt-packages.txt2
-rw-r--r--.github/workflows/continuous-integration.yml28
-rwxr-xr-xci-tests/test-spike11
3 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/apt-packages.txt b/.github/workflows/apt-packages.txt
new file mode 100644
index 0000000..e153391
--- /dev/null
+++ b/.github/workflows/apt-packages.txt
@@ -0,0 +1,2 @@
+build-essential
+device-tree-compiler
diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml
new file mode 100644
index 0000000..aeaf460
--- /dev/null
+++ b/.github/workflows/continuous-integration.yml
@@ -0,0 +1,28 @@
+# This file describes the GitHub Actions workflow for continuous integration of Spike.
+#
+# See
+# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions
+# for API reference documentation on this file format.
+
+name: Continuous Integration
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+
+
+jobs:
+ test:
+ name: Test Spike build
+ runs-on: ubuntu-20.04
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Install Dependencies
+ run: sudo xargs apt-get install -y < .github/workflows/apt-packages.txt
+
+ - run: ci-tests/test-spike
diff --git a/ci-tests/test-spike b/ci-tests/test-spike
new file mode 100755
index 0000000..3d5ed6d
--- /dev/null
+++ b/ci-tests/test-spike
@@ -0,0 +1,11 @@
+#!/bin/bash
+set -e
+
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
+
+mkdir build
+cd build
+mkdir install
+$DIR/../configure --prefix=`pwd`/install
+make -j4
+make install