-
-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (41 loc) · 1.23 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
name: "Release"
on:
push:
tags:
- "v*.*.*"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
Artifacts:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: GitHub Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Setup Rust toolchain
uses: hecrj/setup-rust-action@v2
with:
rust-version: stable
components: rustfmt, clippy
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
- name: Build release binary
run: cargo build --release
- name: Rename binary and generate checksum
working-directory: ./target/release
run: |
mv xlm xlm-x86_64-unknown-linux-gnu
sha256sum xlm-x86_64-unknown-linux-gnu > xlm-x86_64-unknown-linux-gnu.sha256sum
- name: Release on GitHub
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
fail_on_unmatched_files: true
files: |
./target/release/xlm-x86_64-unknown-linux-gnu
./target/release/xlm-x86_64-unknown-linux-gnu.sha256sum