-
Notifications
You must be signed in to change notification settings - Fork 29
37 lines (30 loc) · 971 Bytes
/
release.yml
File metadata and controls
37 lines (30 loc) · 971 Bytes
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
name: release
on:
push:
tags: ['v*']
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout sources
uses: actions/checkout@v6
- name: Install Rust toolchain with musl target
uses: dtolnay/rust-toolchain@stable
with:
toolchain: '1.88'
targets: x86_64-unknown-linux-musl
- name: Install musl tools
run: sudo apt-get update && sudo apt-get install -y musl-tools
- name: Build release binary
run: cargo build --release --locked --target x86_64-unknown-linux-musl
- name: Package binary
run: |
tar -czf subway-${{ github.ref_name }}-x86_64-unknown-linux-musl.tar.gz \
-C target/x86_64-unknown-linux-musl/release subway
- name: Publish GitHub Release
uses: softprops/action-gh-release@v2
with:
files: subway-*.tar.gz
generate_release_notes: true