Skip to content

Commit eeddf86

Browse files
committed
Install yq by APT on ubuntu of gh-actions.
`brew intall` on Ubuntu is too slow (about 1 min)
1 parent 50e5e34 commit eeddf86

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,18 @@ jobs:
2929
with:
3030
ruby-version: '2.6.x'
3131

32-
- name: install tooling
32+
- name: Install tools (for Ubuntu)
33+
if: matrix.os == 'ubuntu-latest'
3334
run: |
35+
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CC86BB64
36+
sudo add-apt-repository ppa:rmescandon/yq
37+
sudo apt update
38+
sudo apt install yq -y
39+
40+
- name: Install tools (for macOS)
41+
if: matrix.os == 'macos-latest'
42+
run: |
43+
brew install coreutils
3444
brew install yq
3545
3646
- name: Checkout
@@ -47,11 +57,6 @@ jobs:
4757
restore-keys: |
4858
${{ runner.os }}-gems-
4959
50-
- name: Install GNU-Coreutils(for macOS)
51-
if: runner.os == 'macOS'
52-
run: |
53-
brew install coreutils
54-
5560
- name: Bundle config
5661
run: |
5762
bundle config path vendor/bundle

.github/workflows/pages-deploy.yml.hook

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,18 @@ jobs:
1717
with:
1818
ruby-version: '2.6.x'
1919

20+
- name: Install tools
21+
run: |
22+
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CC86BB64
23+
sudo add-apt-repository ppa:rmescandon/yq
24+
sudo apt update
25+
sudo apt install yq -y
26+
2027
- name: Checkout
2128
uses: actions/checkout@v2
2229
with:
2330
fetch-depth: 0
2431

25-
- name: Install yq
26-
run: |
27-
brew install yq
28-
2932
- name: Bundle Caching
3033
id: bundle-cache
3134
uses: actions/cache@v1

0 commit comments

Comments
 (0)