diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2020-11-18 02:08:33 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2020-11-18 02:12:46 -0700 |
| commit | dd843d59b1e49f29d68386bfdf0438ce11b42577 (patch) | |
| tree | 2aa449a218c60f215d7c36f161554a0c512905b5 /.github | |
| parent | 351f6ba5d62abc0b8bc3ffc8fd2d14f457e08476 (diff) | |
configure Nokogiri installation in CI (Linux and macOS only)
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ci.yml | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c955125..9b204191 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,10 +1,8 @@ name: CI on: push: - branches: - - '**' - tags-ignore: - - '**' + branches: ['**'] + tags-ignore: ['**'] pull_request: schedule: - cron: '0 2 * * *' @@ -57,15 +55,20 @@ jobs: run: | bundle config --local path .bundle/gems bundle config --local without docs + - name: Configure Nokogiri installation (Linux) + if: matrix.os == 'ubuntu-latest' + run: | + bundle config --local build__nokogiri --use-system-libraries + sudo apt-get install libxslt1-dev + - name: Configure Nokogiri installation (macOS) + if: matrix.os == 'macos-latest' + run: bundle config --local build__nokogiri --use-system-libraries - name: Set Rouge version if: matrix.rouge-version run: echo 'ROUGE_VERSION=${{ matrix.rouge-version }}' >> $GITHUB_ENV - name: Set JRUBY_OPTS if: matrix.jruby-opts run: echo 'JRUBY_OPTS=${{ matrix.jruby-opts }}' >> $GITHUB_ENV - - name: Install Nokogiri build dependencies - if: contains(matrix.ruby, 'truffleruby') - run: sudo apt-get install libxslt1-dev - name: Install dependencies run: bundle --jobs 3 --retry 3 - name: Run tests |
