Fix github actions? (part 6 of ?) (I hate this) #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: . | |
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' | |
- name: Tell Bundler not to use development? | |
run: bundle config set --local without 'development' | |
- name: Install Ruby Gems | |
run: bundle install | |
# Setup Cargo Environment | |
- name: Install latest Nightly Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: false | |
components: rust-src,llvm-tools-preview, rustfmt, clippy | |
- 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: cargo-binutils rustfilt | |
# Run All OS Tests | |
- name: Run boot test | |
run: make test_boot | |
working-directory: ./os | |
- name: Run unit tests | |
run: make test_unit | |
working-directory: ./os | |
- name: Run integration tests | |
run: make test_integration | |
working-directory: ./os |