From 88779f92368cb85057d10dce751c04ef15cee803 Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Wed, 29 Mar 2023 21:41:13 +1100 Subject: [PATCH] also test against Ruby 3.2 in CI --- .github/workflows/checks.yml | 1 + Manifest.txt | 1 + contrib/nix/ruby3.2-shell.nix | 14 ++++++++++++++ shell.nix | 2 +- 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 contrib/nix/ruby3.2-shell.nix diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index d805e35c..a07826e8 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -23,6 +23,7 @@ jobs: - '2.7' - '3.0' - '3.1' + - '3.2' runs-on: ${{ matrix.os }} env: nixfile: "contrib/nix/ruby${{ matrix.ruby-version }}-shell.nix" diff --git a/Manifest.txt b/Manifest.txt index d7bc31f4..13a45d5e 100644 --- a/Manifest.txt +++ b/Manifest.txt @@ -36,6 +36,7 @@ contrib/nix/ruby2.6-shell.nix contrib/nix/ruby2.7-shell.nix contrib/nix/ruby3.0-shell.nix contrib/nix/ruby3.1-shell.nix +contrib/nix/ruby3.2-shell.nix devel/console.sh devel/count-loc.sh devel/load-index.rb diff --git a/contrib/nix/ruby3.2-shell.nix b/contrib/nix/ruby3.2-shell.nix new file mode 100644 index 00000000..8ae893a1 --- /dev/null +++ b/contrib/nix/ruby3.2-shell.nix @@ -0,0 +1,14 @@ +let + pkgs = import (builtins.fetchGit { + url = "https://github.com/NixOS/nixpkgs"; + ref = "refs/heads/master"; + rev = "402cc3633cc60dfc50378197305c984518b30773"; + }) {}; + gems = pkgs.bundlerEnv { + name = "ruby3.2-gems-for-sup"; + ruby = pkgs.ruby_3_2; + gemfile = ./Gemfile; + lockfile = ./Gemfile.lock; + gemset = ./gemset.nix; + }; +in pkgs.mkShell { packages = [ gems gems.wrappedRuby pkgs.pandoc ]; } diff --git a/shell.nix b/shell.nix index 46449a4a..7c34f76a 120000 --- a/shell.nix +++ b/shell.nix @@ -1 +1 @@ -contrib/nix/ruby3.1-shell.nix \ No newline at end of file +contrib/nix/ruby3.2-shell.nix \ No newline at end of file