Skip to content

Commit 9f89fe5

Browse files
committed
Use centralized build
1 parent 6cef3b4 commit 9f89fe5

File tree

1 file changed

+8
-66
lines changed

1 file changed

+8
-66
lines changed

.github/workflows/build.yml

+8-66
Original file line numberDiff line numberDiff line change
@@ -6,72 +6,14 @@ on:
66
ref:
77
description: 'Tag to build'
88
required: true
9-
10-
env:
11-
VANAGON_LOCATION: 'https://github.com/overlookinfra/vanagon#main'
9+
project_name:
10+
description: 'The vanagon project to build'
11+
required: false
12+
default: 'agent-runtime-main'
1213

1314
jobs:
1415
build:
15-
runs-on: ubuntu-latest
16-
timeout-minutes: 300
17-
strategy:
18-
fail-fast: false
19-
matrix:
20-
os: [
21-
'amazon-2-aarch64',
22-
'amazon-2023-aarch64',
23-
'amazon-2023-x86_64',
24-
'debian-10-amd64',
25-
'debian-11-aarch64',
26-
'debian-11-amd64',
27-
'debian-12-aarch64',
28-
'debian-12-amd64',
29-
'el-7-x86_64',
30-
'el-8-aarch64',
31-
'el-8-x86_64',
32-
'el-8-ppc64le',
33-
'el-9-aarch64',
34-
'el-9-x86_64',
35-
'el-9-ppc64le',
36-
'fedora-36-x86_64',
37-
'fedora-40-x86_64',
38-
'fedora-40-aarch64',
39-
'sles-15-x86_64',
40-
'ubuntu-18.04-aarch64',
41-
'ubuntu-18.04-amd64',
42-
'ubuntu-20.04-aarch64',
43-
'ubuntu-20.04-amd64',
44-
'ubuntu-22.04-aarch64',
45-
'ubuntu-22.04-amd64',
46-
'ubuntu-24.04-aarch64',
47-
'ubuntu-24.04-amd64',
48-
]
49-
steps:
50-
- name: Checkout code at tag
51-
uses: actions/checkout@v4
52-
with:
53-
ref: ${{ github.event.inputs.ref }}
54-
55-
- name: Install Ruby
56-
uses: ruby/setup-ruby@v1
57-
with:
58-
ruby-version: '3.2.6'
59-
bundler-cache: true
60-
61-
- name: Install qemu-user-static
62-
run: |
63-
sudo apt-get update -y
64-
sudo apt-get install -y qemu-user-static
65-
66-
- name: Run build script
67-
run: |
68-
rm -rf .bundle
69-
bundle install
70-
rm -rf output
71-
bundle exec build agent-runtime-main ${{ matrix.os }} --engine docker
72-
73-
- name: Save output
74-
uses: actions/upload-artifact@v3
75-
with:
76-
name: ${{ matrix.os }}-output
77-
path: output/
16+
uses: 'overlookinfra/shared-actions/.github/workflows/build_vanagon.yml@main'
17+
with:
18+
ref: ${{ inputs.ref }}
19+
project_name: ${{ inputs.project_name }}

0 commit comments

Comments
 (0)