-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 1.1 KB
/
ruby.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Verify ruby-init script
on: [push, pull_request]
jobs:
ruby-alpine:
runs-on: ubuntu-latest
container: docker://alpine
steps:
- uses: actions/checkout@v2
- name: Setup dependencies by apk
run: apk add ruby ruby-dev make gcc libc-dev bash
- name: Execute ruby-init.sh
run: ./scripts/ruby-init.sh
ruby-centos:
runs-on: ubuntu-latest
container: docker://centos
steps:
- uses: actions/checkout@v2
- name: Setup dependencies by dnf
run: dnf install -y ruby ruby-devel make gcc redhat-rpm-config
- name: Execute ruby-init.sh
run: ./scripts/ruby-init.sh
ruby-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install asdf and zsh by homebrew
run: $(brew update >& /dev/null || true); brew reinstall asdf zsh
- name: Execute install.sh
run: rm -rf $HOME/.config && ./install.sh
- name: Install latest ruby and execute ruby-init.sh
run: zsh -lc "asdf plugin-add ruby && asdf install ruby latest && asdf global ruby latest && `pwd`/scripts/ruby-init.sh"