Ubuntu #56
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
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: git clone https://github.com/rbenv/rbenv.git ~/.rbenv | |
- name: Add PATH | |
run: | | |
echo "~/.rbenv/bin" >> $GITHUB_PATH | |
echo "~/.rbenv/shims" >> $GITHUB_PATH | |
- name: Install Ruby head | |
run: | | |
rbenv init | |
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build | |
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 Kanayago | |
run: bundle exec rake compile | |
- name: Run RuboCop | |
run: bundle exec rubocop | |
- name: Run tests | |
run: bundle exec rake queue:test | |
- name: Run install | |
run: | | |
bundle exec rake build | |
gem install pkg/kanayago-0.1.0.gem | |