aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/ubuntu.yml
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-11 19:12:38 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-12 12:01:39 +0900
commit11a09d78c185848a179028a292f583bc356f6b25 (patch)
tree5c2f8c0c164acc8980b0a7448a7975bad640b337 /.github/workflows/ubuntu.yml
parent9fe7e042f50ba7bcd7b64e48b4e6077eeead2861 (diff)
downloadruby-11a09d78c185848a179028a292f583bc356f6b25.tar.gz
Port ubuntu workflow based on macos
Diffstat (limited to '.github/workflows/ubuntu.yml')
-rw-r--r--.github/workflows/ubuntu.yml41
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
new file mode 100644
index 0000000000..66062913b3
--- /dev/null
+++ b/.github/workflows/ubuntu.yml
@@ -0,0 +1,41 @@
+name: ubuntu
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - '*'
+jobs:
+ latest:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ test_task: [ "check", "test-bundler" ]
+ steps:
+ - name: Install libraries
+ run: |
+ set -x
+ sudo sed /etc/apt/sources.list -e "s/^# deb-src/deb-src/g" -i
+ sudo apt-get update
+ sudo apt-get install ruby2.5
+ sudo apt-get build-dep ruby2.5
+ - name: Checkout
+ uses: actions/checkout@master
+ with:
+ fetch-depth: 50
+ - name: Set ENV
+ run: |
+ export JOBS=-j$((1 + $(nproc --all)))
+ - run: autoconf
+ - name: configure
+ run: ./configure -C --disable-install-doc
+ - run: make $JOBS
+ - name: make check/test-bundler
+ run: make -s ${{ matrix.test_task }}
+ env:
+ TESTOPTS: "$JOBS -q --tty=no"
+ MSPECOPT: "-ff" # not using `-j` because sometimes `mspec -j` silently dies
+ CI: "true"
+ - name: Leaked Globals
+ run: make -s leaked-globals