v0.117.0 #36
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 .. |