-
Notifications
You must be signed in to change notification settings - Fork 2
69 lines (66 loc) · 2.07 KB
/
main.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Build Alchemy Binaries
on:
release:
types: [created]
permissions:
contents: write
packages: write
jobs:
alchemy:
name: Release Alchmey Binary
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: linux/amd64
goos: [darwin, windows, linux]
goarch: [amd64, arm64]
exclude:
- goarch: arm64
goos: windows
steps:
- name: Get tag
id: tag
uses: devops-actions/action-get-tag@main
with:
strip_v: true
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: "."
binary_name: "alchemy"
ldflags: "-s -w -X 'github.com/project-chip/alchemy/config.Tag=${{ steps.tag.outputs.tag }}'"
extra_files: LICENSE README.md
asset_name: "alchemy-${{ steps.tag.outputs.tag }}-${{ matrix.goos }}-${{ matrix.goarch }}"
alchemy-db:
name: Release Alchmey DB Binary
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: linux/amd64
goos: [darwin, windows, linux]
goarch: [amd64, arm64]
tags: [db]
exclude:
- goarch: arm64
goos: windows
steps:
- name: Get tag
id: tag
uses: devops-actions/action-get-tag@main
with:
strip_v: true
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: "."
binary_name: "alchemy-db"
ldflags: "-s -w -X 'github.com/project-chip/alchemy/config.Tag=${{ steps.tag.outputs.tag }}'"
build_flags: -tags ${{ matrix.tags }}
extra_files: LICENSE README.md
asset_name: "alchemy-db-${{ steps.tag.outputs.tag }}-${{ matrix.goos }}-${{ matrix.goarch }}"