-
Notifications
You must be signed in to change notification settings - Fork 20
93 lines (87 loc) · 2.95 KB
/
release.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
name: Release
on:
release:
types: [created]
permissions:
contents: write
jobs:
publish-linux:
name: Publish binary on Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cd ckb-debugger && cargo build --release --features=stdio
- name: Archive files
run: |
mkdir dist
cp target/release/ckb-debugger dist
cp LICENSE dist
cd dist && tar -cvzf ckb-debugger-linux-x64.tar.gz ckb-debugger LICENSE
- name: Generate checksum
run: cd dist && sha256sum ckb-debugger-linux-x64.tar.gz > ckb-debugger-linux-x64-sha256.txt
- name: Upload
uses: softprops/action-gh-release@v1
with:
files: |
dist/ckb-debugger-linux-x64.tar.gz
dist/ckb-debugger-linux-x64-sha256.txt
publish-macos:
name: Publish binary on macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cd ckb-debugger && cargo build --release --features=stdio
- name: Archive files
run: |
mkdir dist
cp target/release/ckb-debugger dist
cp LICENSE dist
cd dist && tar -cvzf ckb-debugger-macos-x64.tar.gz ckb-debugger LICENSE
- name: Generate checksum
run: cd dist && shasum -a 256 ckb-debugger-macos-x64.tar.gz > ckb-debugger-macos-x64-sha256.txt
- name: Upload
uses: softprops/action-gh-release@v1
with:
files: |
dist/ckb-debugger-macos-x64.tar.gz
dist/ckb-debugger-macos-x64-sha256.txt
publish-windows:
name: Publish binary on Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cd ckb-debugger && cargo build --release
- name: Archive files
run: |
mkdir dist
copy target/release/ckb-debugger.exe dist
copy LICENSE dist
cd dist && tar -cvzf ckb-debugger-windows-x64.tar.gz ckb-debugger.exe LICENSE
- name: Generate checksum
run: cd dist && Get-FileHash ckb-debugger-windows-x64.tar.gz > ckb-debugger-windows-x64-sha256.txt
- name: Upload
uses: softprops/action-gh-release@v1
with:
files: |
dist/ckb-debugger-windows-x64.tar.gz
dist/ckb-debugger-windows-x64-sha256.txt
publish-crates-io:
name: Publish crates to crates.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Publish
run: |
cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}
cd ckb-mock-tx-types && cargo publish && cd ..
cd ckb-vm-pprof && cargo publish && cd ..
cd ckb-debugger-api && cargo publish && cd ..
cd ckb-gdb-remote-protocol && cargo publish && cd ..
cd ckb-vm-debug-utils && cargo publish && cd ..
cd ckb-debugger && cargo publish && cd ..
cd ckb-vm-pprof-protos && cargo publish --no-verify && cd ..
cd ckb-vm-pprof-converter && cargo publish && cd ..
cd ckb-vm-signal-profiler && cargo publish && cd ..