From 058b12327a12091580b85ffd64f2c23b750424cb Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Wed, 28 Aug 2024 18:18:46 +0900 Subject: [PATCH] Make robust CI for the least behaviors --- .github/workflows/release.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2fa64b18..42187199 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,12 +72,23 @@ jobs: check-installability: needs: [build] timeout-minutes: 15 - runs-on: 'ubuntu-24.04' + strategy: + fail-fast: false + # Syntax https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs + matrix: + os: + - ubuntu-24.04 + - macos-14 # aarch64 + - macos-13 # x86_64 + # Due to https://github.com/actions/runner/issues/849, we have to use quotes for 'n.0' + ruby: ['head', '3.3', '3.2'] + runs-on: ${{ matrix.os }} steps: # Required to checkout for gh command - uses: actions/checkout@v4 - uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.190.0 with: + ruby-version: ${{ matrix.ruby }} bundler-cache: false - name: Download release-assets env: @@ -88,7 +99,7 @@ jobs: - name: Make sure we can use the gem run: | gem install 'release-assets/${{ needs.build.outputs.gem_file }}' - ruby -r 'ulid' -e 'pp [ULID.generate, ULID.sample(3)]' + ruby -r 'ulid' -e 'pp [ULID.generate, ULID.sample(3), ULID.parse(%q_01F4A5Y1YAQCYAYCTC7GRMJ9AA_)]' github: if: startsWith(github.ref, 'refs/tags/') needs: [build, check-installability]