forked from stefansundin/aws-rotate-key
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (53 loc) · 2.16 KB
/
build.yml
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
name: Build
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.18
- uses: actions/checkout@v3
- name: go build
run: |
GOOS=linux GOARCH=amd64 go build -o release/linux_amd64/aws-rotate-key
GOOS=linux GOARCH=arm GOARM=6 go build -o release/linux_arm/aws-rotate-key
GOOS=linux GOARCH=arm64 go build -o release/linux_arm64/aws-rotate-key
GOOS=darwin GOARCH=amd64 go build -o release/darwin_amd64/aws-rotate-key
GOOS=darwin GOARCH=arm64 go build -o release/darwin_arm64/aws-rotate-key
GOOS=windows GOARCH=amd64 go build -o release/windows_amd64/aws-rotate-key.exe
GOOS=windows GOARCH=arm go build -o release/windows_arm/aws-rotate-key.exe
GOOS=windows GOARCH=arm64 go build -o release/windows_arm64/aws-rotate-key.exe
- uses: actions/upload-artifact@v3
with:
name: aws-rotate-key-linux_amd64-${{ github.sha }}
path: release/linux_amd64/aws-rotate-key
- uses: actions/upload-artifact@v3
with:
name: aws-rotate-key-linux_arm-${{ github.sha }}
path: release/linux_arm/aws-rotate-key
- uses: actions/upload-artifact@v3
with:
name: aws-rotate-key-linux_arm64-${{ github.sha }}
path: release/linux_arm64/aws-rotate-key
- uses: actions/upload-artifact@v3
with:
name: aws-rotate-key-darwin_amd64-${{ github.sha }}
path: release/darwin_amd64/aws-rotate-key
- uses: actions/upload-artifact@v3
with:
name: aws-rotate-key-darwin_arm64-${{ github.sha }}
path: release/darwin_arm64/aws-rotate-key
- uses: actions/upload-artifact@v3
with:
name: aws-rotate-key-windows_amd64-${{ github.sha }}
path: release/windows_amd64/aws-rotate-key.exe
- uses: actions/upload-artifact@v3
with:
name: aws-rotate-key-windows_arm-${{ github.sha }}
path: release/windows_arm/aws-rotate-key.exe
- uses: actions/upload-artifact@v3
with:
name: aws-rotate-key-windows_arm64-${{ github.sha }}
path: release/windows_arm64/aws-rotate-key.exe