Skip to content

Commit

Permalink
ci: add alpine/musl and libxmlruby coverage to GA
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed May 20, 2021
1 parent f86b71b commit 73e8592
Showing 1 changed file with 85 additions and 1 deletion.
86 changes: 85 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
container:
image: flavorjones/nokogiri-test:${{matrix.image}}
steps:
- uses: actions/checkout@v1 # v1 because we need this to work in a 32-bit image, see https://github.com/actions/checkout/issues/334
- uses: actions/checkout@v1 # v1 because of https://github.com/actions/checkout/issues/334
- run: bundle install --local || bundle install
- run: bundle exec rake compile -- --${{matrix.sys}}-system-libraries
- run: bundle exec rake test
Expand Down Expand Up @@ -86,6 +86,90 @@ jobs:
- run: bundle exec rake compile -- --${{matrix.sys}}-system-libraries
- run: bundle exec rake test:valgrind

linux-musl:
needs: ["basic"]
strategy:
fail-fast: false
matrix:
sys: ["enable"]
name: "musl / syslib-${{matrix.sys}}"
runs-on: ubuntu-latest
container:
image: flavorjones/nokogiri-test:alpine
steps:
- uses: actions/checkout@v1 # v1 because of https://github.com/actions/checkout/issues/334
# skip cache because of https://github.com/actions/checkout/issues/334
- run: bundle install --local || bundle install
- run: bundle exec rake compile -- --${{matrix.sys}}-system-libraries
- run: bundle exec rake test

linux-musl-valgrind:
needs: ["linux-musl"]
strategy:
fail-fast: false
matrix:
sys: ["disable"]
name: "musl-valgrind / syslib-${{matrix.sys}}"
runs-on: ubuntu-latest
container:
image: flavorjones/nokogiri-test:alpine
steps:
- uses: actions/checkout@v1 # v1 because of https://github.com/actions/checkout/issues/334
# skip cache because of https://github.com/actions/checkout/issues/334
- run: bundle install --local || bundle install
- run: bundle exec rake compile -- --${{matrix.sys}}-system-libraries
- run: bundle exec rake test:valgrind

libxmlruby:
needs: ["basic"]
strategy:
fail-fast: false
matrix:
sys: ["enable"]
ruby: ["3.0"]
env:
BUNDLE_GEMFILE: "Gemfile-libxml-ruby"
name: "libxmlruby / syslib-${{matrix.sys}}"
runs-on: ubuntu-latest
container:
image: flavorjones/nokogiri-test:mri-${{matrix.ruby}}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
if: matrix.sys == 'disable'
with:
path: ports/archives
key: tarballs-${{hashFiles('**/dependencies.yml')}}
restore-keys: tarballs-
- run: bundle install --local || bundle install
- run: bundle exec rake compile -- --${{matrix.sys}}-system-libraries
- run: bundle exec rake test

libxmlruby-valgrind:
needs: ["libxmlruby"]
strategy:
fail-fast: false
matrix:
sys: ["disable"]
ruby: ["3.0"]
env:
BUNDLE_GEMFILE: "Gemfile-libxml-ruby"
name: "libxmlruby-valgrind / syslib-${{matrix.sys}}"
runs-on: ubuntu-latest
container:
image: flavorjones/nokogiri-test:mri-${{matrix.ruby}}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
if: matrix.sys == 'disable'
with:
path: ports/archives
key: tarballs-${{hashFiles('**/dependencies.yml')}}
restore-keys: tarballs-
- run: bundle install --local || bundle install
- run: bundle exec rake compile -- --${{matrix.sys}}-system-libraries
- run: bundle exec rake test:valgrind

ruby-head:
needs: ["basic"]
strategy:
Expand Down

0 comments on commit 73e8592

Please sign in to comment.