-
-
Notifications
You must be signed in to change notification settings - Fork 28
152 lines (128 loc) · 5.79 KB
/
Release_CICD.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
name: Vedic Release CICD
on:
workflow_dispatch:
inputs:
vesion:
description: Version
required: true
prerelease:
description: Prerelease
required: true
type: boolean
jobs:
Build-Windows:
name: "Build release for Windows"
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: default
toolchain: stable
target: x86_64-pc-windows-msvc
- name: Build binary
shell: pwsh
run: cicd/build_windows.ps1
- name: Upload release
uses: actions/upload-artifact@v4
with:
name: windows
path: release_windows/*
Build-Mac:
name: "Build release for MacOS"
runs-on: macos-latest # macos-11.0
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: default
toolchain: stable
target: x86_64-apple-darwin
- name: Build binary
shell: bash
run: bash cicd/build_mac.sh
- name: Upload release
uses: actions/upload-artifact@v4
with:
name: mac
path: release_mac/*
Build-Linux:
name: "Build release for Linux"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: default
toolchain: stable
target: x86_64-unknown-linux-gnu
- name: Build Linux
shell: bash
run: bash cicd/build_linux.sh
- name: Upload release
uses: actions/upload-artifact@v4
with:
name: linux
path: release_linux/*
Release:
needs: [Build-Windows, Build-Mac, Build-Linux]
runs-on: ubuntu-latest
steps:
- name: Download release windows
uses: actions/download-artifact@v4
with:
name: windows
path: release_windows
- name: Download release mac
uses: actions/download-artifact@v4
with:
name: mac
path: release_mac
- name: Download release linux
uses: actions/download-artifact@v4
with:
name: linux
path: release_linux
- name: Generate SHA256 checksums
run: |
sha256sum release_windows/* >> sha256sums.txt
sha256sum release_linux/* >> sha256sums.txt
sha256sum release_mac/* >> sha256sums.txt
- name: Publish
uses: softprops/action-gh-release@v2
with:
name: Vedic ${{ github.event.inputs.vesion }}
tag_name: v${{ github.event.inputs.vesion }}
prerelease: ${{ github.event.inputs.prerelease }}
token: ${{ secrets.GITHUB_TOKEN }}
generate_release_notes: true
draft: true
files: |
release_windows/*
release_linux/*
release_mac/*
sha256sums.txt
body: |
## Installers and Binaries
Standalone binaries and installer are built out for Windows, MacOS, and Linux for multipal architectures.
- **vedic-win-x86_64-installer.msi** : Windows installer for windows on x86_64 architecture
- **vedic-win-x86_64.zip** : standalone binary for Windows on x86-64 architecture
- **vedic-darwin-aarch64.tar.gz** : standalone binary for MacOS on aarch64 architecture
- **vedic-darwin-x86_64.tar.gz** : standalone binary for MacOS on x86_64 architecture
- **vedic-linux-x86_64.deb** : Debian installer for Linux on x86_64 architecture
- **vedic-linux-gnu-x86_64.tar.xz** : standalone binary for Linux on x86_64 architecture using GNU C Library
- **vedic-linux-gnu-aarch64.tar.xz** : standalone binary for Linux on aarch64 architecture using GNU C Library
- **vedic-linux-gnu-i686.tar.xz** : standalone binary for Linux on i686 architecture using GNU C Library
- **vedic-linux-musl-x86_64.tar.xz** : standalone binary for Linux on x86_64 architecture using musl C library (static binary, no libc dependency)
- **vedic-linux-musl-aarch64.tar.xz** : standalone binary for Linux on aarch64 architecture using musl C library (static binary, no libc dependency)
- **vedic-linux-gnueabihf-armv7.tar.xz** : standalone binary for Raspberry PI Linux on armv7 architecture using GNU C Library
- **vedic-android-aarch64.tar.xz** : standalone binary for Android on aarch64 architecture
- **vedic-android-armv7.tar.xz** : standalone binary for Android on armv7 architecture
- **vedic-android-i686.tar.xz** : standalone binary for Android on i686 architecture
- **vedic-android-x86_64.tar.xz** : standalone binary for Android on x86_64 architecture