libkernaux/.github/workflows/ruby.yml

68 lines
1.6 KiB
YAML
Raw Normal View History

name: Ruby
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
- name: dependencies
run: sudo apt-get --yes install cppcheck
- name: autogen
run: ./autogen.sh
- name: configure
run: ./configure CFLAGS='-O3'
- name: make
run: make
- name: install
run: sudo make install
- working-directory: pkgs/ruby
2022-02-09 20:03:06 +00:00
name: setup
run: ./bin/setup
- working-directory: pkgs/ruby
name: compile
run: rake compile
- working-directory: pkgs/ruby
name: test & lint
run: rake
- working-directory: pkgs/ruby
name: cppcheck
run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability .
2022-02-01 06:50:46 +00:00
cond:
runs-on: ubuntu-latest
env:
SKIP_COVERAGE: x
2022-02-01 06:50:46 +00:00
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
- name: dependencies
run: sudo apt-get --yes install
- name: autogen
run: ./autogen.sh
- name: configure
run: ./configure --without-all CFLAGS='-O3'
2022-02-01 06:50:46 +00:00
- name: make
run: make
- name: install
run: sudo make install
- working-directory: pkgs/ruby
2022-02-09 21:55:17 +00:00
name: setup
run: ./bin/setup
2022-02-01 06:50:46 +00:00
- working-directory: pkgs/ruby
name: compile
run: rake compile
- working-directory: pkgs/ruby
name: test & lint
run: rake