Mycelium/.gitea/workflows/release.yml
Benjamyn Love 93d5472dda
Some checks failed
/ release (push) Failing after 5s
Update .gitea/workflows/release.yml
2025-03-20 22:05:46 -04:00

40 lines
1.0 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
- name: Build binary
uses: houseabsolute/actions-rust-cross@v1
with:
use-rust-cache: false
command: "build"
target: ${{ matrix.platform.target }}
toolchain: ${{ matrix.platform.toolchain }}
- name: Publish artifacts and release
uses: houseabsolute/actions-rust-release@v0
with:
executable-name: "mycelium"
target: "x86_64-unknown-linux-gnu"