Browse Source

Add basic continuous-integration flow

pull/550/head
Andrew Waterman 6 years ago
parent
commit
648e16e778
  1. 2
      .github/workflows/apt-packages.txt
  2. 28
      .github/workflows/continuous-integration.yml
  3. 11
      ci-tests/test-spike

2
.github/workflows/apt-packages.txt

@ -0,0 +1,2 @@
build-essential
device-tree-compiler

28
.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

11
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
Loading…
Cancel
Save