Skip to content

Commit

Permalink
Github actions tester. I have no idea if this will work first time.
Browse files Browse the repository at this point in the history
  • Loading branch information
PitchBlackNights committed Feb 6, 2024
1 parent 44cb707 commit 21eaa8f
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 1 deletion.
65 changes: 65 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
on:
push:
branches:
- rrOSt-testing
pull_request:
branches:
- rrOSt-testing
jobs:
setup_ruby_env:
name: Setup Ruby Environment
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'

- 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_env:
name: Setup Cargo Environment
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
working-directory: .
steps:
- uses: actions/checkout@v3
- name: Install needed crates
run: cargo install cargo-binutils rustfilt

make_test:
name: Run `make test`
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: true
rubygems: '3.2.22'

- name: Run boot test
run: make test_boot
- name: Run unit tests
run: make test_unit
- name: Run integration tests
run: make test_integration
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ From [rust-raspberrypi-OS-tutorials](https://github.com/rust-embedded/rust-raspb
3. In case you use `Visual Studio Code`, I strongly recommend installing the [Rust Analyzer extension].
4. Install a few `Ruby` gems.

This was last tested with Ruby version `3.0.2` on `Debian 11`. If you are using
This was last tested with Ruby version `3.0.2` on `Debian 12.2`. If you are using
`rbenv`, the respective `.ruby-version` file is already in place. If you never heard of `rbenv`,
try using [this little guide](https://stackoverflow.com/a/68118750).

Expand Down

0 comments on commit 21eaa8f

Please sign in to comment.