Add accessors for parallel build dependencies #10
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
Check failure on line 1 in .github/workflows/release-images.yml
|
||
| name: Release docker images to GHCR | ||
| # | ||
| # This workflow assumes the maintainer has chosen the appropriate tag in the workflow dispatch UI. | ||
| # | ||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| tag: | ||
| description: "Tag name to release" | ||
| required: true | ||
| concurrency: | ||
| group: "${{github.workflow}}-${{github.ref}}" | ||
| cancel-in-progress: true | ||
| jobs: | ||
| common-7f790bc6d2444edacd5337c9048dae13842eb9ff: | ||
| name: "build ${{ matrix.os }} common-7f790bc6d2444edacd5337c9048dae13842eb9ff" | ||
| needs: common-8c26987a5e78ace67587139520ec4d44e00a8f54 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - ubuntu-24.04-arm | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ inputs.tag }} | ||
| - uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: "3.3" | ||
| bundler-cache: true | ||
| - name: Fetch docker buildx layer cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: tmp/build-cache-${{ runner.arch }} | ||
| key: ${{ runner.os }}-on-${{ runner.arch }}-common-7f790bc6d2444edacd5337c9048dae13842eb9ff-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-${{ runner.arch }}-common-7f790bc6d2444edacd5337c9048dae13842eb9ff | ||
| enableCrossOsArchive: true | ||
| - name: Build the image for platform common-7f790bc6d2444edacd5337c9048dae13842eb9ff on ${{ runner.arch }} | ||
| run: | | ||
| # Change docker to a cache-able driver | ||
| docker buildx create --driver docker-container --use | ||
| bundle exec rake build:common-7f790bc6d2444edacd5337c9048dae13842eb9ff RCD_DOCKER_BUILD="docker buildx build --cache-from=type=local,compression=zstd,src=tmp/build-cache-${{ runner.arch }} --cache-to=type=local,compression=zstd,dest=tmp/build-cache-new" | ||
| - name: Show docker images | ||
| run: docker images | ||
| - name: Update and prune docker buildx layer cache | ||
| run: | | ||
| rm -rf tmp/build-cache-${{ runner.arch }} | ||
| mv tmp/build-cache-new tmp/build-cache-${{ runner.arch }} | ||
| common-7f790bc6d2444edacd5337c9048dae13842eb9ff: | ||
| name: "build ${{ matrix.os }} common-7f790bc6d2444edacd5337c9048dae13842eb9ff" | ||
| needs: common-8c26987a5e78ace67587139520ec4d44e00a8f54 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - ubuntu-24.04-arm | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ inputs.tag }} | ||
| - uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: "3.3" | ||
| bundler-cache: true | ||
| - name: Fetch docker buildx layer cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: tmp/build-cache-${{ runner.arch }} | ||
| key: ${{ runner.os }}-on-${{ runner.arch }}-common-7f790bc6d2444edacd5337c9048dae13842eb9ff-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-${{ runner.arch }}-common-7f790bc6d2444edacd5337c9048dae13842eb9ff | ||
| enableCrossOsArchive: true | ||
| - name: Build the image for platform common-7f790bc6d2444edacd5337c9048dae13842eb9ff on ${{ runner.arch }} | ||
| run: | | ||
| # Change docker to a cache-able driver | ||
| docker buildx create --driver docker-container --use | ||
| bundle exec rake build:common-7f790bc6d2444edacd5337c9048dae13842eb9ff RCD_DOCKER_BUILD="docker buildx build --cache-from=type=local,compression=zstd,src=tmp/build-cache-${{ runner.arch }} --cache-to=type=local,compression=zstd,dest=tmp/build-cache-new" | ||
| - name: Show docker images | ||
| run: docker images | ||
| - name: Update and prune docker buildx layer cache | ||
| run: | | ||
| rm -rf tmp/build-cache-${{ runner.arch }} | ||
| mv tmp/build-cache-new tmp/build-cache-${{ runner.arch }} | ||
| common-7f790bc6d2444edacd5337c9048dae13842eb9ff: | ||
| name: "build ${{ matrix.os }} common-7f790bc6d2444edacd5337c9048dae13842eb9ff" | ||
| needs: common-8c26987a5e78ace67587139520ec4d44e00a8f54 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - ubuntu-24.04-arm | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ inputs.tag }} | ||
| - uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: "3.3" | ||
| bundler-cache: true | ||
| - name: Fetch docker buildx layer cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: tmp/build-cache-${{ runner.arch }} | ||
| key: ${{ runner.os }}-on-${{ runner.arch }}-common-7f790bc6d2444edacd5337c9048dae13842eb9ff-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-${{ runner.arch }}-common-7f790bc6d2444edacd5337c9048dae13842eb9ff | ||
| enableCrossOsArchive: true | ||
| - name: Build the image for platform common-7f790bc6d2444edacd5337c9048dae13842eb9ff on ${{ runner.arch }} | ||
| run: | | ||
| # Change docker to a cache-able driver | ||
| docker buildx create --driver docker-container --use | ||
| bundle exec rake build:common-7f790bc6d2444edacd5337c9048dae13842eb9ff RCD_DOCKER_BUILD="docker buildx build --cache-from=type=local,compression=zstd,src=tmp/build-cache-${{ runner.arch }} --cache-to=type=local,compression=zstd,dest=tmp/build-cache-new" | ||
| - name: Show docker images | ||
| run: docker images | ||
| - name: Update and prune docker buildx layer cache | ||
| run: | | ||
| rm -rf tmp/build-cache-${{ runner.arch }} | ||
| mv tmp/build-cache-new tmp/build-cache-${{ runner.arch }} | ||
| common-7f790bc6d2444edacd5337c9048dae13842eb9ff: | ||
| name: "build ${{ matrix.os }} common-7f790bc6d2444edacd5337c9048dae13842eb9ff" | ||
| needs: common-8c26987a5e78ace67587139520ec4d44e00a8f54 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - ubuntu-24.04-arm | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ inputs.tag }} | ||
| - uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: "3.3" | ||
| bundler-cache: true | ||
| - name: Fetch docker buildx layer cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: tmp/build-cache-${{ runner.arch }} | ||
| key: ${{ runner.os }}-on-${{ runner.arch }}-common-7f790bc6d2444edacd5337c9048dae13842eb9ff-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-${{ runner.arch }}-common-7f790bc6d2444edacd5337c9048dae13842eb9ff | ||
| enableCrossOsArchive: true | ||
| - name: Build the image for platform common-7f790bc6d2444edacd5337c9048dae13842eb9ff on ${{ runner.arch }} | ||
| run: | | ||
| # Change docker to a cache-able driver | ||
| docker buildx create --driver docker-container --use | ||
| bundle exec rake build:common-7f790bc6d2444edacd5337c9048dae13842eb9ff RCD_DOCKER_BUILD="docker buildx build --cache-from=type=local,compression=zstd,src=tmp/build-cache-${{ runner.arch }} --cache-to=type=local,compression=zstd,dest=tmp/build-cache-new" | ||
| - name: Show docker images | ||
| run: docker images | ||
| - name: Update and prune docker buildx layer cache | ||
| run: | | ||
| rm -rf tmp/build-cache-${{ runner.arch }} | ||
| mv tmp/build-cache-new tmp/build-cache-${{ runner.arch }} | ||
| common-d1f437046b79903f679102aadd5269e80f584d09: | ||
| name: "build ${{ matrix.os }} common-d1f437046b79903f679102aadd5269e80f584d09" | ||
| needs: common-8c26987a5e78ace67587139520ec4d44e00a8f54 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - ubuntu-24.04-arm | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ inputs.tag }} | ||
| - uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: "3.3" | ||
| bundler-cache: true | ||
| - name: Fetch docker buildx layer cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: tmp/build-cache-${{ runner.arch }} | ||
| key: ${{ runner.os }}-on-${{ runner.arch }}-common-d1f437046b79903f679102aadd5269e80f584d09-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-${{ runner.arch }}-common-d1f437046b79903f679102aadd5269e80f584d09 | ||
| enableCrossOsArchive: true | ||
| - name: Build the image for platform common-d1f437046b79903f679102aadd5269e80f584d09 on ${{ runner.arch }} | ||
| run: | | ||
| # Change docker to a cache-able driver | ||
| docker buildx create --driver docker-container --use | ||
| bundle exec rake build:common-d1f437046b79903f679102aadd5269e80f584d09 RCD_DOCKER_BUILD="docker buildx build --cache-from=type=local,compression=zstd,src=tmp/build-cache-${{ runner.arch }} --cache-to=type=local,compression=zstd,dest=tmp/build-cache-new" | ||
| - name: Show docker images | ||
| run: docker images | ||
| - name: Update and prune docker buildx layer cache | ||
| run: | | ||
| rm -rf tmp/build-cache-${{ runner.arch }} | ||
| mv tmp/build-cache-new tmp/build-cache-${{ runner.arch }} | ||
| common-d1f437046b79903f679102aadd5269e80f584d09: | ||
| name: "build ${{ matrix.os }} common-d1f437046b79903f679102aadd5269e80f584d09" | ||
| needs: common-8c26987a5e78ace67587139520ec4d44e00a8f54 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - ubuntu-24.04-arm | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ inputs.tag }} | ||
| - uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: "3.3" | ||
| bundler-cache: true | ||
| - name: Fetch docker buildx layer cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: tmp/build-cache-${{ runner.arch }} | ||
| key: ${{ runner.os }}-on-${{ runner.arch }}-common-d1f437046b79903f679102aadd5269e80f584d09-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-${{ runner.arch }}-common-d1f437046b79903f679102aadd5269e80f584d09 | ||
| enableCrossOsArchive: true | ||
| - name: Build the image for platform common-d1f437046b79903f679102aadd5269e80f584d09 on ${{ runner.arch }} | ||
| run: | | ||
| # Change docker to a cache-able driver | ||
| docker buildx create --driver docker-container --use | ||
| bundle exec rake build:common-d1f437046b79903f679102aadd5269e80f584d09 RCD_DOCKER_BUILD="docker buildx build --cache-from=type=local,compression=zstd,src=tmp/build-cache-${{ runner.arch }} --cache-to=type=local,compression=zstd,dest=tmp/build-cache-new" | ||
| - name: Show docker images | ||
| run: docker images | ||
| - name: Update and prune docker buildx layer cache | ||
| run: | | ||
| rm -rf tmp/build-cache-${{ runner.arch }} | ||
| mv tmp/build-cache-new tmp/build-cache-${{ runner.arch }} | ||
| common-8c26987a5e78ace67587139520ec4d44e00a8f54: | ||
| name: "build ${{ matrix.os }} common-8c26987a5e78ace67587139520ec4d44e00a8f54" | ||
| needs: common-8a6d86116e9a9ffad5888a4a8b7fbee50535dbe0 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - ubuntu-24.04-arm | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ inputs.tag }} | ||
| - uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: "3.3" | ||
| bundler-cache: true | ||
| - name: Fetch docker buildx layer cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: tmp/build-cache-${{ runner.arch }} | ||
| key: ${{ runner.os }}-on-${{ runner.arch }}-common-8c26987a5e78ace67587139520ec4d44e00a8f54-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-${{ runner.arch }}-common-8c26987a5e78ace67587139520ec4d44e00a8f54 | ||
| enableCrossOsArchive: true | ||
| - name: Build the image for platform common-8c26987a5e78ace67587139520ec4d44e00a8f54 on ${{ runner.arch }} | ||
| run: | | ||
| # Change docker to a cache-able driver | ||
| docker buildx create --driver docker-container --use | ||
| bundle exec rake build:common-8c26987a5e78ace67587139520ec4d44e00a8f54 RCD_DOCKER_BUILD="docker buildx build --cache-from=type=local,compression=zstd,src=tmp/build-cache-${{ runner.arch }} --cache-to=type=local,compression=zstd,dest=tmp/build-cache-new" | ||
| - name: Show docker images | ||
| run: docker images | ||
| - name: Update and prune docker buildx layer cache | ||
| run: | | ||
| rm -rf tmp/build-cache-${{ runner.arch }} | ||
| mv tmp/build-cache-new tmp/build-cache-${{ runner.arch }} | ||
| common-8c26987a5e78ace67587139520ec4d44e00a8f54: | ||
| name: "build ${{ matrix.os }} common-8c26987a5e78ace67587139520ec4d44e00a8f54" | ||
| needs: common-8a6d86116e9a9ffad5888a4a8b7fbee50535dbe0 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - ubuntu-24.04-arm | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ inputs.tag }} | ||
| - uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: "3.3" | ||
| bundler-cache: true | ||
| - name: Fetch docker buildx layer cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: tmp/build-cache-${{ runner.arch }} | ||
| key: ${{ runner.os }}-on-${{ runner.arch }}-common-8c26987a5e78ace67587139520ec4d44e00a8f54-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-${{ runner.arch }}-common-8c26987a5e78ace67587139520ec4d44e00a8f54 | ||
| enableCrossOsArchive: true | ||
| - name: Build the image for platform common-8c26987a5e78ace67587139520ec4d44e00a8f54 on ${{ runner.arch }} | ||
| run: | | ||
| # Change docker to a cache-able driver | ||
| docker buildx create --driver docker-container --use | ||
| bundle exec rake build:common-8c26987a5e78ace67587139520ec4d44e00a8f54 RCD_DOCKER_BUILD="docker buildx build --cache-from=type=local,compression=zstd,src=tmp/build-cache-${{ runner.arch }} --cache-to=type=local,compression=zstd,dest=tmp/build-cache-new" | ||
| - name: Show docker images | ||
| run: docker images | ||
| - name: Update and prune docker buildx layer cache | ||
| run: | | ||
| rm -rf tmp/build-cache-${{ runner.arch }} | ||
| mv tmp/build-cache-new tmp/build-cache-${{ runner.arch }} | ||
| common-8c26987a5e78ace67587139520ec4d44e00a8f54: | ||
| name: "build ${{ matrix.os }} common-8c26987a5e78ace67587139520ec4d44e00a8f54" | ||
| needs: common-8a6d86116e9a9ffad5888a4a8b7fbee50535dbe0 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - ubuntu-24.04-arm | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ inputs.tag }} | ||
| - uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: "3.3" | ||
| bundler-cache: true | ||
| - name: Fetch docker buildx layer cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: tmp/build-cache-${{ runner.arch }} | ||
| key: ${{ runner.os }}-on-${{ runner.arch }}-common-8c26987a5e78ace67587139520ec4d44e00a8f54-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-${{ runner.arch }}-common-8c26987a5e78ace67587139520ec4d44e00a8f54 | ||
| enableCrossOsArchive: true | ||
| - name: Build the image for platform common-8c26987a5e78ace67587139520ec4d44e00a8f54 on ${{ runner.arch }} | ||
| run: | | ||
| # Change docker to a cache-able driver | ||
| docker buildx create --driver docker-container --use | ||
| bundle exec rake build:common-8c26987a5e78ace67587139520ec4d44e00a8f54 RCD_DOCKER_BUILD="docker buildx build --cache-from=type=local,compression=zstd,src=tmp/build-cache-${{ runner.arch }} --cache-to=type=local,compression=zstd,dest=tmp/build-cache-new" | ||
| - name: Show docker images | ||
| run: docker images | ||
| - name: Update and prune docker buildx layer cache | ||
| run: | | ||
| rm -rf tmp/build-cache-${{ runner.arch }} | ||
| mv tmp/build-cache-new tmp/build-cache-${{ runner.arch }} | ||
| common-8c26987a5e78ace67587139520ec4d44e00a8f54: | ||
| name: "build ${{ matrix.os }} common-8c26987a5e78ace67587139520ec4d44e00a8f54" | ||
| needs: common-8a6d86116e9a9ffad5888a4a8b7fbee50535dbe0 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - ubuntu-24.04-arm | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ inputs.tag }} | ||
| - uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: "3.3" | ||
| bundler-cache: true | ||
| - name: Fetch docker buildx layer cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: tmp/build-cache-${{ runner.arch }} | ||
| key: ${{ runner.os }}-on-${{ runner.arch }}-common-8c26987a5e78ace67587139520ec4d44e00a8f54-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-${{ runner.arch }}-common-8c26987a5e78ace67587139520ec4d44e00a8f54 | ||
| enableCrossOsArchive: true | ||
| - name: Build the image for platform common-8c26987a5e78ace67587139520ec4d44e00a8f54 on ${{ runner.arch }} | ||
| run: | | ||
| # Change docker to a cache-able driver | ||
| docker buildx create --driver docker-container --use | ||
| bundle exec rake build:common-8c26987a5e78ace67587139520ec4d44e00a8f54 RCD_DOCKER_BUILD="docker buildx build --cache-from=type=local,compression=zstd,src=tmp/build-cache-${{ runner.arch }} --cache-to=type=local,compression=zstd,dest=tmp/build-cache-new" | ||
| - name: Show docker images | ||
| run: docker images | ||
| - name: Update and prune docker buildx layer cache | ||
| run: | | ||
| rm -rf tmp/build-cache-${{ runner.arch }} | ||
| mv tmp/build-cache-new tmp/build-cache-${{ runner.arch }} | ||
| common-8c26987a5e78ace67587139520ec4d44e00a8f54: | ||
| name: "build ${{ matrix.os }} common-8c26987a5e78ace67587139520ec4d44e00a8f54" | ||
| needs: common-8a6d86116e9a9ffad5888a4a8b7fbee50535dbe0 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - ubuntu-24.04-arm | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ inputs.tag }} | ||
| - uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: "3.3" | ||
| bundler-cache: true | ||
| - name: Fetch docker buildx layer cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: tmp/build-cache-${{ runner.arch }} | ||
| key: ${{ runner.os }}-on-${{ runner.arch }}-common-8c26987a5e78ace67587139520ec4d44e00a8f54-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-${{ runner.arch }}-common-8c26987a5e78ace67587139520ec4d44e00a8f54 | ||
| enableCrossOsArchive: true | ||
| - name: Build the image for platform common-8c26987a5e78ace67587139520ec4d44e00a8f54 on ${{ runner.arch }} | ||
| run: | | ||
| # Change docker to a cache-able driver | ||
| docker buildx create --driver docker-container --use | ||
| bundle exec rake build:common-8c26987a5e78ace67587139520ec4d44e00a8f54 RCD_DOCKER_BUILD="docker buildx build --cache-from=type=local,compression=zstd,src=tmp/build-cache-${{ runner.arch }} --cache-to=type=local,compression=zstd,dest=tmp/build-cache-new" | ||
| - name: Show docker images | ||
| run: docker images | ||
| - name: Update and prune docker buildx layer cache | ||
| run: | | ||
| rm -rf tmp/build-cache-${{ runner.arch }} | ||
| mv tmp/build-cache-new tmp/build-cache-${{ runner.arch }} | ||
| common-8c26987a5e78ace67587139520ec4d44e00a8f54: | ||
| name: "build ${{ matrix.os }} common-8c26987a5e78ace67587139520ec4d44e00a8f54" | ||
| needs: common-8a6d86116e9a9ffad5888a4a8b7fbee50535dbe0 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - ubuntu-24.04-arm | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ inputs.tag }} | ||
| - uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: "3.3" | ||
| bundler-cache: true | ||
| - name: Fetch docker buildx layer cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: tmp/build-cache-${{ runner.arch }} | ||
| key: ${{ runner.os }}-on-${{ runner.arch }}-common-8c26987a5e78ace67587139520ec4d44e00a8f54-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-${{ runner.arch }}-common-8c26987a5e78ace67587139520ec4d44e00a8f54 | ||
| enableCrossOsArchive: true | ||
| - name: Build the image for platform common-8c26987a5e78ace67587139520ec4d44e00a8f54 on ${{ runner.arch }} | ||
| run: | | ||
| # Change docker to a cache-able driver | ||
| docker buildx create --driver docker-container --use | ||
| bundle exec rake build:common-8c26987a5e78ace67587139520ec4d44e00a8f54 RCD_DOCKER_BUILD="docker buildx build --cache-from=type=local,compression=zstd,src=tmp/build-cache-${{ runner.arch }} --cache-to=type=local,compression=zstd,dest=tmp/build-cache-new" | ||
| - name: Show docker images | ||
| run: docker images | ||
| - name: Update and prune docker buildx layer cache | ||
| run: | | ||
| rm -rf tmp/build-cache-${{ runner.arch }} | ||
| mv tmp/build-cache-new tmp/build-cache-${{ runner.arch }} | ||
| common-8c26987a5e78ace67587139520ec4d44e00a8f54: | ||
| name: "build ${{ matrix.os }} common-8c26987a5e78ace67587139520ec4d44e00a8f54" | ||
| needs: common-8a6d86116e9a9ffad5888a4a8b7fbee50535dbe0 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - ubuntu-24.04-arm | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ inputs.tag }} | ||
| - uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: "3.3" | ||
| bundler-cache: true | ||
| - name: Fetch docker buildx layer cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: tmp/build-cache-${{ runner.arch }} | ||
| key: ${{ runner.os }}-on-${{ runner.arch }}-common-8c26987a5e78ace67587139520ec4d44e00a8f54-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-${{ runner.arch }}-common-8c26987a5e78ace67587139520ec4d44e00a8f54 | ||
| enableCrossOsArchive: true | ||
| - name: Build the image for platform common-8c26987a5e78ace67587139520ec4d44e00a8f54 on ${{ runner.arch }} | ||
| run: | | ||
| # Change docker to a cache-able driver | ||
| docker buildx create --driver docker-container --use | ||
| bundle exec rake build:common-8c26987a5e78ace67587139520ec4d44e00a8f54 RCD_DOCKER_BUILD="docker buildx build --cache-from=type=local,compression=zstd,src=tmp/build-cache-${{ runner.arch }} --cache-to=type=local,compression=zstd,dest=tmp/build-cache-new" | ||
| - name: Show docker images | ||
| run: docker images | ||
| - name: Update and prune docker buildx layer cache | ||
| run: | | ||
| rm -rf tmp/build-cache-${{ runner.arch }} | ||
| mv tmp/build-cache-new tmp/build-cache-${{ runner.arch }} | ||
| common-8c26987a5e78ace67587139520ec4d44e00a8f54: | ||
| name: "build ${{ matrix.os }} common-8c26987a5e78ace67587139520ec4d44e00a8f54" | ||
| needs: common-8a6d86116e9a9ffad5888a4a8b7fbee50535dbe0 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - ubuntu-24.04-arm | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ inputs.tag }} | ||
| - uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: "3.3" | ||
| bundler-cache: true | ||
| - name: Fetch docker buildx layer cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: tmp/build-cache-${{ runner.arch }} | ||
| key: ${{ runner.os }}-on-${{ runner.arch }}-common-8c26987a5e78ace67587139520ec4d44e00a8f54-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-${{ runner.arch }}-common-8c26987a5e78ace67587139520ec4d44e00a8f54 | ||
| enableCrossOsArchive: true | ||
| - name: Build the image for platform common-8c26987a5e78ace67587139520ec4d44e00a8f54 on ${{ runner.arch }} | ||
| run: | | ||
| # Change docker to a cache-able driver | ||
| docker buildx create --driver docker-container --use | ||
| bundle exec rake build:common-8c26987a5e78ace67587139520ec4d44e00a8f54 RCD_DOCKER_BUILD="docker buildx build --cache-from=type=local,compression=zstd,src=tmp/build-cache-${{ runner.arch }} --cache-to=type=local,compression=zstd,dest=tmp/build-cache-new" | ||
| - name: Show docker images | ||
| run: docker images | ||
| - name: Update and prune docker buildx layer cache | ||
| run: | | ||
| rm -rf tmp/build-cache-${{ runner.arch }} | ||
| mv tmp/build-cache-new tmp/build-cache-${{ runner.arch }} | ||
| common-8c26987a5e78ace67587139520ec4d44e00a8f54: | ||
| name: "build ${{ matrix.os }} common-8c26987a5e78ace67587139520ec4d44e00a8f54" | ||
| needs: common-8a6d86116e9a9ffad5888a4a8b7fbee50535dbe0 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - ubuntu-24.04-arm | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ inputs.tag }} | ||
| - uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: "3.3" | ||
| bundler-cache: true | ||
| - name: Fetch docker buildx layer cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: tmp/build-cache-${{ runner.arch }} | ||
| key: ${{ runner.os }}-on-${{ runner.arch }}-common-8c26987a5e78ace67587139520ec4d44e00a8f54-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-${{ runner.arch }}-common-8c26987a5e78ace67587139520ec4d44e00a8f54 | ||
| enableCrossOsArchive: true | ||
| - name: Build the image for platform common-8c26987a5e78ace67587139520ec4d44e00a8f54 on ${{ runner.arch }} | ||
| run: | | ||
| # Change docker to a cache-able driver | ||
| docker buildx create --driver docker-container --use | ||
| bundle exec rake build:common-8c26987a5e78ace67587139520ec4d44e00a8f54 RCD_DOCKER_BUILD="docker buildx build --cache-from=type=local,compression=zstd,src=tmp/build-cache-${{ runner.arch }} --cache-to=type=local,compression=zstd,dest=tmp/build-cache-new" | ||
| - name: Show docker images | ||
| run: docker images | ||
| - name: Update and prune docker buildx layer cache | ||
| run: | | ||
| rm -rf tmp/build-cache-${{ runner.arch }} | ||
| mv tmp/build-cache-new tmp/build-cache-${{ runner.arch }} | ||
| common-8c26987a5e78ace67587139520ec4d44e00a8f54: | ||
| name: "build ${{ matrix.os }} common-8c26987a5e78ace67587139520ec4d44e00a8f54" | ||
| needs: common-8a6d86116e9a9ffad5888a4a8b7fbee50535dbe0 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - ubuntu-24.04-arm | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ inputs.tag }} | ||
| - uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: "3.3" | ||
| bundler-cache: true | ||
| - name: Fetch docker buildx layer cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: tmp/build-cache-${{ runner.arch }} | ||
| key: ${{ runner.os }}-on-${{ runner.arch }}-common-8c26987a5e78ace67587139520ec4d44e00a8f54-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-${{ runner.arch }}-common-8c26987a5e78ace67587139520ec4d44e00a8f54 | ||
| enableCrossOsArchive: true | ||
| - name: Build the image for platform common-8c26987a5e78ace67587139520ec4d44e00a8f54 on ${{ runner.arch }} | ||
| run: | | ||
| # Change docker to a cache-able driver | ||
| docker buildx create --driver docker-container --use | ||
| bundle exec rake build:common-8c26987a5e78ace67587139520ec4d44e00a8f54 RCD_DOCKER_BUILD="docker buildx build --cache-from=type=local,compression=zstd,src=tmp/build-cache-${{ runner.arch }} --cache-to=type=local,compression=zstd,dest=tmp/build-cache-new" | ||
| - name: Show docker images | ||
| run: docker images | ||
| - name: Update and prune docker buildx layer cache | ||
| run: | | ||
| rm -rf tmp/build-cache-${{ runner.arch }} | ||
| mv tmp/build-cache-new tmp/build-cache-${{ runner.arch }} | ||
| common-8a6d86116e9a9ffad5888a4a8b7fbee50535dbe0: | ||
| name: "build ${{ matrix.os }} common-8a6d86116e9a9ffad5888a4a8b7fbee50535dbe0" | ||
| needs: | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - ubuntu-24.04-arm | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ inputs.tag }} | ||
| - uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: "3.3" | ||
| bundler-cache: true | ||
| - name: Fetch docker buildx layer cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: tmp/build-cache-${{ runner.arch }} | ||
| key: ${{ runner.os }}-on-${{ runner.arch }}-common-8a6d86116e9a9ffad5888a4a8b7fbee50535dbe0-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-${{ runner.arch }}-common-8a6d86116e9a9ffad5888a4a8b7fbee50535dbe0 | ||
| enableCrossOsArchive: true | ||
| - name: Build the image for platform common-8a6d86116e9a9ffad5888a4a8b7fbee50535dbe0 on ${{ runner.arch }} | ||
| run: | | ||
| # Change docker to a cache-able driver | ||
| docker buildx create --driver docker-container --use | ||
| bundle exec rake build:common-8a6d86116e9a9ffad5888a4a8b7fbee50535dbe0 RCD_DOCKER_BUILD="docker buildx build --cache-from=type=local,compression=zstd,src=tmp/build-cache-${{ runner.arch }} --cache-to=type=local,compression=zstd,dest=tmp/build-cache-new" | ||
| - name: Show docker images | ||
| run: docker images | ||
| - name: Update and prune docker buildx layer cache | ||
| run: | | ||
| rm -rf tmp/build-cache-${{ runner.arch }} | ||
| mv tmp/build-cache-new tmp/build-cache-${{ runner.arch }} | ||
| common-8a6d86116e9a9ffad5888a4a8b7fbee50535dbe0: | ||
| name: "build ${{ matrix.os }} common-8a6d86116e9a9ffad5888a4a8b7fbee50535dbe0" | ||
| needs: | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - ubuntu-24.04-arm | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ inputs.tag }} | ||
| - uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: "3.3" | ||
| bundler-cache: true | ||
| - name: Fetch docker buildx layer cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: tmp/build-cache-${{ runner.arch }} | ||
| key: ${{ runner.os }}-on-${{ runner.arch }}-common-8a6d86116e9a9ffad5888a4a8b7fbee50535dbe0-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-${{ runner.arch }}-common-8a6d86116e9a9ffad5888a4a8b7fbee50535dbe0 | ||
| enableCrossOsArchive: true | ||
| - name: Build the image for platform common-8a6d86116e9a9ffad5888a4a8b7fbee50535dbe0 on ${{ runner.arch }} | ||
| run: | | ||
| # Change docker to a cache-able driver | ||
| docker buildx create --driver docker-container --use | ||
| bundle exec rake build:common-8a6d86116e9a9ffad5888a4a8b7fbee50535dbe0 RCD_DOCKER_BUILD="docker buildx build --cache-from=type=local,compression=zstd,src=tmp/build-cache-${{ runner.arch }} --cache-to=type=local,compression=zstd,dest=tmp/build-cache-new" | ||
| - name: Show docker images | ||
| run: docker images | ||
| - name: Update and prune docker buildx layer cache | ||
| run: | | ||
| rm -rf tmp/build-cache-${{ runner.arch }} | ||
| mv tmp/build-cache-new tmp/build-cache-${{ runner.arch }} | ||
| push: | ||
| name: push | ||
| needs: build | ||
| strategy: | ||
| fail-fast: false | ||
| runs-on: ubuntu-24.04-arm | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| # https://github.com/orgs/community/discussions/26351#discussioncomment-3251595 | ||
| - name: free disk space | ||
| run: | | ||
| df -h | ||
| sudo swapoff -a | ||
| sudo rm -f /swapfile | ||
| sudo apt clean | ||
| df -h | ||
| - name: Use X64 cache from tree pipeline of tmp/docker/Dockerfile.mri.aarch64-linux-gnu | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-X64 | ||
| key: ${{ runner.os }}-on-X64-common-b45d14aea28f4d30cfaa5bc6a34d751db67da79f-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-X64-common-b45d14aea28f4d30cfaa5bc6a34d751db67da79f | ||
| enableCrossOsArchive: true | ||
| - run: mv tmp/build-cache-X64 tmp/build-cache-X64-common-b45d14aea28f4d30cfaa5bc6a34d751db67da79f | ||
| - name: Use ARM64 cache from tree pipeline of tmp/docker/Dockerfile.mri.aarch64-linux-gnu | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-ARM64 | ||
| key: ${{ runner.os }}-on-ARM64-common-b45d14aea28f4d30cfaa5bc6a34d751db67da79f-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-ARM64-common-b45d14aea28f4d30cfaa5bc6a34d751db67da79f | ||
| enableCrossOsArchive: true | ||
| fail-on-cache-miss: true | ||
| - run: mv tmp/build-cache-ARM64 tmp/build-cache-ARM64-common-b45d14aea28f4d30cfaa5bc6a34d751db67da79f | ||
| - name: Use X64 cache from tree pipeline of tmp/docker/Dockerfile.mri.aarch64-linux-musl | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-X64 | ||
| key: ${{ runner.os }}-on-X64-common-723ac6e8df696b68867754088d542e27005deaaf-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-X64-common-723ac6e8df696b68867754088d542e27005deaaf | ||
| enableCrossOsArchive: true | ||
| - run: mv tmp/build-cache-X64 tmp/build-cache-X64-common-723ac6e8df696b68867754088d542e27005deaaf | ||
| - name: Use ARM64 cache from tree pipeline of tmp/docker/Dockerfile.mri.aarch64-linux-musl | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-ARM64 | ||
| key: ${{ runner.os }}-on-ARM64-common-723ac6e8df696b68867754088d542e27005deaaf-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-ARM64-common-723ac6e8df696b68867754088d542e27005deaaf | ||
| enableCrossOsArchive: true | ||
| fail-on-cache-miss: true | ||
| - run: mv tmp/build-cache-ARM64 tmp/build-cache-ARM64-common-723ac6e8df696b68867754088d542e27005deaaf | ||
| - name: Use X64 cache from tree pipeline of tmp/docker/Dockerfile.mri.aarch64-mingw-ucrt | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-X64 | ||
| key: ${{ runner.os }}-on-X64-common-2378386d2f098439bb4555bfc930aa62eab2dd65-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-X64-common-2378386d2f098439bb4555bfc930aa62eab2dd65 | ||
| enableCrossOsArchive: true | ||
| - run: mv tmp/build-cache-X64 tmp/build-cache-X64-common-2378386d2f098439bb4555bfc930aa62eab2dd65 | ||
| - name: Use ARM64 cache from tree pipeline of tmp/docker/Dockerfile.mri.aarch64-mingw-ucrt | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-ARM64 | ||
| key: ${{ runner.os }}-on-ARM64-common-2378386d2f098439bb4555bfc930aa62eab2dd65-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-ARM64-common-2378386d2f098439bb4555bfc930aa62eab2dd65 | ||
| enableCrossOsArchive: true | ||
| fail-on-cache-miss: true | ||
| - run: mv tmp/build-cache-ARM64 tmp/build-cache-ARM64-common-2378386d2f098439bb4555bfc930aa62eab2dd65 | ||
| - name: Use X64 cache from tree pipeline of tmp/docker/Dockerfile.mri.arm-linux-gnu | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-X64 | ||
| key: ${{ runner.os }}-on-X64-common-8fd4771bba44643d3934e41c218db66645f9e96f-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-X64-common-8fd4771bba44643d3934e41c218db66645f9e96f | ||
| enableCrossOsArchive: true | ||
| - run: mv tmp/build-cache-X64 tmp/build-cache-X64-common-8fd4771bba44643d3934e41c218db66645f9e96f | ||
| - name: Use ARM64 cache from tree pipeline of tmp/docker/Dockerfile.mri.arm-linux-gnu | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-ARM64 | ||
| key: ${{ runner.os }}-on-ARM64-common-8fd4771bba44643d3934e41c218db66645f9e96f-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-ARM64-common-8fd4771bba44643d3934e41c218db66645f9e96f | ||
| enableCrossOsArchive: true | ||
| fail-on-cache-miss: true | ||
| - run: mv tmp/build-cache-ARM64 tmp/build-cache-ARM64-common-8fd4771bba44643d3934e41c218db66645f9e96f | ||
| - name: Use X64 cache from tree pipeline of tmp/docker/Dockerfile.mri.arm-linux-musl | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-X64 | ||
| key: ${{ runner.os }}-on-X64-common-fbc527a24691e48b3ceae3946e031e5e7e88c321-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-X64-common-fbc527a24691e48b3ceae3946e031e5e7e88c321 | ||
| enableCrossOsArchive: true | ||
| - run: mv tmp/build-cache-X64 tmp/build-cache-X64-common-fbc527a24691e48b3ceae3946e031e5e7e88c321 | ||
| - name: Use ARM64 cache from tree pipeline of tmp/docker/Dockerfile.mri.arm-linux-musl | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-ARM64 | ||
| key: ${{ runner.os }}-on-ARM64-common-fbc527a24691e48b3ceae3946e031e5e7e88c321-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-ARM64-common-fbc527a24691e48b3ceae3946e031e5e7e88c321 | ||
| enableCrossOsArchive: true | ||
| fail-on-cache-miss: true | ||
| - run: mv tmp/build-cache-ARM64 tmp/build-cache-ARM64-common-fbc527a24691e48b3ceae3946e031e5e7e88c321 | ||
| - name: Use X64 cache from tree pipeline of tmp/docker/Dockerfile.mri.arm64-darwin | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-X64 | ||
| key: ${{ runner.os }}-on-X64-common-2829589da6681b1b5f379e6d68ff6be60cba5cf6-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-X64-common-2829589da6681b1b5f379e6d68ff6be60cba5cf6 | ||
| enableCrossOsArchive: true | ||
| - run: mv tmp/build-cache-X64 tmp/build-cache-X64-common-2829589da6681b1b5f379e6d68ff6be60cba5cf6 | ||
| - name: Use ARM64 cache from tree pipeline of tmp/docker/Dockerfile.mri.arm64-darwin | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-ARM64 | ||
| key: ${{ runner.os }}-on-ARM64-common-2829589da6681b1b5f379e6d68ff6be60cba5cf6-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-ARM64-common-2829589da6681b1b5f379e6d68ff6be60cba5cf6 | ||
| enableCrossOsArchive: true | ||
| fail-on-cache-miss: true | ||
| - run: mv tmp/build-cache-ARM64 tmp/build-cache-ARM64-common-2829589da6681b1b5f379e6d68ff6be60cba5cf6 | ||
| - name: Use X64 cache from tree pipeline of tmp/docker/Dockerfile.mri.x64-mingw-ucrt | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-X64 | ||
| key: ${{ runner.os }}-on-X64-common-fad6604335c2d8c64475e5d69c083d0cce4f63a7-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-X64-common-fad6604335c2d8c64475e5d69c083d0cce4f63a7 | ||
| enableCrossOsArchive: true | ||
| - run: mv tmp/build-cache-X64 tmp/build-cache-X64-common-fad6604335c2d8c64475e5d69c083d0cce4f63a7 | ||
| - name: Use ARM64 cache from tree pipeline of tmp/docker/Dockerfile.mri.x64-mingw-ucrt | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-ARM64 | ||
| key: ${{ runner.os }}-on-ARM64-common-fad6604335c2d8c64475e5d69c083d0cce4f63a7-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-ARM64-common-fad6604335c2d8c64475e5d69c083d0cce4f63a7 | ||
| enableCrossOsArchive: true | ||
| fail-on-cache-miss: true | ||
| - run: mv tmp/build-cache-ARM64 tmp/build-cache-ARM64-common-fad6604335c2d8c64475e5d69c083d0cce4f63a7 | ||
| - name: Use X64 cache from tree pipeline of tmp/docker/Dockerfile.mri.x64-mingw32 | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-X64 | ||
| key: ${{ runner.os }}-on-X64-common-c435c444a8baec018c75861cf5b32aeb9345683e-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-X64-common-c435c444a8baec018c75861cf5b32aeb9345683e | ||
| enableCrossOsArchive: true | ||
| - run: mv tmp/build-cache-X64 tmp/build-cache-X64-common-c435c444a8baec018c75861cf5b32aeb9345683e | ||
| - name: Use ARM64 cache from tree pipeline of tmp/docker/Dockerfile.mri.x64-mingw32 | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-ARM64 | ||
| key: ${{ runner.os }}-on-ARM64-common-c435c444a8baec018c75861cf5b32aeb9345683e-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-ARM64-common-c435c444a8baec018c75861cf5b32aeb9345683e | ||
| enableCrossOsArchive: true | ||
| fail-on-cache-miss: true | ||
| - run: mv tmp/build-cache-ARM64 tmp/build-cache-ARM64-common-c435c444a8baec018c75861cf5b32aeb9345683e | ||
| - name: Use X64 cache from tree pipeline of tmp/docker/Dockerfile.mri.x86-linux-gnu | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-X64 | ||
| key: ${{ runner.os }}-on-X64-common-cda3746d187096bfcb5179842dc5b8f845ea3da6-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-X64-common-cda3746d187096bfcb5179842dc5b8f845ea3da6 | ||
| enableCrossOsArchive: true | ||
| - run: mv tmp/build-cache-X64 tmp/build-cache-X64-common-cda3746d187096bfcb5179842dc5b8f845ea3da6 | ||
| - name: Use ARM64 cache from tree pipeline of tmp/docker/Dockerfile.mri.x86-linux-gnu | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-ARM64 | ||
| key: ${{ runner.os }}-on-ARM64-common-cda3746d187096bfcb5179842dc5b8f845ea3da6-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-ARM64-common-cda3746d187096bfcb5179842dc5b8f845ea3da6 | ||
| enableCrossOsArchive: true | ||
| fail-on-cache-miss: true | ||
| - run: mv tmp/build-cache-ARM64 tmp/build-cache-ARM64-common-cda3746d187096bfcb5179842dc5b8f845ea3da6 | ||
| - name: Use X64 cache from tree pipeline of tmp/docker/Dockerfile.mri.x86-linux-musl | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-X64 | ||
| key: ${{ runner.os }}-on-X64-common-63da25377d0818f37111c2410d4816b73d1a9060-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-X64-common-63da25377d0818f37111c2410d4816b73d1a9060 | ||
| enableCrossOsArchive: true | ||
| - run: mv tmp/build-cache-X64 tmp/build-cache-X64-common-63da25377d0818f37111c2410d4816b73d1a9060 | ||
| - name: Use ARM64 cache from tree pipeline of tmp/docker/Dockerfile.mri.x86-linux-musl | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-ARM64 | ||
| key: ${{ runner.os }}-on-ARM64-common-63da25377d0818f37111c2410d4816b73d1a9060-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-ARM64-common-63da25377d0818f37111c2410d4816b73d1a9060 | ||
| enableCrossOsArchive: true | ||
| fail-on-cache-miss: true | ||
| - run: mv tmp/build-cache-ARM64 tmp/build-cache-ARM64-common-63da25377d0818f37111c2410d4816b73d1a9060 | ||
| - name: Use X64 cache from tree pipeline of tmp/docker/Dockerfile.mri.x86-mingw32 | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-X64 | ||
| key: ${{ runner.os }}-on-X64-common-697f3ca4a0ddea1b26a66aee35ab6fc30ae3010b-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-X64-common-697f3ca4a0ddea1b26a66aee35ab6fc30ae3010b | ||
| enableCrossOsArchive: true | ||
| - run: mv tmp/build-cache-X64 tmp/build-cache-X64-common-697f3ca4a0ddea1b26a66aee35ab6fc30ae3010b | ||
| - name: Use ARM64 cache from tree pipeline of tmp/docker/Dockerfile.mri.x86-mingw32 | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-ARM64 | ||
| key: ${{ runner.os }}-on-ARM64-common-697f3ca4a0ddea1b26a66aee35ab6fc30ae3010b-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-ARM64-common-697f3ca4a0ddea1b26a66aee35ab6fc30ae3010b | ||
| enableCrossOsArchive: true | ||
| fail-on-cache-miss: true | ||
| - run: mv tmp/build-cache-ARM64 tmp/build-cache-ARM64-common-697f3ca4a0ddea1b26a66aee35ab6fc30ae3010b | ||
| - name: Use X64 cache from tree pipeline of tmp/docker/Dockerfile.mri.x86_64-darwin | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-X64 | ||
| key: ${{ runner.os }}-on-X64-common-bc540754626a1ebf8164f8ae4378b9104b383663-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-X64-common-bc540754626a1ebf8164f8ae4378b9104b383663 | ||
| enableCrossOsArchive: true | ||
| - run: mv tmp/build-cache-X64 tmp/build-cache-X64-common-bc540754626a1ebf8164f8ae4378b9104b383663 | ||
| - name: Use ARM64 cache from tree pipeline of tmp/docker/Dockerfile.mri.x86_64-darwin | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-ARM64 | ||
| key: ${{ runner.os }}-on-ARM64-common-bc540754626a1ebf8164f8ae4378b9104b383663-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-ARM64-common-bc540754626a1ebf8164f8ae4378b9104b383663 | ||
| enableCrossOsArchive: true | ||
| fail-on-cache-miss: true | ||
| - run: mv tmp/build-cache-ARM64 tmp/build-cache-ARM64-common-bc540754626a1ebf8164f8ae4378b9104b383663 | ||
| - name: Use X64 cache from tree pipeline of tmp/docker/Dockerfile.mri.x86_64-linux-gnu | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-X64 | ||
| key: ${{ runner.os }}-on-X64-common-7b065f9c97f9d9f355f67f09b97c844d21539e42-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-X64-common-7b065f9c97f9d9f355f67f09b97c844d21539e42 | ||
| enableCrossOsArchive: true | ||
| - run: mv tmp/build-cache-X64 tmp/build-cache-X64-common-7b065f9c97f9d9f355f67f09b97c844d21539e42 | ||
| - name: Use ARM64 cache from tree pipeline of tmp/docker/Dockerfile.mri.x86_64-linux-gnu | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-ARM64 | ||
| key: ${{ runner.os }}-on-ARM64-common-7b065f9c97f9d9f355f67f09b97c844d21539e42-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-ARM64-common-7b065f9c97f9d9f355f67f09b97c844d21539e42 | ||
| enableCrossOsArchive: true | ||
| fail-on-cache-miss: true | ||
| - run: mv tmp/build-cache-ARM64 tmp/build-cache-ARM64-common-7b065f9c97f9d9f355f67f09b97c844d21539e42 | ||
| - name: Use X64 cache from tree pipeline of tmp/docker/Dockerfile.mri.x86_64-linux-musl | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-X64 | ||
| key: ${{ runner.os }}-on-X64-common-dc7239babc93dee187ce0f0fa030de8c792e8611-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-X64-common-dc7239babc93dee187ce0f0fa030de8c792e8611 | ||
| enableCrossOsArchive: true | ||
| - run: mv tmp/build-cache-X64 tmp/build-cache-X64-common-dc7239babc93dee187ce0f0fa030de8c792e8611 | ||
| - name: Use ARM64 cache from tree pipeline of tmp/docker/Dockerfile.mri.x86_64-linux-musl | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-ARM64 | ||
| key: ${{ runner.os }}-on-ARM64-common-dc7239babc93dee187ce0f0fa030de8c792e8611-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-ARM64-common-dc7239babc93dee187ce0f0fa030de8c792e8611 | ||
| enableCrossOsArchive: true | ||
| fail-on-cache-miss: true | ||
| - run: mv tmp/build-cache-ARM64 tmp/build-cache-ARM64-common-dc7239babc93dee187ce0f0fa030de8c792e8611 | ||
| - name: Use X64 cache from tree pipeline of tmp/docker/Dockerfile.jruby | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-X64 | ||
| key: ${{ runner.os }}-on-X64-common-58bf949eac408202d0b3113ff93f6330354c92a1-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-X64-common-58bf949eac408202d0b3113ff93f6330354c92a1 | ||
| enableCrossOsArchive: true | ||
| - run: mv tmp/build-cache-X64 tmp/build-cache-X64-common-58bf949eac408202d0b3113ff93f6330354c92a1 | ||
| - name: Use ARM64 cache from tree pipeline of tmp/docker/Dockerfile.jruby | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: tmp/build-cache-ARM64 | ||
| key: ${{ runner.os }}-on-ARM64-common-58bf949eac408202d0b3113ff93f6330354c92a1-${{ github.sha }} | ||
| restore-keys: ${{ runner.os }}-on-ARM64-common-58bf949eac408202d0b3113ff93f6330354c92a1 | ||
| enableCrossOsArchive: true | ||
| fail-on-cache-miss: true | ||
| - run: mv tmp/build-cache-ARM64 tmp/build-cache-ARM64-common-58bf949eac408202d0b3113ff93f6330354c92a1 | ||
| - uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: "3.3" | ||
| bundler-cache: true | ||
| - uses: docker/login-action@v3 | ||
| with: | ||
| registry: ghcr.io | ||
| username: ${{github.actor}} | ||
| password: ${{secrets.GITHUB_TOKEN}} | ||
| - name: Use cache and push docker image | ||
| env: | ||
| RCD_IMAGE_VERSION: snapshot | ||
| RCD_DOCKER_BUILD: docker buildx build --cache-from=type=local,compression=zstd,src=tmp/build-cache-X64-common-b45d14aea28f4d30cfaa5bc6a34d751db67da79f --cache-from=type=local,compression=zstd,src=tmp/build-cache-ARM64-common-b45d14aea28f4d30cfaa5bc6a34d751db67da79f --cache-from=type=local,compression=zstd,src=tmp/build-cache-X64-common-723ac6e8df696b68867754088d542e27005deaaf --cache-from=type=local,compression=zstd,src=tmp/build-cache-ARM64-common-723ac6e8df696b68867754088d542e27005deaaf --cache-from=type=local,compression=zstd,src=tmp/build-cache-X64-common-2378386d2f098439bb4555bfc930aa62eab2dd65 --cache-from=type=local,compression=zstd,src=tmp/build-cache-ARM64-common-2378386d2f098439bb4555bfc930aa62eab2dd65 --cache-from=type=local,compression=zstd,src=tmp/build-cache-X64-common-8fd4771bba44643d3934e41c218db66645f9e96f --cache-from=type=local,compression=zstd,src=tmp/build-cache-ARM64-common-8fd4771bba44643d3934e41c218db66645f9e96f --cache-from=type=local,compression=zstd,src=tmp/build-cache-X64-common-fbc527a24691e48b3ceae3946e031e5e7e88c321 --cache-from=type=local,compression=zstd,src=tmp/build-cache-ARM64-common-fbc527a24691e48b3ceae3946e031e5e7e88c321 --cache-from=type=local,compression=zstd,src=tmp/build-cache-X64-common-2829589da6681b1b5f379e6d68ff6be60cba5cf6 --cache-from=type=local,compression=zstd,src=tmp/build-cache-ARM64-common-2829589da6681b1b5f379e6d68ff6be60cba5cf6 --cache-from=type=local,compression=zstd,src=tmp/build-cache-X64-common-fad6604335c2d8c64475e5d69c083d0cce4f63a7 --cache-from=type=local,compression=zstd,src=tmp/build-cache-ARM64-common-fad6604335c2d8c64475e5d69c083d0cce4f63a7 --cache-from=type=local,compression=zstd,src=tmp/build-cache-X64-common-c435c444a8baec018c75861cf5b32aeb9345683e --cache-from=type=local,compression=zstd,src=tmp/build-cache-ARM64-common-c435c444a8baec018c75861cf5b32aeb9345683e --cache-from=type=local,compression=zstd,src=tmp/build-cache-X64-common-cda3746d187096bfcb5179842dc5b8f845ea3da6 --cache-from=type=local,compression=zstd,src=tmp/build-cache-ARM64-common-cda3746d187096bfcb5179842dc5b8f845ea3da6 --cache-from=type=local,compression=zstd,src=tmp/build-cache-X64-common-63da25377d0818f37111c2410d4816b73d1a9060 --cache-from=type=local,compression=zstd,src=tmp/build-cache-ARM64-common-63da25377d0818f37111c2410d4816b73d1a9060 --cache-from=type=local,compression=zstd,src=tmp/build-cache-X64-common-697f3ca4a0ddea1b26a66aee35ab6fc30ae3010b --cache-from=type=local,compression=zstd,src=tmp/build-cache-ARM64-common-697f3ca4a0ddea1b26a66aee35ab6fc30ae3010b --cache-from=type=local,compression=zstd,src=tmp/build-cache-X64-common-bc540754626a1ebf8164f8ae4378b9104b383663 --cache-from=type=local,compression=zstd,src=tmp/build-cache-ARM64-common-bc540754626a1ebf8164f8ae4378b9104b383663 --cache-from=type=local,compression=zstd,src=tmp/build-cache-X64-common-7b065f9c97f9d9f355f67f09b97c844d21539e42 --cache-from=type=local,compression=zstd,src=tmp/build-cache-ARM64-common-7b065f9c97f9d9f355f67f09b97c844d21539e42 --cache-from=type=local,compression=zstd,src=tmp/build-cache-X64-common-dc7239babc93dee187ce0f0fa030de8c792e8611 --cache-from=type=local,compression=zstd,src=tmp/build-cache-ARM64-common-dc7239babc93dee187ce0f0fa030de8c792e8611 --cache-from=type=local,compression=zstd,src=tmp/build-cache-X64-common-58bf949eac408202d0b3113ff93f6330354c92a1 --cache-from=type=local,compression=zstd,src=tmp/build-cache-ARM64-common-58bf949eac408202d0b3113ff93f6330354c92a1 --cache-to=type=local,compression=zstd,dest=tmp/build-cache-new | ||
| run: | | ||
| docker buildx create --driver docker-container --use | ||
| bundle exec rake release:images | ||