-
Notifications
You must be signed in to change notification settings - Fork 231
41 lines (33 loc) · 1.08 KB
/
build_m1.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
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Build AzCopy for M1 Mac
on:
workflow_dispatch:
inputs:
m1_url:
description: 'Target object in storage without SAS'
required: true
type: string
permissions:
id-token: write
contents: read
jobs:
build:
runs-on: macos-14
environment: Release
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22.4'
- name: Build
run: CGO_ENABLED=1 go build -o azcopy_darwin_arm64
- name: Azure Login
uses: Azure/login@v2.1.0
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Upload to AzCopy to M1 container
run: AZCOPY_AUTO_LOGIN_TYPE=AzCLI ./azcopy_darwin_arm64 copy "azcopy_darwin_arm64" "${{ inputs.m1_url }}"