Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
Loading