Skip to content

Commit

Permalink
WIP Merge shared GC CI
Browse files Browse the repository at this point in the history
  • Loading branch information
eightbitraptor committed Oct 15, 2024
1 parent c35d5c5 commit 24a24d4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 218 deletions.
212 changes: 0 additions & 212 deletions .github/workflows/sharedgc-macos.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
make:
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
gc_name: ['default', 'mmtk']
build: ['debug', 'release']
mmtk_plan: ['MarkSweep', 'Immix']
Expand All @@ -43,7 +44,7 @@ jobs:
GITPULLOPTIONS: --no-tags origin ${{ github.ref }}
RUBY_DEBUG: ci

runs-on: ${{ matrix.os || 'ubuntu-22.04' }}
runs-on: ${{ matrix.os }}

if: >-
${{!(false
Expand All @@ -61,14 +62,19 @@ jobs:
sparse-checkout-cone-mode: false
sparse-checkout: /.github

- uses: ./.github/actions/setup/ubuntu
with:
arch: ${{ matrix.arch }}
- name: Install libraries (macOS)
uses: ./.github/actions/setup/macos
if: ${{ contains(matrix.os, 'macos') }}

- name: Install libraries (Ubuntu)
uses: ./.github/actions/setup/ubuntu
if: ${{ contains(matrix.os, 'ubuntu') }}

- uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.190.0
with:
ruby-version: '3.0'
bundler: none
if: ${{ contains(matrix.os, 'ubuntu') }}

- uses: ./.github/actions/setup/directories
with:
Expand All @@ -80,10 +86,25 @@ jobs:
# Set fetch-depth: 10 so that Launchable can receive commits information.
fetch-depth: 10

- name: make sure that kern.coredump=1
run: |
sysctl -n kern.coredump
sudo sysctl -w kern.coredump=1
sudo chmod -R +rwx /cores/
if: ${{ contains(matrix.os, 'macos') }}

- name: Delete unused SDKs
# To free up disk space to not run out during the run
run: |
sudo rm -rf ~/.dotnet
sudo rm -rf /Library/Android
sudo rm -rf /Library/Developer/CoreSimulator
continue-on-error: true
if: ${{ contains(matrix.os, 'macos') }}

- name: Run configure
env:
arch: ${{ matrix.arch }}
configure: ${{ matrix.configure }}
configure: ${{ matrix.configure }} ${ruby_configure_args}
run: >-
$SETARCH ../src/configure -C --disable-install-doc ${configure:-cppflags=-DRUBY_DEBUG}
${arch:+--target=$arch-$OSTYPE --host=$arch-$OSTYPE}
Expand Down

0 comments on commit 24a24d4

Please sign in to comment.