-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (59 loc) · 1.68 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
on:
push:
branches:
- rrOSt-testing
pull_request:
branches:
- rrOSt-testing
jobs:
test_os:
name: Run all tests on the OS
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
working-directory: ./os
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0.3"
bundler: "2.4.19"
bundler-cache: false
rubygems: "3.2.22"
# Setup Ruby Environment
- name: Set Bundler Path
run: bundle config set --local path '.vendor/bundle'
working-directory: .
- name: Tell Bundler not to use development?
run: bundle config set --local without 'development'
working-directory: .
- name: Install Ruby Gems
run: bundle install
working-directory: .
# Setup Cargo Environment
- name: Install latest Nightly Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-10-13
override: true
components: rust-src,llvm-tools-preview, rustfmt, clippy
- uses: Swatinem/rust-cache@v2
with:
workspaces: "./os"
cache-targets: "true"
cache-all-crates: "true"
- name: Install OS target
run: rustup target add aarch64-unknown-none-softfloat
- name: Install needed crates
uses: actions-rs/cargo@v1
with:
command: install
args: --locked cargo-binutils rustfilt
# Run All OS Tests
- name: Run boot test
run: make test_boot
- name: Run unit tests
run: make test_unit
- name: Run integration tests
run: make test_integration