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

[DON'T MERGE] debug build time performance #14

Closed
wants to merge 19 commits into from
36 changes: 18 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,43 +9,43 @@ concurrency:

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
ruby_version:
- '3.4.1'
- '3.3.6'
- '3.3.5'
- '3.3.4'
- '3.3.3'
- '3.3.2'
- '3.3.1'
- '3.3.0'
# - '3.3.5'
# - '3.3.4'
# - '3.3.3'
# - '3.3.2'
# - '3.3.1'
# - '3.3.0'
- '3.2.6'
- '3.2.5'
- '3.2.4'
- '3.2.3'
- '3.2.2'
# - '3.2.5'
# - '3.2.4'
# - '3.2.3'
# - '3.2.2'
- '3.1.6'
- '3.1.5'
- '3.1.4'
# - '3.1.5'
# - '3.1.4'
platform:
- { runner: 'linux-arm64-public', image: 'linux/arm64' }
- { runner: 'ubuntu-24.04', image: 'linux/amd64' }

runs-on: ${{ matrix.platform.runner }}
steps:
- name: Check out Git repository
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/arm64,linux/amd64
platforms: ${{ matrix.platform.image }}
push: false
build-args: |
RUBY_VERSION=${{ matrix.ruby_version }}
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ ARG RUBY_VERSION=3.2.2
FROM public.ecr.aws/docker/library/ruby:$RUBY_VERSION-slim

# Update gems and bundler
RUN gem update --system --no-document && \
gem install -N bundler
RUN gem update --system --no-document
RUN gem install -N bundler


# Install packages needed to build gems and node modules
RUN --mount=type=cache,id=dev-apt-cache,sharing=locked,target=/var/cache/apt \
Expand Down