Skip to content

v1.80.5

v1.80.5 #164

Workflow file for this run

name: release
on:
push:
tags:
- 'v*'
jobs:
build:
if: github.event.repository.fork == false
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
platform: arm64-darwin
- os: macos-latest
platform: x86_64-darwin
- os: ubuntu-latest
platform: ruby
- os: ubuntu-latest
platform: aarch64-linux-android
- os: ubuntu-latest
platform: arm-linux-androideabi
- os: ubuntu-latest
platform: riscv64-linux-android
- os: ubuntu-latest
platform: x86-linux-android
- os: ubuntu-latest
platform: x86_64-linux-android
- os: ubuntu-latest
platform: aarch64-linux-gnu
- os: ubuntu-latest
platform: arm-linux-gnueabihf
- os: ubuntu-latest
platform: riscv64-linux-gnu
- os: ubuntu-latest
platform: x86-linux-gnu
- os: ubuntu-latest
platform: x86_64-linux-gnu
- os: ubuntu-latest
platform: aarch64-linux-musl
- os: ubuntu-latest
platform: arm-linux-musleabihf
- os: ubuntu-latest
platform: riscv64-linux-musl
- os: ubuntu-latest
platform: x86-linux-musl
- os: ubuntu-latest
platform: x86_64-linux-musl
- os: windows-latest
platform: x86-cygwin
- os: windows-latest
platform: x86_64-cygwin
- os: windows-latest
platform: aarch64-mingw-ucrt
- os: windows-latest
platform: x64-mingw-ucrt
- os: windows-latest
platform: x86-mingw-ucrt
- os: windows-latest
platform: x64-mingw32
- os: windows-latest
platform: x86-mingw32
- os: windows-latest
platform: x64-mswin64
- os: windows-latest
platform: x86-mswin32
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
rubygems: latest
bundler-cache: true
- name: Compile
run: bundle exec rake compile ext_platform=${{ matrix.platform }}
- name: Build
run: rake -f -r bundler/gem_tasks build gem_platform=${{ matrix.platform }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: pkg-${{ matrix.platform }}
path: pkg/*.gem
if-no-files-found: error
compression-level: 0
release:
if: github.event.repository.fork == false
needs: [build]
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
rubygems: latest
- name: Download Artifact
uses: actions/download-artifact@v4
- name: Configure trusted publishing credentials
uses: rubygems/[email protected]
- name: Release
run: find . -name '*.gem' -print0 | sort -rz -t / -k 3 | xargs -0 -n 1 -- gem push