This repository has been archived by the owner on Nov 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
106 lines (86 loc) · 3.15 KB
/
pr-build.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#
# Copyright contributors to the Galasa project
#
# SPDX-License-Identifier: EPL-2.0
#
name: PR build
on:
pull_request:
branches: [main]
env:
IMAGE_TAG: ${{ github.event.number }}
jobs:
build-upload-galasabld:
name: Build galasabld
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Build galasabld using the Makefile
run: |
make all
- name: Build and test galasabld image
run: |
docker build -t galasabld:${{ env.IMAGE_TAG }} --build-arg platform=linux-amd64 -f dockerfiles/galasabld/dockerfile.galasabld .
docker run --rm galasabld:${{ env.IMAGE_TAG }}
- name: Push galasabld-linux-amd64 executables
uses: actions/upload-artifact@v4
with:
name: galasabld-linux-amd64
path: bin/galasabld-linux-amd64
- name: Push galasabld-windows-amd64 executables
uses: actions/upload-artifact@v4
with:
name: galasabld-windows-amd64
path: bin/galasabld-windows-amd64
- name: Push galasabld-darwin-amd64 executables
uses: actions/upload-artifact@v4
with:
name: galasabld-darwin-amd64
path: bin/galasabld-darwin-amd64
- name: Push galasabld-darwin-arm64 executables
uses: actions/upload-artifact@v4
with:
name: galasabld-darwin-arm64
path: bin/galasabld-darwin-arm64
- name: Push galasabld-linux-s390x executables
uses: actions/upload-artifact@v4
with:
name: galasabld-linux-s390x
path: bin/galasabld-linux-s390x
build-upload-openapi2beans:
name: Build openapi2beans
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Build and test openapi2beans using the Makefile
run: |
make all -C openapi2beans/
- name: Build and test openapi2beans image
run: |
docker build -t openapi2beans:${{ env.IMAGE_TAG }} --build-arg platform=linux-x86_64 -f dockerfiles/openapi2beans/dockerfile.openapi2beans .
docker run --rm openapi2beans:${{ env.IMAGE_TAG }}
- name: Push openapi2beans-darwin-arm64 executables
uses: actions/upload-artifact@v4
with:
name: openapi2beans-darwin-arm64
path: openapi2beans/bin/openapi2beans-darwin-arm64
- name: Push openapi2beans-darwin-x86_64 executables
uses: actions/upload-artifact@v4
with:
name: openapi2beans-darwin-x86_64
path: openapi2beans/bin/openapi2beans-darwin-x86_64
- name: Push openapi2beans-linux-x86_64 executables
uses: actions/upload-artifact@v4
with:
name: openapi2beans-linux-x86_64
path: openapi2beans/bin/openapi2beans-linux-x86_64