-
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (50 loc) · 1.34 KB
/
cross-compile.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
name: Cross Compile
on:
push:
tags:
- "v*"
jobs:
ci-data:
name: Fetch CI data
runs-on: ubuntu-latest
outputs:
result: ${{ steps.fetch.outputs.result }}
steps:
- uses: oxidize-rb/actions/fetch-ci-data@v1
id: fetch
with:
supported-ruby-platforms: true
stable-ruby-versions: |
exclude: [head]
cross-gem:
name: Compile native gem for ${{ matrix.platform }}
runs-on: ubuntu-latest
needs: ci-data
strategy:
fail-fast: false
matrix:
platform: ${{ fromJSON(needs.ci-data.outputs.result).supported-ruby-platforms }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
- uses: oxidize-rb/actions/cross-gem@v1
id: cross-gem
with:
platform: ${{ matrix.platform }}
ruby-versions: 2.7,3.0,${{ join(fromJSON(needs.ci-data.outputs.result).stable-ruby-versions) }}
- uses: actions/upload-artifact@v4
with:
name: colordom-${{ matrix.platform }}
path: ${{ steps.cross-gem.outputs.gem-path }}
merge-artifacts:
name: Merge atrifacts
runs-on: ubuntu-latest
needs: cross-gem
steps:
- uses: actions/upload-artifact/merge@v4
with:
name: cross-gem
pattern: colordom-*