Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Inventory & Sha7 appended filenames for binaries #51

Merged
merged 18 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/build_jruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,13 @@ jobs:
- name: Upload Ruby runtime archive to S3 production
if: (!inputs.dry_run)
run: aws s3 sync ./output "s3://${S3_BUCKET}"

after-build-and-upload:
needs: build-and-upload
runs-on: pub-hk-ubuntu-24.04-xlarge
steps:
- name: Update Jruby inventory file locally
uses: peter-evans/create-pull-request@v6
with:
path: jruby_inventory.toml
title: "Add JRuby ${{inputs.jruby_version}} to inventory"
12 changes: 11 additions & 1 deletion .github/workflows/build_ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ env:
S3_BUCKET: "heroku-buildpack-ruby"

jobs:
build_ruby:
build-and-upload:
runs-on: ${{ matrix.arch == 'arm64' && 'pub-hk-ubuntu-24.04-arm-xlarge' || 'pub-hk-ubuntu-24.04-xlarge' }}
strategy:
matrix:
Expand Down Expand Up @@ -56,3 +56,13 @@ jobs:
- name: Upload Ruby runtime archive to S3 production
if: (!inputs.dry_run)
run: aws s3 sync ./output "s3://${S3_BUCKET}"

after-build-and-upload:
needs: build-and-upload
runs-on: pub-hk-ubuntu-24.04-xlarge
steps:
- name: Update Ruby inventory file locally
uses: peter-evans/create-pull-request@v6
with:
path: ruby_inventory.toml
title: "Add Ruby ${{inputs.ruby_version}} to inventory"
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,22 @@ jobs:
run: cargo run --bin jruby_build -- --version ${{matrix.version}} --base-image ${{matrix.base_image}}
- name: Check JRuby
run: cargo run --bin jruby_check -- --version ${{matrix.version}} --base-image ${{matrix.base_image}} --arch ${{matrix.arch}}

check_inventory_urls:
runs-on: ubuntu-24.04
if: (!contains(github.event.pull_request.labels.*.name, 'skip inventory check'))
strategy:
matrix:
inventory: ["jruby_inventory.toml", "ruby_inventory.toml"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Grab prior commits
run: |
set -eu
set pipefail

git fetch origin ${{ github.base_ref }} --depth 1 && \
git diff --unified=0 remotes/origin/${{ github.base_ref }} ${{matrix.inventory}} | grep '^+' | grep -v '^+++' | cut -c2- > check_inventory.toml
- name: Check manifest URLs
run: cargo run --bin inventory_check -- check_inventory.toml
Loading
Loading