forked from engswee/flashpipe
-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (79 loc) · 2.25 KB
/
build-artifacts.yml
File metadata and controls
92 lines (79 loc) · 2.25 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Build Artifacts
permissions:
contents: read
on:
push:
branches:
- main
paths-ignore:
- "docs/**"
- "licenses/**"
- "*.md"
- ".gitignore"
- ".gitattributes"
- "LICENSE"
- "NOTICE"
workflow_dispatch:
jobs:
build-binaries:
name: Build Cross-Platform Binaries
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for proper version tagging
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: Build all platforms
run: make build-all
env:
CGO_ENABLED: 0
- name: List built artifacts
run: |
echo "Built artifacts:"
ls -lh bin/
- name: Upload Windows AMD64 binary
uses: actions/upload-artifact@v4
with:
name: flashpipex-windows-amd64
path: bin/flashpipex-windows-amd64.exe
if-no-files-found: error
retention-days: 90
- name: Upload Linux AMD64 binary
uses: actions/upload-artifact@v4
with:
name: flashpipex-linux-amd64
path: bin/flashpipex-linux-amd64
if-no-files-found: error
retention-days: 90
- name: Upload Linux ARM64 binary
uses: actions/upload-artifact@v4
with:
name: flashpipex-linux-arm64
path: bin/flashpipex-linux-arm64
if-no-files-found: error
retention-days: 90
- name: Upload macOS AMD64 binary
uses: actions/upload-artifact@v4
with:
name: flashpipex-darwin-amd64
path: bin/flashpipex-darwin-amd64
if-no-files-found: error
retention-days: 90
- name: Upload macOS ARM64 binary
uses: actions/upload-artifact@v4
with:
name: flashpipex-darwin-arm64
path: bin/flashpipex-darwin-arm64
if-no-files-found: error
retention-days: 90
- name: Upload all binaries as single archive
uses: actions/upload-artifact@v4
with:
name: flashpipex-all-platforms
path: bin/*
if-no-files-found: error
retention-days: 90