-
-
Notifications
You must be signed in to change notification settings - Fork 85
49 lines (40 loc) · 1.08 KB
/
cruby-build-and-install.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
name: Test cruby build
concurrency:
group: "${{github.workflow}}-${{github.ref}}"
cancel-in-progress: true
on:
workflow_dispatch:
pull_request:
paths:
- "lib/commonmarker/version.rb"
env:
CACHE_KEY_PREFIX: "cruby-v1"
SUPPORTED_RUBY_VERSIONS: "3.1,3.2,3.3"
LATEST_RUBY_VERSION: "3.3"
jobs:
cruby-package:
name: Compile native gem
runs-on: ubuntu-latest
strategy:
# fail-fast: false
matrix:
platform:
- x86_64-linux
- aarch64-linux
- x86_64-darwin
- arm64-darwin
- x64-mingw-ucrt
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ env.LATEST_RUBY_VERSION }}"
- uses: oxidize-rb/actions/cross-gem@main
id: cross-gem
with:
platform: ${{ matrix.platform }}
ruby-versions: "${{ env.SUPPORTED_RUBY_VERSIONS }}"
- uses: oxidize-rb/actions/test-gem-build@main
with:
platform: ${{ matrix.platform }}
ruby-versions: "${{ env.SUPPORTED_RUBY_VERSIONS }}"