Skip to content

Commit bbb05d9

Browse files
authored
Merge pull request #316 from mishina2228/update-gh-actions
Update GitHub Actions workflows
2 parents 55b57dd + ccfa736 commit bbb05d9

1 file changed

Lines changed: 19 additions & 8 deletions

File tree

.github/workflows/sqlite3-ruby.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
name: CI
2-
3-
on: [push, pull_request]
2+
concurrency:
3+
group: "${{github.workflow}}-${{github.ref}}"
4+
cancel-in-progress: true
5+
on:
6+
workflow_dispatch:
7+
push:
8+
branches:
9+
- main
10+
- v*.*.x
11+
tags:
12+
- v*.*.*
13+
pull_request:
14+
types: [opened, synchronize]
15+
branches:
16+
- '*'
417

518
jobs:
619
CI:
@@ -14,15 +27,14 @@ jobs:
1427
os: [ubuntu, macos ]
1528
ruby: [ head, 3.1, '3.0', 2.7, 2.6, 2.5, 2.4, 2.3, 2.2, truffleruby-head ]
1629
steps:
17-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v3
1831
- name: load Ruby and dependencies
1932
uses: MSP-Greg/setup-ruby-pkgs@v1
2033
with:
2134
ruby-version: ${{ matrix.ruby }}
2235
apt-get: libsqlite3-dev
36+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
2337

24-
- name: install
25-
run: bundle install --jobs 4 --retry 3
2638
- name: compile
2739
run: bundle exec rake compile
2840
- name: test
@@ -39,15 +51,14 @@ jobs:
3951
os: [windows ]
4052
ruby: [ mingw, 3.1, '3.0', 2.7, 2.6, 2.5, 2.4 ]
4153
steps:
42-
- uses: actions/checkout@v2
54+
- uses: actions/checkout@v3
4355
- name: load Ruby and sqlite3
4456
uses: MSP-Greg/setup-ruby-pkgs@v1
4557
with:
4658
ruby-version: ${{ matrix.ruby }}
4759
mingw: sqlite3
60+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
4861

49-
- name: install
50-
run: bundle install --jobs 4 --retry 3
5162
- name: compile msys2
5263
run: bundle exec rake compile:msys2
5364
- name: test

0 commit comments

Comments
 (0)