-
-
Notifications
You must be signed in to change notification settings - Fork 10
41 lines (38 loc) · 1.03 KB
/
darwin.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
name: Build Darwin
on:
workflow_dispatch:
inputs:
version:
description: Version Overwrite
required: false
push:
tags:
- "v*"
pull_request:
env:
VERSION: ${{ github.event.inputs.version || (startsWith(github.ref, 'refs/tags/') && github.ref || '') }}
jobs:
binding:
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '^1.21'
- name: Build
run: make binding_darwin
- name: Compress
run: tar -czvf output.tar.gz -C output/binding/darwin .
- if: ${{ env.VERSION!='' }}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
asset_name: libopenpgp_bridge_darwin_$tag.tar.gz
file: output.tar.gz
tag: ${{ env.VERSION }}
overwrite: true
- if: ${{ env.VERSION=='' }}
uses: actions/upload-artifact@v3
with:
name: libopenpgp_bridge_darwin
path: output.tar.gz