6
6
ref_name :
7
7
required : true
8
8
type : string
9
- arch :
10
- type : string
11
- required : true
12
- output-arch :
13
- type : string
14
- required : true
15
9
workflow_call :
16
10
inputs :
17
11
ref_name :
18
12
required : true
19
13
type : string
20
- arch :
21
- type : string
22
- required : true
23
- output-arch :
24
- type : string
25
- required : true
26
14
schedule :
27
15
- cron : ' 0 9 * * *'
28
16
env :
65
53
66
54
ubuntu-deb-build-and-test :
67
55
needs : get-tag-and-version
68
- runs-on : codebuild-finch-${{ inputs.arch }}-2-instance-${{ github.run_id }}-${{ github.run_attempt }}
56
+ strategy :
57
+ fail-fast : false
58
+ matrix :
59
+ arch : ['x86_64', 'arm64']
60
+ include :
61
+ - arch : ' x86_64'
62
+ output-arch : ' amd64'
63
+ - arch : ' arm64'
64
+ output-arch : ' arm64'
65
+ runs-on : codebuild-finch-${{ matrix.arch }}-2-instance-${{ github.run_id }}-${{ github.run_attempt }}
69
66
timeout-minutes : 30
70
67
steps :
71
68
- name : Configure AWS credentials
@@ -93,15 +90,15 @@ jobs:
93
90
sudo apt install libseccomp-dev -y
94
91
sudo apt install pkg-config -y
95
92
sudo apt install zlib1g-dev -y
96
- - name : Build for Ubuntu ${{ inputs .output-arch }}
93
+ - name : Build for Ubuntu ${{ matrix .output-arch }}
97
94
run : |
98
95
make
99
96
- name : Generate deb
100
97
run : |
101
- ./contrib/packaging/deb/package.sh --${{ inputs .output-arch }} --version ${{ needs.get-tag-and-version.outputs.version }}
98
+ ./contrib/packaging/deb/package.sh --${{ matrix .output-arch }} --version ${{ needs.get-tag-and-version.outputs.version }}
102
99
- name : Install Finch
103
100
run : |
104
- sudo apt install ./_output/deb/runfinch-finch_${{ needs.get-tag-and-version.outputs.version }}_${{ inputs .output-arch }}.deb -y
101
+ sudo apt install ./_output/deb/runfinch-finch_${{ needs.get-tag-and-version.outputs.version }}_${{ matrix .output-arch }}.deb -y
105
102
sudo systemctl daemon-reload
106
103
sudo systemctl start containerd.service
107
104
sudo systemctl restart finch.socket
@@ -126,5 +123,5 @@ jobs:
126
123
sudo apt remove zlib1g-dev -y
127
124
- name : Upload deb to S3
128
125
run : |
129
- aws s3 cp ./_output/deb s3://${{ secrets.DEB_PRIVATE_BUCKET_NAME_UNSIGNED_PROD }}/ --recursive --exclude "*" --include "runfinch-finch_${{ needs.get-tag-and-version.outputs.version }}_${{ inputs .output-arch }}.deb"
126
+ aws s3 cp ./_output/deb s3://${{ secrets.DEB_PRIVATE_BUCKET_NAME_UNSIGNED_PROD }}/ --recursive --exclude "*" --include "runfinch-finch_${{ needs.get-tag-and-version.outputs.version }}_${{ matrix .output-arch }}.deb"
130
127
aws s3 cp ./contrib/packaging/deb/Release s3://${{ secrets.DEB_PRIVATE_BUCKET_NAME_UNSIGNED_PROD }}/
0 commit comments