Skip to content

WIP

WIP #2

Workflow file for this run

name: "Package gems with precompiled binaries"
on:
workflow_dispatch:
inputs:
release:
description: "If the whole build passes on all platforms, release the gems on RubyGems.org"
required: false
type: boolean
default: false
push: # Extra
jobs:
compile:
timeout-minutes: 20
name: "Cross compile the gem on different ruby versions"
strategy:
matrix:
os: ["macos-latest", "macos-15-intel", "ubuntu-latest", "windows-latest"]
runs-on: "${{ matrix.os }}"
steps:
- name: "Checkout code"
uses: "actions/checkout@v5"
- name: "Setup Ruby"
uses: "ruby/setup-ruby@v1"
with:
ruby-version: "3.4.6"
bundler-cache: true
working-directory: "test/fixtures/date" # EXTRA
- name: "Run easy compile"
uses: "shopify-playground/edouard-playground/.github/actions/easy_compile@easy-compile"
with:
step: "compile"
working-directory: "test/fixtures/date" # EXTRA
test:
timeout-minutes: 20
name: "Run the test suite"
needs: compile
strategy:
matrix:
os: ["macos-latest", "macos-15-intel", "ubuntu-latest", "windows-latest"]
rubies: ["3.0.7", "3.1.7", "3.2.9", "3.3.9", "3.4.6"]
type: ["cross", "native"]
runs-on: "${{ matrix.os }}"
steps:
- name: "Checkout code"
uses: "actions/checkout@v5"
- name: "Setup Ruby"
uses: "ruby/setup-ruby@v1"
with:
ruby-version: "${{ matrix.rubies }}"
bundler-cache: true
working-directory: "test/fixtures/date" # EXTRA
- name: "Run easy compile"
uses: "shopify-playground/edouard-playground/.github/actions/easy_compile@easy-compile"
with:
step: "test_${{ matrix.type }}"
working-directory: "test/fixtures/date" # EXTRA
install:
timeout-minutes: 5
name: "Verify the gem can be installed"
needs: test
strategy:
matrix:
os: ["macos-latest", "macos-15-intel", "ubuntu-latest", "windows-latest"]
runs-on: "${{ matrix.os }}"
steps:
- name: "Setup Ruby"
uses: "ruby/setup-ruby@v1"
with:
ruby-version: "3.4.6"
working-directory: "test/fixtures/date" # EXTRA
- name: "Run easy compile"
uses: "shopify-playground/edouard-playground/.github/actions/easy_compile@easy-compile"
with:
step: "install"
working-directory: "test/fixtures/date" # EXTRA
release:
permissions:
id-token: write
timeout-minutes: 5
if: ${{ inputs.release }}
name: "Release all gems with RubyGems"
needs: install
runs-on: "ubuntu-latest"
steps:
- name: "Setup Ruby"
uses: "ruby/setup-ruby@v1"
with:
ruby-version: "3.4.7"
bundler-cache: true
working-directory: "test/fixtures/date" # EXTRA
- name: "Run easy compile"
uses: "shopify-playground/edouard-playground/.github/actions/easy_publish@easy-compile"
with: # EXTRA
working-directory: "test/fixtures/date" # EXTRA