All checks were successful
Building binaries / build (ubuntu-22.04, 3.4.2) (push) Successful in 20m52s
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
name: Building binaries
|
|
|
|
on:
|
|
# Runs on pushes targeting the default branch
|
|
push:
|
|
branches:
|
|
- main
|
|
# Runs every day at 1 a.m.
|
|
schedule:
|
|
- cron: '0 1 * * *'
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
os: ["ubuntu-22.04"]
|
|
version: ["3.4.2"]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: setup and package Ruby
|
|
run: |
|
|
apt-get update && \
|
|
apt-get install curl wget tar build-essential zlib1g-dev gpg -y && \
|
|
curl -sSL https://rvm.io/mpapis.asc | gpg --import - && \
|
|
curl -sSL https://rvm.io/pkuczynski.asc | gpg --import - && \
|
|
curl -sSL https://get.rvm.io | bash -s stable && \
|
|
source /etc/profile.d/rvm.sh && \
|
|
rvm get head && \
|
|
rvm install ${{ matrix.version }} && \
|
|
ruby -v && \
|
|
rvm prepare ${{ matrix.version }} && \
|
|
ls -la
|
|
- name: push binaries
|
|
run: |
|
|
curl -X POST -H "Authorization: token ${{ secrets.PACKAGES_TOKEN }}" \
|
|
--upload-file ./ruby-${{ matrix.version }}.tar.bz2 \
|
|
"${{ github.api_url }}/api/packages/${{ github.repository_owner }}/generic/${{ matrix.os }}-aarch64/${{ matrix.version }}/ruby-${{ matrix.version }}.tar.bz2"
|