-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7caa167
commit 7718266
Showing
3 changed files
with
70 additions
and
66 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: MMTk Builder | ||
description: >- | ||
Installs and configures OS Ruby build deps and Rust for MMTk | ||
on: | ||
workflow_call: | ||
inputs: | ||
os: | ||
desciption: Short string representing OS (ubuntu|macos) | ||
required: true | ||
default: ubuntu | ||
|
||
mmtk_plan: | ||
description: the MMTk plan name to store in the environment | ||
require: true | ||
default: MarkSweep | ||
|
||
mmtk_build: | ||
description: The MMTk build (debug|release) | ||
require: true | ||
default: release | ||
|
||
jobs: | ||
build: | ||
steps: | ||
- name: Install libraries (macOS) | ||
shell: bash | ||
uses: ./.github/actions/setup/macos | ||
if: ${{ contains(inputs.os, 'macos') }} | ||
|
||
- name: Install libraries (Ubuntu) | ||
shell: bash | ||
uses: ./.github/actions/setup/ubuntu | ||
if: ${{ contains(inputs.os, 'ubuntu') }} | ||
|
||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
- name: Set MMTk environment variables | ||
shell: bash | ||
run: | | ||
if [[ ${{ inputs.mmtk_build }} == debug ]]; then | ||
echo 'RUST_LOG=' >> $GITHUB_ENV | ||
# Debug builds run much slower so we should increase the timeout | ||
echo 'RUBY_TEST_TIMEOUT_SCALE=10' >> $GITHUB_ENV | ||
# SYNTAX_SUGGEST_TIMEOUT defaults to 1 second | ||
echo 'SYNTAX_SUGGEST_TIMEOUT=60' >> $GITHUB_ENV | ||
fi | ||
echo 'MMTK_PLAN=${{ inputs.mmtk_plan }}' >> $GITHUB_ENV | ||
- uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.190.0 | ||
shell: bash | ||
with: | ||
ruby-version: '3.3' | ||
if: ${{ contains(inputs.os, 'ubuntu') }} | ||
|
||
- name: make sure that kern.coredump=1 | ||
shell: bash | ||
run: | | ||
sysctl -n kern.coredump | ||
sudo sysctl -w kern.coredump=1 | ||
sudo chmod -R +rwx /cores/ | ||
if: ${{ contains(inputs.os, 'macos') }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters