Compare commits
28 Commits
feat/toml_
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| b5c4bb351d | |||
| c73b85ed1b | |||
| 7c9ccc2e0f | |||
| e29e83e634 | |||
| 84ba411fbe | |||
| fc091a4870 | |||
| 5ce01ea9bd | |||
| c3ef702ba1 | |||
| 636e336f05 | |||
| 6b6fa96afb | |||
| 3fffee0007 | |||
| 5692ba91ba | |||
| 0b58ed9d22 | |||
| 6ed07fd329 | |||
| 04b46dc9c0 | |||
| 32d1d6ecb2 | |||
| d39dbbbe8b | |||
| 38d6be83dc | |||
| 93d5472dda | |||
| e3992f3bae | |||
| 3ac03329dd | |||
| 90639a9266 | |||
| 31b155f4dd | |||
| 2e4de7e411 | |||
| 244e80faf0 | |||
| 10b1d25316 | |||
| ae543de20c | |||
| 6f1137dc76 |
@ -4,26 +4,40 @@ on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
env:
|
||||
CRATE_NAME: mycelium
|
||||
RUST_BACKTRACE: 1
|
||||
jobs:
|
||||
release:
|
||||
name: release
|
||||
runs-on: ubuntu-latest
|
||||
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@master
|
||||
- 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
|
||||
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
|
||||
uses: houseabsolute/actions-rust-cross@v1
|
||||
run: |
|
||||
/root/.cargo/bin/cargo build --release
|
||||
tar -zcvf x86_64-linux.tgz target/release/mycelium README.md
|
||||
- name: Test
|
||||
run: |
|
||||
ls -alh target/release/mycelium
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
command: "build"
|
||||
target: "x86_64-unknown-linux-gnu"
|
||||
args: "--locked --release"
|
||||
strip: true
|
||||
- name: Publish artifacts and release
|
||||
uses: houseabsolute/actions-rust-release@v0
|
||||
with:
|
||||
executable-name: "mycelium"
|
||||
target: "x86_64-unknown-linux-gnu"
|
||||
files: x86_64-linux.tgz
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user