-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e57c175
commit 8a4e19a
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Ubuntu | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: sudo apt install git ruby autoconf gcc make zlib1g-dev libffi-dev libreadline-dev libgdbm-dev libssl-dev libyaml-dev -y | ||
|
||
- name: Install rbenv | ||
run: | | ||
sudo apt install rbenv | ||
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build | ||
- name: Install Ruby head | ||
run: | | ||
RUBY_CONFIGURE_OPTS="cppflags=-DUNIVERSAL_PARSER" rbenv install ruby-dev | ||
rbenv global ruby-dev | ||
- name: Install bundler | ||
run: gem install bundler | ||
|
||
- name: bunlde install | ||
run: bundle install | ||
|
||
- name: Build Ruby Parser | ||
run: bundle exec rake ruby_parser:build | ||
|
||
- name: Build Mjollnir | ||
run: bundle exec rake compile | ||
|
||
- name: Run tests | ||
run: bundle exec rake test | ||
|