We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2908c1c commit de70cd3Copy full SHA for de70cd3
1 file changed
Rakefile
@@ -79,15 +79,14 @@ end
79
80
task :build_in_docker => :templates do
81
# Versions from https://github.com/ruby/ruby/blob/master/.github/workflows/compilers.yml
82
- compilers = (7..15).map { |v| "gcc-#{v}" }
83
- compilers.each do |compiler|
+ versions = (7..15).to_a
+ versions.each do |version|
84
dockerfile = <<~DOCKERFILE
85
- FROM ghcr.io/ruby/ruby-ci-image:#{compiler}
86
- USER root
+ FROM docker.io/library/gcc:#{version}
87
ADD . /prism
88
WORKDIR /prism
89
- RUN #{compiler} --version
90
- RUN make CC=#{compiler}
+ RUN gcc --version
+ RUN make SOEXT=so
91
DOCKERFILE
92
File.write 'Dockerfile', dockerfile
93
sh "docker build ."
0 commit comments