updated docker benchmark github actions #35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Benchmark | |
| on: | |
| push: | |
| branches: [master] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - run: | | |
| docker run --rm -v $(pwd):/checkout -w /checkout ruby:alpine sh -c "\ | |
| wget -O /usr/local/include/CImg.h https://raw.githubusercontent.com/GreycLab/CImg/3d1fc212ffe933cb2bc841e504920e5a67e676b8/CImg.h && \ | |
| apk add --no-cache git build-base imagemagick-dev vips && \ | |
| bundle install --no-cache && \ | |
| ruby extconf.rb && make clean && make && \ | |
| bundle exec rake benchmark" | |
| timeout-minutes: 5 | |
| - run: | | |
| docker run --rm -v $(pwd):/checkout -w /checkout ruby:slim sh -c "\ | |
| apt-get update && \ | |
| apt install -y --no-install-recommends wget && \ | |
| wget -O /usr/local/include/CImg.h https://raw.githubusercontent.com/GreycLab/CImg/3d1fc212ffe933cb2bc841e504920e5a67e676b8/CImg.h && \ | |
| ( \ | |
| apt install -y --no-install-recommends git build-essential libmagickcore-dev libvips libjpeg-dev ; \ | |
| apt install -y --no-install-recommends git build-essential libmagickcore-dev libvips libjpeg-dev --fix-missing \ | |
| ) && \ | |
| bundle install --no-cache && \ | |
| ruby extconf.rb && make clean && make && \ | |
| bundle exec rake benchmark" | |
| timeout-minutes: 5 |