-
Notifications
You must be signed in to change notification settings - Fork 989
96 lines (91 loc) · 3.79 KB
/
cd.yaml
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
name: Continuous Deployment
on:
push:
tags:
- "v*.*.*"
jobs:
linux-release:
name: Linux Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --release
- name: Archive
working-directory: target/release
run: tar -czvf grin-${{ github.ref_name }}-linux-x86_64.tar.gz grin
- name: Create Checksum
working-directory: target/release
run: openssl sha256 grin-${{ github.ref_name }}-linux-x86_64.tar.gz > grin-${{ github.ref_name }}-linux-x86_64-sha256sum.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
target/release/grin-${{ github.ref_name }}-linux-x86_64.tar.gz
target/release/grin-${{ github.ref_name }}-linux-x86_64-sha256sum.txt
macos-release-x86:
name: macOS Release - x86_64
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: cargo build --release --target x86_64-apple-darwin
- name: Archive
working-directory: target/release
run: tar -czvf grin-${{ github.ref_name }}-macos-x86_64.tar.gz grin
- name: Create Checksum
working-directory: target/release
run: openssl sha256 grin-${{ github.ref_name }}-macos-x86_64.tar.gz > grin-${{ github.ref_name }}-macos-x86_64-sha256sum.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
target/release/grin-${{ github.ref_name }}-macos-x86_64.tar.gz
target/release/grin-${{ github.ref_name }}-macos-x86_64-sha256sum.txt
macos-release-arm64:
name: macOS Release - arm64
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: cargo build --release
- name: Archive
working-directory: target/release
run: tar -czvf grin-${{ github.ref_name }}-macos-arm64.tar.gz grin
- name: Create Checksum
working-directory: target/release
run: openssl sha256 grin-${{ github.ref_name }}-macos-arm64.tar.gz > grin-${{ github.ref_name }}-macos-arm64-sha256sum.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
target/release/grin-${{ github.ref_name }}-macos-arm64.tar.gz
target/release/grin-${{ github.ref_name }}-macos-arm64-sha256sum.txt
windows-release:
name: Windows Release
runs-on: windows-2019
env:
ROARING_ARCH: x86-64-v2
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: cargo build --release
- name: Archive
uses: vimtor/action-zip@v1
with:
files: target/release/grin.exe
dest: target/release/grin-${{ github.ref_name }}-win-x86_64.zip
- name: Create Checksum
working-directory: target/release
shell: pwsh
run: get-filehash -algorithm sha256 grin-${{ github.ref_name }}-win-x86_64.zip | Format-List | Out-String | ForEach-Object { $_.Trim() } > grin-${{ github.ref_name }}-win-x86_64-sha256sum.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
target/release/grin-${{ github.ref_name }}-win-x86_64.zip
target/release/grin-${{ github.ref_name }}-win-x86_64-sha256sum.txt