Skip to content

Commit d28b0f9

Browse files
committed
updated docker benchmark github actions
1 parent 997c8fb commit d28b0f9

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/workflows/benchmark.yaml

+16-7
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,23 @@ jobs:
88
steps:
99
- uses: actions/checkout@v2
1010
- run: |
11-
docker run -v $(pwd):/checkout -w /checkout ruby:slim sh -c "\
11+
docker run --rm -v $(pwd):/checkout -w /checkout ruby:alpine sh -c "\
12+
wget -O /usr/local/include/CImg.h https://raw.githubusercontent.com/GreycLab/CImg/3d1fc212ffe933cb2bc841e504920e5a67e676b8/CImg.h && \
13+
apk add --no-cache git build-base imagemagick-dev vips && \
14+
bundle install --no-cache && \
15+
ruby extconf.rb && make clean && make && \
16+
bundle exec rake benchmark"
17+
timeout-minutes: 5
18+
- run: |
19+
docker run --rm -v $(pwd):/checkout -w /checkout ruby:slim sh -c "\
1220
apt-get update && \
13-
apt install -y cimg-dev libmagickwand-dev libvips42 wget build-essential git && \
14-
mkdir /ruby && \
15-
wget -O- https://cache.ruby-lang.org/pub/ruby/\$RUBY_MAJOR/ruby-\$RUBY_VERSION.tar.gz | tar xzC /ruby --strip-components=1 && \
21+
apt install -y --no-install-recommends wget && \
22+
wget -O /usr/local/include/CImg.h https://raw.githubusercontent.com/GreycLab/CImg/3d1fc212ffe933cb2bc841e504920e5a67e676b8/CImg.h && \
23+
( \
24+
apt install -y --no-install-recommends git build-essential libmagickcore-dev libvips libjpeg-dev ; \
25+
apt install -y --no-install-recommends git build-essential libmagickcore-dev libvips libjpeg-dev --fix-missing \
26+
) && \
1627
bundle install --no-cache && \
17-
ruby extconf.rb && \
18-
make clean && \
19-
make && \
28+
ruby extconf.rb && make clean && make && \
2029
bundle exec rake benchmark"
2130
timeout-minutes: 5

0 commit comments

Comments
 (0)