-
Notifications
You must be signed in to change notification settings - Fork 248
67 lines (61 loc) · 1.95 KB
/
Copy pathjruby.yml
File metadata and controls
67 lines (61 loc) · 1.95 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
name: JRuby
on:
push:
branches:
- master
pull_request:
paths:
- ".github/workflows/jruby.yml"
- "include/**"
- "src/**"
- "wasm/**"
- "lib/**"
- "sig/**"
- "core/**"
- "stdlib/**"
- "test/**"
- "Rakefile"
- "rbs.gemspec"
permissions:
contents: read
env:
# Keep in sync with .github/workflows/wasm.yml.
WASI_SDK_VERSION: "33"
WASI_SDK_RELEASE: "33.0"
jobs:
test:
name: jruby
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
# Build the .wasm and fetch the Chicory jars with CRuby + the WASI SDK,
# then run RBS itself on JRuby against those artifacts.
- name: Set up Ruby (to assemble the WebAssembly runtime)
uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
bundler: none
- name: Update rubygems & bundler
run: gem update --system
- name: Install gems
run: |
bundle config set --local without libs:profilers
bundle install --jobs 4 --retry 3
- name: Install the WASI SDK
run: |
url="https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_SDK_VERSION}/wasi-sdk-${WASI_SDK_RELEASE}-x86_64-linux.tar.gz"
mkdir -p "$HOME/wasi-sdk"
curl -sSL "$url" | tar xz --strip-components=1 -C "$HOME/wasi-sdk"
echo "WASI_SDK_PATH=$HOME/wasi-sdk" >> "$GITHUB_ENV"
- name: Assemble the JRuby runtime (rbs_parser.wasm + Chicory jars)
run: bundle exec rake wasm:jruby_setup
- name: Set up JRuby
uses: ruby/setup-ruby@v1
with:
ruby-version: jruby
bundler: none
- name: Install runtime and test gems
run: gem install prism rake rake-compiler test-unit rdoc rspec minitest json-schema pry --no-document
- name: Run the test suite on JRuby
run: jruby -S rake test