Skip to content

Set up a fork with native builds #18

Set up a fork with native builds

Set up a fork with native builds #18

Workflow file for this run

---
name: Compile and Upload
on:
workflow_dispatch:
push:
tags:
- "v*"
jobs:
ci-data:
name: Fetch CI data
runs-on: ubuntu-latest
outputs:
result: ${{ steps.fetch.outputs.result }}
steps:
- uses: oxidize-rb/actions/fetch-ci-data@v1
id: fetch
with:
supported-ruby-platforms: true
stable-ruby-versions: |
exclude: [head]
cross-gem:
name: ${{ matrix.platform }} compilation
runs-on: ubuntu-latest
needs: ci-data
strategy:
matrix:
platform: ${{ fromJSON(needs.ci-data.outputs.result).supported-ruby-platforms }}
steps:
- uses: actions/checkout@v3
name: Checkout project
- uses: ruby/setup-ruby@v1
name: Setup ruby
with:
ruby-version: 3.2
- uses: oxidize-rb/actions/cross-gem@v1
name: Compile ${{ matrix.platform }}
id: cross-gem
with:
platform: ${{ matrix.platform }}
ruby-versions: ${{ join(fromJSON(needs.ci-data.outputs.result).stable-ruby-versions, ',') }}
- name: Display structure of downloaded files
run: ls -R
working-directory: pkg
- uses: fac/ruby-gem-setup-credentials-action@v2
name: Set up github creds for pushing
with:
user: ""
key: rubygems
token: ${{ secrets.RUBYGEMS_KEY }}
- uses: fac/ruby-gem-push-action@v2
name: Push gem to Github Packages
with:
key: rubygems
- uses: actions/upload-artifact@v3
name: upload push.out
with:
name: pushout
path: push.out