@@ -30,19 +30,22 @@ jobs:
30
30
working-directory : ./temporalio
31
31
cache-version : v1-${{ matrix.rubyPlatform }}
32
32
33
+ # Cannot use oxidize-rb/actions/cross-gem because it has older Rust and we
34
+ # need --mount-toolchains to get latest Rust, see
35
+ # https://github.com/oxidize-rb/actions/issues/61
33
36
- name : Cross compile gem
34
- uses : oxidize-rb/actions/cross-gem@v1
35
37
id : cross-gem
36
- with :
37
- platform : ${{ matrix.rubyPlatform }}
38
- ruby-versions : " 3.2,3.3,3.4"
39
- working-directory : ./temporalio
38
+ working-directory : ./temporalio
39
+ run : |
40
+ bundle exec rb-sys-dock --platform ${{ matrix.rubyPlatform }} -- ruby-versions "3.2,3.3,3.4" --mount-toolchains --build
41
+ echo "gem-path=$(find pkg -name '*-${{ matrix.rubyPlatform }}.gem')" >> $GITHUB_OUTPUT
40
42
41
43
- name : Upload gem
42
44
uses : actions/upload-artifact@v4
43
45
with :
46
+ if-no-files-found : error
44
47
name : ${{ matrix.rubyPlatform }}-gem
45
- path : ${{ steps.cross-gem.outputs.gem-path }}
48
+ path : ./temporalio/ ${{ steps.cross-gem.outputs.gem-path }}
46
49
47
50
build-source-gem :
48
51
runs-on : ubuntu-latest
84
87
#
85
88
# TODO(cretz): Enable windows-latest if we can figure out Windows issue, see
86
89
# https://github.com/temporalio/sdk-ruby/issues/172
87
- os : [ubuntu-latest, macos-intel, macos-latest]
90
+ #
91
+ # TODO(cretz): macos-intel (macos-13) is not tested against because the GH runner for it
92
+ # does not have updated certificates and it is not easy to update them, see
93
+ # https://github.com/temporalio/sdk-ruby/issues/306
94
+ os : [ubuntu-latest, macos-latest]
88
95
rubyVersion : ["3.2", "3.3", "3.4"]
89
96
# Container defaults to empty/none, but additional container for Alpine
90
97
# added later
@@ -93,16 +100,13 @@ jobs:
93
100
include :
94
101
- os : ubuntu-latest
95
102
rubyPlatform : x86_64-linux
96
- - os : macos-intel
97
- runsOn : macos-13
98
- rubyPlatform : x86_64-darwin
99
103
- os : macos-latest
100
104
rubyPlatform : arm64-darwin
101
105
- os : ubuntu-latest
102
106
rubyVersion : " 3.3"
103
107
container : alpine/git:latest
104
108
rubyPlatform : x86_64-linux-musl
105
- runs-on : ${{ matrix.runsOn || matrix. os }}
109
+ runs-on : ${{ matrix.os }}
106
110
container : ${{ matrix.container }}
107
111
steps :
108
112
- name : Checkout repository
0 commit comments