Skip to content

Commit 1f4e6be

Browse files
YangKeaoAndrewmatildeti-chi-bot
authored
add arm64 master build (#201)
Signed-off-by: YangKeao <[email protected]> Signed-off-by: YangKeao <[email protected]> Co-authored-by: Andrewmatilde <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]>
1 parent 2c42950 commit 1f4e6be

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/release_latest.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ on:
77
jobs:
88
run:
99
name: Upload
10-
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
arch: [amd64, arm64]
14+
runs-on: ${{ fromJson('{"amd64":"ubuntu-latest", "arm64":["self-hosted", "Linux", "ARM64"]}')[matrix.arch] }}
1115
# glibc version 2.17
12-
container: docker.io/centos:7.2.1511
16+
container: ${{ fromJson('{"amd64":"docker.io/centos:7.2.1511", "arm64":"docker.io/centos:centos7"}')[matrix.arch] }}
1317
steps:
1418
- name: Set up Go 1.18
1519
uses: actions/setup-go@v1
@@ -44,8 +48,9 @@ jobs:
4448
- name: Build binary and related tools
4549
run: make build
4650

51+
# TODO: release on github package / release
4752
- name: Upload files
4853
run: |
49-
mv bin chaosd-latest-linux-amd64
50-
tar czvf chaosd-latest-linux-amd64.tar.gz chaosd-latest-linux-amd64
51-
aws s3 cp chaosd-latest-linux-amd64.tar.gz ${{ secrets.AWS_BUCKET_NAME }}/chaosd-latest-linux-amd64.tar.gz
54+
mv bin chaosd-latest-linux-${{ matrix.arch }}
55+
tar czvf chaosd-latest-linux-${{ matrix.arch }}.tar.gz chaosd-latest-linux-${{ matrix.arch }}
56+
aws s3 cp chaosd-latest-linux-${{ matrix.arch }}.tar.gz ${{ secrets.AWS_BUCKET_NAME }}/chaosd-latest-linux-${{ matrix.arch }}.tar.gz

0 commit comments

Comments
 (0)