Mycelium/.gitea/workflows/release.yml
Benjamyn Love 5692ba91ba
Some checks failed
/ release (push) Failing after 52s
Update .gitea/workflows/release.yml
2025-03-20 22:28:45 -04:00

42 lines
1.1 KiB
YAML

# .gitea/workflows/release.yml
on:
push:
tags:
- '*'
env:
GITHUB_TOKEN: "{{ secrets.GT_TOKEN }}"
CRATE_NAME: mycelium
RUST_BACKTRACE: 1
jobs:
release:
name: release
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
platform:
- os-name: Linux-x86_64
runs-on: ubuntu-20.04
target: x86_64-unknown-linux-gnu
toolchain:
- stable
steps:
- uses: actions/checkout@v4
- name: Install deps
run: |
apt-get update; apt-get install -y libdbus-1-3 libdbus-1-dev libdbus-1-3 pkg-config
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o /tmp/inst_rustup.sh
bash /tmp/inst_rustup.sh -y
source /root/.cargo/env
rustup toolchain install stable-x86_64-unknown-linux-gnu
- name: Build binary
run: |
/root/.cargo/bin/cargo build --release
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
README.md
target/release/mycelium