Skip to content

Commit

Permalink
Initial Github Action attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Jun 30, 2023
1 parent 968ab9a commit a9944fd
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build_ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build and upload Ruby runtime
run-name: "Build and upload Ruby ${{ inputs.ruby_version }}${{ inputs.dry_run && ' (dry run)' || '' }}"

on:
push:
paths:
- ".github/workflows/**/*"
workflow_dispatch:
inputs:
ruby_version:
description: "The Ruby version to build, specified as X.Y.Z"
type: string
required: true
dry_run:
description: "Skip deploying to S3 (e.g. for testing)"
type: boolean
default: false
required: false

permissions:
contents: read

# env:
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# AWS_DEFAULT_REGION: "us-west-2"
# S3_BUCKET: "heroku-buildpack-ruby"

jobs:
build-and-upload-heroku-20:
runs-on: pub-hk-ubuntu-22.04-xlarge
env:
STACK: "heroku-20"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
with:
ruby-version: '3.1'
- name: Install dependencies
run: bundle install
- name: Build Docker image
run: bundle exec rake "generate_image[$STACK]"
- name: Generate Ruby Dockerfile
run: bundle exec rake "new[3.1.3,$STACK]"
- name: Build and package Ruby runtime
run: bash "rubies/$STACK/ruby-3.1.3.sh"

0 comments on commit a9944fd

Please sign in to comment.