Skip to content

Commit

Permalink
Upgrade Ruby to 3.3.3 (#144)
Browse files Browse the repository at this point in the history
Co-authored-by: Max Erkin <m.erkin@uzum.io>
  • Loading branch information
rus-max and Max Erkin authored Jun 13, 2024
1 parent bee5ee4 commit e37e10b
Show file tree
Hide file tree
Showing 8 changed files with 778 additions and 778 deletions.
194 changes: 97 additions & 97 deletions .github/workflows/ci-cd-build-packages-1.yml

Large diffs are not rendered by default.

194 changes: 97 additions & 97 deletions .github/workflows/ci-cd-build-packages-2.yml

Large diffs are not rendered by default.

194 changes: 97 additions & 97 deletions .github/workflows/ci-cd-build-packages-3.yml

Large diffs are not rendered by default.

98 changes: 49 additions & 49 deletions .github/workflows/ci-cd-build-packages-4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ jobs:
- name: Fetch Ruby source
run: ./internal-scripts/ci-cd/download-artifact.sh
env:
ARTIFACT_NAME: ruby-src-3.3.2
ARTIFACT_NAME: ruby-src-3.3.3
ARTIFACT_PATH: .

- name: Download Docker image necessary for building
Expand Down Expand Up @@ -224,7 +224,7 @@ jobs:
VARIANT_PACKAGE_SUFFIX: ""
PACKAGE_FORMAT: "DEB"
RUBY_PACKAGE_VERSION_ID: "3.3"
RUBY_PACKAGE_REVISION: "2"
RUBY_PACKAGE_REVISION: "3"

- name: Archive package artifact to Google Cloud
run: ./internal-scripts/ci-cd/upload-artifact.sh
Expand Down Expand Up @@ -271,7 +271,7 @@ jobs:
- name: Fetch Ruby source
run: ./internal-scripts/ci-cd/download-artifact.sh
env:
ARTIFACT_NAME: ruby-src-3.3.2
ARTIFACT_NAME: ruby-src-3.3.3
ARTIFACT_PATH: .

- name: Download Docker image necessary for building
Expand Down Expand Up @@ -321,7 +321,7 @@ jobs:
VARIANT_PACKAGE_SUFFIX: "-jemalloc"
PACKAGE_FORMAT: "DEB"
RUBY_PACKAGE_VERSION_ID: "3.3"
RUBY_PACKAGE_REVISION: "2"
RUBY_PACKAGE_REVISION: "3"

- name: Archive package artifact to Google Cloud
run: ./internal-scripts/ci-cd/upload-artifact.sh
Expand Down Expand Up @@ -362,7 +362,7 @@ jobs:
- name: Fetch Ruby source
run: ./internal-scripts/ci-cd/download-artifact.sh
env:
ARTIFACT_NAME: ruby-src-3.3.2
ARTIFACT_NAME: ruby-src-3.3.3
ARTIFACT_PATH: .

- name: Download Docker image necessary for building
Expand Down Expand Up @@ -407,7 +407,7 @@ jobs:
VARIANT_PACKAGE_SUFFIX: "-malloctrim"
PACKAGE_FORMAT: "DEB"
RUBY_PACKAGE_VERSION_ID: "3.3"
RUBY_PACKAGE_REVISION: "2"
RUBY_PACKAGE_REVISION: "3"

- name: Archive package artifact to Google Cloud
run: ./internal-scripts/ci-cd/upload-artifact.sh
Expand Down Expand Up @@ -684,8 +684,8 @@ jobs:
ARTIFACT_NAME: "ruby-pkg_3.2_debian-12_malloctrim"
ARTIFACT_PATH: output-malloctrim

build_ruby_debian_12-3_3_2-normal:
name: 'Build Ruby [debian-12/3.3.2/normal]'
build_ruby_debian_12-3_3_3-normal:
name: 'Build Ruby [debian-12/3.3.3/normal]'
runs-on: ubuntu-22.04
timeout-minutes: 30
permissions:
Expand All @@ -695,7 +695,7 @@ jobs:

# Run even if a dependent job has been skipped
if: |
contains(needs.determine_necessary_jobs.outputs.necessary_jobs, ';Build Ruby [debian-12/3.3.2/normal];')
contains(needs.determine_necessary_jobs.outputs.necessary_jobs, ';Build Ruby [debian-12/3.3.3/normal];')
&& !failure() && !cancelled()
steps:

Expand All @@ -717,7 +717,7 @@ jobs:
- name: Fetch Ruby source
run: ./internal-scripts/ci-cd/download-artifact.sh
env:
ARTIFACT_NAME: ruby-src-3.3.2
ARTIFACT_NAME: ruby-src-3.3.3
ARTIFACT_PATH: .

- name: Download Docker image necessary for building
Expand Down Expand Up @@ -751,7 +751,7 @@ jobs:
env:
ENVIRONMENT_NAME: "debian-12"
VARIANT_NAME: "normal"
RUBY_PACKAGE_VERSION_ID: "3.3.2"
RUBY_PACKAGE_VERSION_ID: "3.3.3"
CACHE_KEY_PREFIX: "sccache/debian-12"

- name: Build package
Expand All @@ -761,17 +761,17 @@ jobs:
VARIANT_NAME: "normal"
VARIANT_PACKAGE_SUFFIX: ""
PACKAGE_FORMAT: "DEB"
RUBY_PACKAGE_VERSION_ID: "3.3.2"
RUBY_PACKAGE_VERSION_ID: "3.3.3"
RUBY_PACKAGE_REVISION: "0"

- name: Archive package artifact to Google Cloud
run: ./internal-scripts/ci-cd/upload-artifact.sh
env:
ARTIFACT_NAME: "ruby-pkg_3.3.2_debian-12_normal"
ARTIFACT_NAME: "ruby-pkg_3.3.3_debian-12_normal"
ARTIFACT_PATH: output-normal

build_ruby_debian_12-3_3_2-jemalloc:
name: 'Build Ruby [debian-12/3.3.2/jemalloc]'
build_ruby_debian_12-3_3_3-jemalloc:
name: 'Build Ruby [debian-12/3.3.3/jemalloc]'
runs-on: ubuntu-22.04
timeout-minutes: 30
permissions:
Expand All @@ -782,7 +782,7 @@ jobs:
- build_jemalloc_debian_12
# Run even if a dependent job has been skipped
if: |
contains(needs.determine_necessary_jobs.outputs.necessary_jobs, ';Build Ruby [debian-12/3.3.2/jemalloc];')
contains(needs.determine_necessary_jobs.outputs.necessary_jobs, ';Build Ruby [debian-12/3.3.3/jemalloc];')
&& !failure() && !cancelled()
steps:

Expand All @@ -809,7 +809,7 @@ jobs:
- name: Fetch Ruby source
run: ./internal-scripts/ci-cd/download-artifact.sh
env:
ARTIFACT_NAME: ruby-src-3.3.2
ARTIFACT_NAME: ruby-src-3.3.3
ARTIFACT_PATH: .

- name: Download Docker image necessary for building
Expand Down Expand Up @@ -848,7 +848,7 @@ jobs:
env:
ENVIRONMENT_NAME: "debian-12"
VARIANT_NAME: "jemalloc"
RUBY_PACKAGE_VERSION_ID: "3.3.2"
RUBY_PACKAGE_VERSION_ID: "3.3.3"
CACHE_KEY_PREFIX: "sccache/debian-12"

- name: Build package
Expand All @@ -858,17 +858,17 @@ jobs:
VARIANT_NAME: "jemalloc"
VARIANT_PACKAGE_SUFFIX: "-jemalloc"
PACKAGE_FORMAT: "DEB"
RUBY_PACKAGE_VERSION_ID: "3.3.2"
RUBY_PACKAGE_VERSION_ID: "3.3.3"
RUBY_PACKAGE_REVISION: "0"

- name: Archive package artifact to Google Cloud
run: ./internal-scripts/ci-cd/upload-artifact.sh
env:
ARTIFACT_NAME: "ruby-pkg_3.3.2_debian-12_jemalloc"
ARTIFACT_NAME: "ruby-pkg_3.3.3_debian-12_jemalloc"
ARTIFACT_PATH: output-jemalloc

build_ruby_debian_12-3_3_2-malloctrim:
name: 'Build Ruby [debian-12/3.3.2/malloctrim]'
build_ruby_debian_12-3_3_3-malloctrim:
name: 'Build Ruby [debian-12/3.3.3/malloctrim]'
runs-on: ubuntu-22.04
timeout-minutes: 30
permissions:
Expand All @@ -878,7 +878,7 @@ jobs:

# Run even if a dependent job has been skipped
if: |
contains(needs.determine_necessary_jobs.outputs.necessary_jobs, ';Build Ruby [debian-12/3.3.2/malloctrim];')
contains(needs.determine_necessary_jobs.outputs.necessary_jobs, ';Build Ruby [debian-12/3.3.3/malloctrim];')
&& !failure() && !cancelled()
steps:

Expand All @@ -900,7 +900,7 @@ jobs:
- name: Fetch Ruby source
run: ./internal-scripts/ci-cd/download-artifact.sh
env:
ARTIFACT_NAME: ruby-src-3.3.2
ARTIFACT_NAME: ruby-src-3.3.3
ARTIFACT_PATH: .

- name: Download Docker image necessary for building
Expand Down Expand Up @@ -934,7 +934,7 @@ jobs:
env:
ENVIRONMENT_NAME: "debian-12"
VARIANT_NAME: "malloctrim"
RUBY_PACKAGE_VERSION_ID: "3.3.2"
RUBY_PACKAGE_VERSION_ID: "3.3.3"
CACHE_KEY_PREFIX: "sccache/debian-12"

- name: Build package
Expand All @@ -944,13 +944,13 @@ jobs:
VARIANT_NAME: "malloctrim"
VARIANT_PACKAGE_SUFFIX: "-malloctrim"
PACKAGE_FORMAT: "DEB"
RUBY_PACKAGE_VERSION_ID: "3.3.2"
RUBY_PACKAGE_VERSION_ID: "3.3.3"
RUBY_PACKAGE_REVISION: "0"

- name: Archive package artifact to Google Cloud
run: ./internal-scripts/ci-cd/upload-artifact.sh
env:
ARTIFACT_NAME: "ruby-pkg_3.3.2_debian-12_malloctrim"
ARTIFACT_NAME: "ruby-pkg_3.3.3_debian-12_malloctrim"
ARTIFACT_PATH: output-malloctrim

build_ruby_debian_12-3_2_4-normal:
Expand Down Expand Up @@ -1243,9 +1243,9 @@ jobs:
- build_ruby_debian_12-3_2-jemalloc
- build_ruby_debian_12-3_2-malloctrim

- build_ruby_debian_12-3_3_2-normal
- build_ruby_debian_12-3_3_2-jemalloc
- build_ruby_debian_12-3_3_2-malloctrim
- build_ruby_debian_12-3_3_3-normal
- build_ruby_debian_12-3_3_3-jemalloc
- build_ruby_debian_12-3_3_3-malloctrim

- build_ruby_debian_12-3_2_4-normal
- build_ruby_debian_12-3_2_4-jemalloc
Expand Down Expand Up @@ -1282,7 +1282,7 @@ jobs:
- name: Download Ruby package artifacts from Google Cloud
run: ./internal-scripts/ci-cd/download-artifacts.sh
env:
ARTIFACT_NAMES: 'ruby-pkg_3.3_debian-12_normal ruby-pkg_3.3_debian-12_jemalloc ruby-pkg_3.3_debian-12_malloctrim ruby-pkg_3.2_debian-12_normal ruby-pkg_3.2_debian-12_jemalloc ruby-pkg_3.2_debian-12_malloctrim ruby-pkg_3.3.2_debian-12_normal ruby-pkg_3.3.2_debian-12_jemalloc ruby-pkg_3.3.2_debian-12_malloctrim ruby-pkg_3.2.4_debian-12_normal ruby-pkg_3.2.4_debian-12_jemalloc ruby-pkg_3.2.4_debian-12_malloctrim'
ARTIFACT_NAMES: 'ruby-pkg_3.3_debian-12_normal ruby-pkg_3.3_debian-12_jemalloc ruby-pkg_3.3_debian-12_malloctrim ruby-pkg_3.2_debian-12_normal ruby-pkg_3.2_debian-12_jemalloc ruby-pkg_3.2_debian-12_malloctrim ruby-pkg_3.3.3_debian-12_normal ruby-pkg_3.3.3_debian-12_jemalloc ruby-pkg_3.3.3_debian-12_malloctrim ruby-pkg_3.2.4_debian-12_normal ruby-pkg_3.2.4_debian-12_jemalloc ruby-pkg_3.2.4_debian-12_malloctrim'
ARTIFACT_PATH: artifacts
CLEAR: true
- name: Archive Ruby package artifact [ruby-pkg_3.3_debian-12_normal] to Github
Expand Down Expand Up @@ -1315,21 +1315,21 @@ jobs:
with:
name: ruby-pkg_3.2_debian-12_malloctrim
path: artifacts/ruby-pkg_3.2_debian-12_malloctrim
- name: Archive Ruby package artifact [ruby-pkg_3.3.2_debian-12_normal] to Github
- name: Archive Ruby package artifact [ruby-pkg_3.3.3_debian-12_normal] to Github
uses: actions/upload-artifact@v3
with:
name: ruby-pkg_3.3.2_debian-12_normal
path: artifacts/ruby-pkg_3.3.2_debian-12_normal
- name: Archive Ruby package artifact [ruby-pkg_3.3.2_debian-12_jemalloc] to Github
name: ruby-pkg_3.3.3_debian-12_normal
path: artifacts/ruby-pkg_3.3.3_debian-12_normal
- name: Archive Ruby package artifact [ruby-pkg_3.3.3_debian-12_jemalloc] to Github
uses: actions/upload-artifact@v3
with:
name: ruby-pkg_3.3.2_debian-12_jemalloc
path: artifacts/ruby-pkg_3.3.2_debian-12_jemalloc
- name: Archive Ruby package artifact [ruby-pkg_3.3.2_debian-12_malloctrim] to Github
name: ruby-pkg_3.3.3_debian-12_jemalloc
path: artifacts/ruby-pkg_3.3.3_debian-12_jemalloc
- name: Archive Ruby package artifact [ruby-pkg_3.3.3_debian-12_malloctrim] to Github
uses: actions/upload-artifact@v3
with:
name: ruby-pkg_3.3.2_debian-12_malloctrim
path: artifacts/ruby-pkg_3.3.2_debian-12_malloctrim
name: ruby-pkg_3.3.3_debian-12_malloctrim
path: artifacts/ruby-pkg_3.3.3_debian-12_malloctrim
- name: Archive Ruby package artifact [ruby-pkg_3.2.4_debian-12_normal] to Github
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -1382,15 +1382,15 @@ jobs:
|| (needs.build_ruby_debian_12-3_2-malloctrim.result != 'success'
&& (needs.build_ruby_debian_12-3_2-malloctrim.result != 'skipped'
|| contains(needs.determine_necessary_jobs.outputs.necessary_jobs, ';Build Ruby [debian-12/3.2/malloctrim];')))
|| (needs.build_ruby_debian_12-3_3_2-normal.result != 'success'
&& (needs.build_ruby_debian_12-3_3_2-normal.result != 'skipped'
|| contains(needs.determine_necessary_jobs.outputs.necessary_jobs, ';Build Ruby [debian-12/3.3.2/normal];')))
|| (needs.build_ruby_debian_12-3_3_2-jemalloc.result != 'success'
&& (needs.build_ruby_debian_12-3_3_2-jemalloc.result != 'skipped'
|| contains(needs.determine_necessary_jobs.outputs.necessary_jobs, ';Build Ruby [debian-12/3.3.2/jemalloc];')))
|| (needs.build_ruby_debian_12-3_3_2-malloctrim.result != 'success'
&& (needs.build_ruby_debian_12-3_3_2-malloctrim.result != 'skipped'
|| contains(needs.determine_necessary_jobs.outputs.necessary_jobs, ';Build Ruby [debian-12/3.3.2/malloctrim];')))
|| (needs.build_ruby_debian_12-3_3_3-normal.result != 'success'
&& (needs.build_ruby_debian_12-3_3_3-normal.result != 'skipped'
|| contains(needs.determine_necessary_jobs.outputs.necessary_jobs, ';Build Ruby [debian-12/3.3.3/normal];')))
|| (needs.build_ruby_debian_12-3_3_3-jemalloc.result != 'success'
&& (needs.build_ruby_debian_12-3_3_3-jemalloc.result != 'skipped'
|| contains(needs.determine_necessary_jobs.outputs.necessary_jobs, ';Build Ruby [debian-12/3.3.3/jemalloc];')))
|| (needs.build_ruby_debian_12-3_3_3-malloctrim.result != 'success'
&& (needs.build_ruby_debian_12-3_3_3-malloctrim.result != 'skipped'
|| contains(needs.determine_necessary_jobs.outputs.necessary_jobs, ';Build Ruby [debian-12/3.3.3/malloctrim];')))
|| (needs.build_ruby_debian_12-3_2_4-normal.result != 'success'
&& (needs.build_ruby_debian_12-3_2_4-normal.result != 'skipped'
|| contains(needs.determine_necessary_jobs.outputs.necessary_jobs, ';Build Ruby [debian-12/3.2.4/normal];')))
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/ci-cd-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -418,12 +418,12 @@ jobs:
### Sources ###


download_ruby_source_3_3_2:
name: Download Ruby source [3.3.2]
download_ruby_source_3_3_3:
name: Download Ruby source [3.3.3]
needs:
- determine_necessary_jobs
runs-on: ubuntu-22.04
if: contains(needs.determine_necessary_jobs.outputs.necessary_jobs, ';Download Ruby source 3.3.2;')
if: contains(needs.determine_necessary_jobs.outputs.necessary_jobs, ';Download Ruby source 3.3.3;')
steps:
- uses: actions/checkout@v3
- name: Login to Google Cloud
Expand All @@ -434,12 +434,12 @@ jobs:
- name: Download
run: ./internal-scripts/ci-cd/download-ruby-sources/download.sh
env:
RUBY_VERSION: 3.3.2
RUBY_VERSION: 3.3.3

- name: Archive artifact
run: ./internal-scripts/ci-cd/upload-artifact.sh
env:
ARTIFACT_NAME: ruby-src-3.3.2
ARTIFACT_NAME: ruby-src-3.3.3
ARTIFACT_PATH: output
download_ruby_source_3_2_4:
name: Download Ruby source [3.2.4]
Expand Down Expand Up @@ -809,7 +809,7 @@ jobs:
- build_docker_image_ubuntu_20_04
- build_docker_image_ubuntu_22_04
- build_docker_image_utility
- download_ruby_source_3_3_2
- download_ruby_source_3_3_3
- download_ruby_source_3_2_4
- download_ruby_source_3_1_6
- download_ruby_source_3_0_7
Expand Down Expand Up @@ -965,16 +965,16 @@ jobs:
path: artifacts


- name: Download Ruby source artifact [3.3.2] from Google Cloud
- name: Download Ruby source artifact [3.3.3] from Google Cloud
run: ./internal-scripts/ci-cd/download-artifact.sh
env:
ARTIFACT_NAME: ruby-src-3.3.2
ARTIFACT_NAME: ruby-src-3.3.3
ARTIFACT_PATH: artifacts
CLEAR: true
- name: Archive Ruby source artifact [3.3.2] to Github
- name: Archive Ruby source artifact [3.3.3] to Github
uses: actions/upload-artifact@v3
with:
name: ruby-src-3.3.2
name: ruby-src-3.3.3
path: artifacts
- name: Download Ruby source artifact [3.2.4] from Google Cloud
run: ./internal-scripts/ci-cd/download-artifact.sh
Expand Down Expand Up @@ -1115,9 +1115,9 @@ jobs:
run: 'false'
if: |
false
|| (needs.download_ruby_source_3_3_2.result != 'success'
&& (needs.download_ruby_source_3_3_2.result != 'skipped'
|| contains(needs.determine_necessary_jobs.outputs.necessary_jobs, ';Download Ruby source 3.3.2;')))
|| (needs.download_ruby_source_3_3_3.result != 'success'
&& (needs.download_ruby_source_3_3_3.result != 'skipped'
|| contains(needs.determine_necessary_jobs.outputs.necessary_jobs, ';Download Ruby source 3.3.3;')))
|| (needs.download_ruby_source_3_2_4.result != 'success'
&& (needs.download_ruby_source_3_2_4.result != 'skipped'
|| contains(needs.determine_necessary_jobs.outputs.necessary_jobs, ';Download Ruby source 3.2.4;')))
Expand Down
Loading

0 comments on commit e37e10b

Please sign in to comment.