Comments (10)
And now Ruby is up to 2.6.5, Heroku and CircleCI already have updates for it. Should we just assume this setup-ruby
action will be out-of-date, and use the docker form of workflows instead?
from runner-images.
@elalemanyo you donβt need to use sudo
, just leave it off
from runner-images.
Has anyone found a way to install a specific ruby version manually?
I think you can install it however you want, as you can run arbitrary commands (and you are allowed to sudo
).
Or you can use Docker. Example using the official images.
name: Ruby
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Build and test with Rake
run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec rake
container:
image: ruby:2.6.4
from runner-images.
Too bad 2.6.4 is not supported (even in v1.1.0). Container specification is much longer to build (1m30 vs 30s)
from runner-images.
Using rvm with ruby-head takes a bit under 60 seconds, other versions should be similar. Example workflow in ruby/ruby.
Regardless, I would prefer that current versions be pre-installed...
from runner-images.
ruby:2.6.4
fetch took 42s. There's no build, it'll just fetch all layers. Quite reasonable.
from runner-images.
@ain I am trying to use docker to install ruby:2.6.4
, that works great. But after I need to add libpq-dev
to be able to use Postgres, I was doing this:
- name: Install required package for Postgres
run: |
sudo apt-get install libpq-dev
But GitHub Actions is not liking it: sudo: not found
I am doing something wrong?
from runner-images.
@clupprich thanks!
Without sudo looks to work, but now I have issues with postgres π
I set postgres service like this:
services:
postgres:
image: postgres:10.8
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ""
POSTGRES_DB: postgres
# needed because the postgres container does not provide a healthcheck
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
After I try to create my DB:
- name: Build and create DB
env:
POSTGRES_HOSTNAME: postgres
POSTGRES_USER: postgres
POSTGRES_PORT: 5432
RAILS_ENV: test
run: |
bin/rails db:setup
But I am getting this error:
could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
from runner-images.
FWIW https://github.com/eregon/use-ruby-action supports all Ruby 2.6.x versions.
from runner-images.
This is done, Windows and Linux runners are now in 2.6.5
from runner-images.
Related Issues (20)
- Ansible Collections not working HOT 1
- sudo: apt-fast: command not found HOT 3
- New unexpected build failures on 20240603.1.0 HOT 74
- Curl returns `000` http status codes on successful download HOT 5
- Add latest Windows SDK HOT 1
- apparmor should be disabled by default on Ubuntu HOT 1
- macOS-14 not available in free version? HOT 1
- clang-cl needs to be updated to v17 in order for it to work with latest MSVC STL HOT 3
- Experiencing build crashes after upgrade to msvc toolset 14.40 HOT 3
- Broken C++ runtime on windows-2022 version 20240603.1.0 HOT 11
- Setuptools not working with latest ubuntu 22.04 image HOT 3
- C# builds fail with `MissingMethodException` in v20240603.1.0 HOT 10
- gfortran alias not available only on ubuntu 24.04 HOT 3
- Add GCC 14 to macOS HOT 2
- Security Vulnerabilities in PHP 8.3.7.0 in Windows Server 2022 Image Version: 20240603.1.0 HOT 2
- Unable to build the UbuntuMinimal image HOT 7
- error CTC1030: Parameter name: path2 HOT 11
- MSVC: header format errors when using catch2 since toolset updates HOT 4
- Missing standard includes on macOS runners HOT 1
- Cannot install package manager using corepack on node 16 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from runner-images.