Skip to content

Commit

Permalink
fix(nokogiri): try with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
yart committed Jun 18, 2024
1 parent 24305c9 commit 0fafaf5
Showing 1 changed file with 30 additions and 27 deletions.
57 changes: 30 additions & 27 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,33 @@ on:

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
ruby-version: [ '2.7.0' ]

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}

- uses: actions/cache@v1
with:
path: vendor/bundle
key: gems-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}

# - run: gem update --system 3.4.22
- run: sudo apt-get install -y --no-install-recommends build-essential
- run: gem install bundler -v 2.4.22

- run: bundle config set deployment 'true'
- run: bundle config build.nokogiri --use-system-libraries
- run: bundle install

- run: bundle exec middleman build
-runs:
using: 'docker'
image: 'Dockerfile'
# runs-on: ubuntu-latest
#
# strategy:
# matrix:
# ruby-version: [ '2.7.0' ]
#
# steps:
# - uses: actions/checkout@v2
# - name: Set up Ruby
# uses: ruby/setup-ruby@v1
# with:
# ruby-version: ${{ matrix.ruby-version }}
#
# - uses: actions/cache@v1
# with:
# path: vendor/bundle
# key: gems-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
#
# # - run: gem update --system 3.4.22
# - run: sudo apt-get install -y --no-install-recommends build-essential
# - run: gem install bundler -v 2.4.22
#
# - run: bundle config set deployment 'true'
# - run: bundle config build.nokogiri --use-system-libraries
# - run: bundle install
#
# - run: bundle exec middleman build

0 comments on commit 0fafaf5

Please sign in to comment.