aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/ubuntu.yml
blob: 7870fae30870bb97da0bedc2a51492ac75376149 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: ubuntu
on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - '*'
jobs:
  latest:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        test_task: [ "test-bundler", "test-bundled-gems" ]
    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 # not using actions/checkout because it's unstable.
        run: tool/ci_retry.sh git clone --depth=50 https://github.com/ruby/ruby .
      - name: Set ENV
        run: |
          export JOBS=-j$((1 + $(nproc --all)))
      - name: Fixed world writable dirs
        run: |
          chmod go-w $HOME
          sudo chmod -R go-w /usr/share
      - run: autoconf
      - name: configure
        run: ./configure -C --disable-install-doc
      - run: make $JOBS
      - name: make test-bundler/test-bundled-gems
        run: make -s ${{ matrix.test_task }}
      - name: Leaked Globals
        run: make -s leaked-globals