Skip to content

Commit d9d0081

Browse files
Aw/221330/update platforms (#16)
* update platform to universal darwin * use shared config
1 parent 7173c2f commit d9d0081

File tree

3 files changed

+5
-60
lines changed

3 files changed

+5
-60
lines changed

.github/workflows/cd.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,5 @@ on:
66
types: [completed]
77
branches: [main]
88
jobs:
9-
deploy:
10-
runs-on: ubuntu-latest
11-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
12-
steps:
13-
- uses: actions/checkout@v3
14-
- name: Tag and Push Gem
15-
id: tag-and-push-gem
16-
uses: discourse/publish-rubygems-action@v2
17-
env:
18-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
19-
GIT_EMAIL: ${{secrets.GUSTO_GIT_EMAIL}}
20-
GIT_NAME: ${{secrets.GUSTO_GIT_NAME}}
21-
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
22-
- name: Create GitHub Release
23-
run: gh release create v${{steps.tag-and-push-gem.outputs.gem_version}} --generate-notes
24-
if: ${{ steps.tag-and-push-gem.outputs.new_version == 'true' }}
25-
env:
26-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9+
call-workflow-from-shared-config:
10+
uses: rubyatscale/shared-config/.github/workflows/cd.yml@main

.github/workflows/ci.yml

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,5 @@ name: CI
33
on: [push, pull_request]
44

55
jobs:
6-
rspec:
7-
runs-on: ubuntu-latest
8-
strategy:
9-
matrix:
10-
ruby:
11-
- 2.7
12-
# See comment comes from https://github.com/ruby/setup-ruby#matrix-of-ruby-versions
13-
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
14-
- '3.0'
15-
- 3.1
16-
- 3.2
17-
- 3.3
18-
- head
19-
env:
20-
BUNDLE_GEMFILE: Gemfile
21-
name: "RSpec tests: Ruby ${{ matrix.ruby }}"
22-
steps:
23-
- uses: actions/checkout@v4
24-
- name: Set up Ruby ${{ matrix.ruby }}
25-
uses: ruby/setup-ruby@v1
26-
with:
27-
bundler-cache: true
28-
ruby-version: ${{ matrix.ruby }}
29-
- name: Run tests
30-
run: bundle exec rspec
31-
static_type_check:
32-
name: "Type Check"
33-
runs-on: ubuntu-latest
34-
steps:
35-
- uses: actions/checkout@v4
36-
- name: Set up Ruby
37-
uses: ruby/setup-ruby@v1
38-
with:
39-
bundler-cache: true
40-
ruby-version: head
41-
- name: Run static type checks
42-
run: bundle exec srb tc
6+
call-workflow-from-shared-config:
7+
uses: rubyatscale/shared-config/.github/workflows/ci.yml@main

Gemfile.lock

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,7 @@ GEM
6060
unicode-display_width (2.5.0)
6161

6262
PLATFORMS
63-
arm64-darwin-20
64-
arm64-darwin-21
65-
arm64-darwin-22
66-
arm64-darwin-23
67-
x86_64-darwin-20
63+
universal-darwin
6864
x86_64-linux
6965

7066
DEPENDENCIES

0 commit comments

Comments
 (0)