Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: build and test

on:
push:
branches: "*"
pull_request:
branches: "*"
jobs:
ubuntu-20-04:
runs-on: ubuntu-20.04
timeout-minutes: 10
name: ubuntu-20.04 (mruby-${{matrix.TARGET_MRUBY}})
strategy:
fail-fast: false
matrix:
TARGET_MRUBY:
- master
- stable
- 3.1.0
- 3.0.0
- 2.1.2
#- 2.1.1
#- 2.1.0
#- 2.0.1
#- 2.0.0
#- 1.4.1
#- 1.4.0
#- 1.3.0
#- 1.2.0
env:
MRUBY_URL: "https://github.com/mruby/mruby/archive/${{matrix.TARGET_MRUBY}}.tar.gz"
MRUBY_DIR: "mruby-${{matrix.TARGET_MRUBY}}"
MRUBY_CONFIG: ../run_test.rb
CC: gcc
steps:
- uses: actions/checkout@v3
- name: fetch and extract mruby
run: wget -O- $MRUBY_URL | tar xzf -
- name: build
run: -|
rake -vE 'Dir.chdir ENV["MRUBY_DIR"]' clean
rake -mvE 'Dir.chdir ENV["MRUBY_DIR"]' || rake -vE 'Dir.chdir ENV["MRUBY_DIR"]'
- name: test
# for missing /dev/tty; "RuntimeError: IO#isatty => open /dev/tty (mrbgems: mruby-io)"
# see https://github.com/gfx/example-github-actions-with-tty
shell: 'script -q -e -c "bash {0}"'
run: rake -vE 'Dir.chdir ENV["MRUBY_DIR"]' test