Skip to content

Commit

Permalink
ci: bump everything to use 3.4 final
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Dec 26, 2024
1 parent 729c96c commit 3ca18ef
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 32 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
rubocop:
runs-on: ubuntu-latest
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-3.3
image: ghcr.io/sparklemotion/nokogiri-test:mri-3.4
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
submodules: true
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
ruby-version: "3.4"
bundler-cache: true
bundler: latest
- run: bundle exec rake gumbo:test
Expand All @@ -95,8 +95,9 @@ jobs:
ruby_versions:
needs: ["basic"]
outputs:
setup_ruby: "['3.1', '3.2', '3.3', 'head']"
image_tag: "['3.1', '3.2', '3.3', '3.4-rc']"
# these are usually the same, but are different once we get to ruby release candidates
setup_ruby: "['3.1', '3.2', '3.3', '3.4']"
image_tag: "['3.1', '3.2', '3.3', '3.4']"
runs-on: ubuntu-latest
steps:
- run: echo "generating rubies ..."
Expand All @@ -110,7 +111,7 @@ jobs:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
ruby-version: "3.4"
bundler-cache: true
bundler: latest
- id: rcd_image_version
Expand Down Expand Up @@ -153,7 +154,7 @@ jobs:
mem: ["ruby"]
include:
- sys: "disable"
ruby: "3.3"
ruby: "3.4"
mem: "default"
runs-on: ubuntu-latest
container:
Expand Down Expand Up @@ -215,7 +216,7 @@ jobs:
fail-fast: false
matrix:
sys: ["enable"]
ruby: ["3.3"]
ruby: ["3.4"]
env:
BUNDLE_GEMFILE: "Gemfile-libxml-ruby"
runs-on: ubuntu-latest
Expand All @@ -240,7 +241,7 @@ jobs:
fail-fast: false
matrix:
sys: ["disable"]
ruby: ["3.3"]
ruby: ["3.4"]
env:
BUNDLE_GEMFILE: "Gemfile-libxml-ruby"
runs-on: ubuntu-latest
Expand Down Expand Up @@ -426,7 +427,7 @@ jobs:
fail-fast: false
matrix:
sys: ["disable"]
ruby: ["3.3"]
ruby: ["3.4"]
runs-on: ubuntu-latest
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-${{matrix.ruby}}
Expand All @@ -449,7 +450,7 @@ jobs:
fail-fast: false
matrix:
sys: ["disable"]
ruby: ["3.3"]
ruby: ["3.4"]
runs-on: ubuntu-latest
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-${{matrix.ruby}}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ jobs:
- url: /~https://github.com/flavorjones/loofah
name: loofah
command: "bundle exec rake test"
ruby: "3.3"
ruby: "3.4"
- url: /~https://github.com/rails/rails-html-sanitizer
name: rails-html-sanitizer
command: "bundle exec rake test"
ruby: "3.3"
ruby: "3.4"
# # pending a fix for /~https://github.com/sparklemotion/nokogiri/pull/3348
# - url: /~https://github.com/rgrove/sanitize
# name: sanitize
# command: "bundle exec rake test"
# ruby: "3.3"
# ruby: "3.4"
- url: /~https://github.com/ebeigarts/signer
name: signer
command: "bundle exec rake spec"
Expand All @@ -48,7 +48,7 @@ jobs:
- url: /~https://github.com/rails/rails
name: xmlmini
command: "cd activesupport && bundle exec rake test TESTOPTS=-n/XmlMini/"
ruby: "3.3"
ruby: "3.4"
- url: /~https://github.com/pythonicrubyist/creek
name: creek
command: "bundle exec rake spec"
Expand All @@ -60,11 +60,11 @@ jobs:
- url: /~https://github.com/sparklemotion/mechanize
name: mechanize
command: "bundle exec rake test"
ruby: "3.3"
ruby: "3.4"
- url: /~https://github.com/stimulusreflex/stimulus_reflex
name: stimulus_reflex
command: "bundle exec rake test"
ruby: "3.3"
ruby: "3.4"
# - url: /~https://github.com/instructure/nokogiri-xmlsec-instructure
# name: nokogiri-xmlsec-instructure
# precommand: "apt install -y libxmlsec1-dev"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate-ci-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
tag: ["alpine", "mri-3.1", "mri-3.2", "mri-3.3", "mri-3.4-rc", "ubuntu", "upstream-libxml"]
tag: ["alpine", "mri-3.1", "mri-3.2", "mri-3.3", "mri-3.4", "ubuntu", "upstream-libxml"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
submodules: true
- uses: ruby/setup-ruby-pkgs@v1
with:
ruby-version: "3.3"
ruby-version: "3.4"
apt-get: "autogen libtool shtool"
brew: "automake autogen libtool shtool"
mingw: "autotools xz"
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
xmlsoft-head-valgrind:
runs-on: ubuntu-latest
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-3.3
image: ghcr.io/sparklemotion/nokogiri-test:mri-3.4
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -193,15 +193,15 @@ jobs:
html5lib-tests:
runs-on: ubuntu-latest
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-3.3
image: ghcr.io/sparklemotion/nokogiri-test:mri-3.4
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/cache@v4
with:
path: ports
key: ports-ubuntu-3.3-${{hashFiles('dependencies.yml', 'patches/**/*.patch', 'ext/nokogiri/extconf.rb')}}
key: ports-ubuntu-3.4-${{hashFiles('dependencies.yml', 'patches/**/*.patch', 'ext/nokogiri/extconf.rb')}}
- name: Update html5lib-tests
run: |
cd test/html5lib-tests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.4-rc
FROM ruby:3.4

# include_file debian-prelude.step
# -*- dockerfile -*-
Expand All @@ -9,16 +9,10 @@ RUN apt-get upgrade -y
RUN apt-get install -y apt-utils


# include_file valgrind-from-source.step
# include_file debian-valgrind.step
# -*- dockerfile -*-

RUN apt-get install -y libc6-dbg
RUN wget https://sourceware.org/pub/valgrind/valgrind-3.21.0.tar.bz2 && \
tar -xf valgrind-3.21.0.tar.bz2 && \
cd valgrind-3.21.0 && \
./configure && \
make && \
make install
RUN apt-get install -y valgrind


# include_file debian-libxml-et-al.step
Expand Down
2 changes: 1 addition & 1 deletion oci-images/nokogiri-test/mri.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM ruby:<%= version %>

<%= include_file "debian-prelude.step" %>

<% if version >= "3.2" -%>
<% if version >= "3.2" && version < "3.4" -%>
<%= include_file "valgrind-from-source.step" %>
<% else -%>
<%= include_file "debian-valgrind.step" %>
Expand Down
2 changes: 1 addition & 1 deletion rakelib/docker.rake
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module DockerHelper
IMAGE_NAME = "ghcr.io/sparklemotion/nokogiri-test"
RUBIES = {
# engine → array of ruby minor version docker tags
mri: ["3.1", "3.2", "3.3", "3.4-rc"],
mri: ["3.1", "3.2", "3.3", "3.4"],
}

class << self
Expand Down

0 comments on commit 3ca18ef

Please sign in to comment.