-
Notifications
You must be signed in to change notification settings - Fork 37
36 lines (31 loc) · 936 Bytes
/
test.yml
File metadata and controls
36 lines (31 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Test to build Docker image
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
name: ${{ matrix.ruby_version }}-${{ matrix.ubuntu_version }} ${{ matrix.arch }}
runs-on: ${{ matrix.arch == 'arm64' && 'ubuntu-24.04-arm' || 'ubuntu-24.04' }}
strategy:
matrix:
ubuntu_version:
- noble
- jammy
ruby_version:
- 3.2.8
- 3.3.7
- 3.4.2
- master
arch:
- amd64
- arm64
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Build image
run: |
rake docker:build arch=${{ matrix.arch }} ruby_version=${{ matrix.ruby_version }} ubuntu_version=${{ matrix.ubuntu_version }}
- name: Check image
run: |
docker images
docker run rubylang/ruby:${{ matrix.ruby_version }}-${{ matrix.ubuntu_version }} ruby -v