rust-raspberrypi-OS-tutorials/.github/workflows/test_unit.yml
Andre Richter bb78c779ca
Introducing Minipush, a raspbootcom replacement.
Gets rid of compiled C++, uses Ruby 💎
2020-01-14 20:45:41 +01:00

46 lines
941 B
YAML

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
rustup toolchain install nightly --component rust-src llvm-tools-preview
rustup default nightly
cargo install cargo-xbuild cargo-binutils
- name: Set up Ruby
run: |
gem install bundler
bundle install --retry 3 --without uart
- name: Make all
run: |
bundle exec ruby utils/devtool.rb test_unit