mirror of
https://github.com/brockar/medars.git
synced 2026-01-11 15:01:00 -03:00
new: releases
This commit is contained in:
31
.github/workflows/release.yml
vendored
Normal file
31
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
build-release:
|
||||
name: Build and Release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Rust toolchain
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Install dependencies
|
||||
run: sudo apt-get update && sudo apt-get install -y libgexiv2-dev pkg-config
|
||||
|
||||
- name: Build binary
|
||||
run: cargo build --release --verbose
|
||||
|
||||
- name: Strip binary
|
||||
run: strip target/release/medars
|
||||
|
||||
- name: Create Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: target/release/medars
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -14,5 +14,4 @@ target
|
||||
**/mutants.out*/
|
||||
|
||||
imgs/
|
||||
.github/
|
||||
brainstorm.md
|
||||
brainstorm.md
|
||||
|
||||
Reference in New Issue
Block a user