Skip to content

Commit

Permalink
Clone graal using mx sforceimports
Browse files Browse the repository at this point in the history
* Simpler and fixes the issue that `jt install jvmci` would clone graal too.
  • Loading branch information
eregon committed Nov 23, 2023
1 parent d42087f commit a1f5adb
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,36 +99,32 @@ jobs:
- name: Setup system ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
ruby-version: 3.2
- name: Setup system python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- run: echo "SDKROOT=$(xcrun --show-sdk-path)" >> $GITHUB_ENV
if: startsWith(matrix.os, 'macos')

- name: Setup jt
run: echo "$PWD/bin" >> $GITHUB_PATH
- name: Clone Graal
run: jt sforceimports
- name: Install JVMCI
run: |
tool/jt.rb install jvmci
echo "JAVA_HOME=$(tool/jt.rb install jvmci)" >> $GITHUB_ENV
jt install jvmci
echo "JAVA_HOME=$(jt install jvmci)" >> $GITHUB_ENV
- name: Install mx
run: tool/jt.rb mx --version
- name: Clone Graal
uses: actions/checkout@v3
with:
repository: oracle/graal
path: graal
fetch-depth: 0
- run: mv graal ..
- run: tool/jt.rb mx sforceimports
run: jt mx --version

- run: free -m
if: startsWith(matrix.os, 'ubuntu-')
- name: Build TruffleRuby
run: tool/jt.rb build --env native
run: jt build --env native

- run: mkdir -p ~/.rubies
- run: mv $(tool/jt.rb mx --env native standalone-home ruby) ~/.rubies/truffleruby-head
- run: mv $(jt mx --env native standalone-home ruby) ~/.rubies/truffleruby-head
- name: Create archive
run: tar czf truffleruby-head-${{ steps.platform.outputs.platform }}.tar.gz -C ~/.rubies truffleruby-head

Expand Down

0 comments on commit a1f5adb

Please sign in to comment.