2020-01-01 22:38:27 +00:00
|
|
|
name: Unit-Tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths-ignore:
|
|
|
|
- 'utils/**'
|
|
|
|
- 'doc/**'
|
|
|
|
- 'docker/**'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths-ignore:
|
|
|
|
- 'utils/**'
|
|
|
|
- 'doc/**'
|
|
|
|
- 'docker/**'
|
|
|
|
schedule:
|
|
|
|
- cron: '0 5 * * *'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Run unit tests
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Set up Ruby 2.x
|
|
|
|
uses: actions/setup-ruby@v1
|
|
|
|
with:
|
|
|
|
ruby-version: 2.x
|
|
|
|
- name: Set up Rust nightly
|
|
|
|
run: |
|
|
|
|
rustup self update
|
2020-04-07 21:17:48 +00:00
|
|
|
rustup toolchain install nightly --component llvm-tools-preview
|
2020-01-01 22:38:27 +00:00
|
|
|
rustup default nightly
|
2020-04-07 21:17:48 +00:00
|
|
|
rustup target add aarch64-unknown-none-softfloat
|
|
|
|
cargo install cargo-binutils
|
2020-01-09 21:11:56 +00:00
|
|
|
- name: Set up Ruby
|
|
|
|
run: |
|
|
|
|
gem install bundler
|
2020-01-14 19:45:41 +00:00
|
|
|
bundle install --retry 3 --without uart
|
2020-01-01 22:38:27 +00:00
|
|
|
- name: Make all
|
|
|
|
run: |
|
2020-01-09 21:11:56 +00:00
|
|
|
bundle exec ruby utils/devtool.rb test_unit
|