Compare commits
4 Commits
636197baab
...
7144e92237
| Author | SHA1 | Date | |
|---|---|---|---|
| 7144e92237 | |||
| a30333b77e | |||
| 56dd495f83 | |||
| cc45f5cf59 |
@ -4,40 +4,23 @@ on:
|
|||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
- '*'
|
||||||
env:
|
|
||||||
CRATE_NAME: mycelium
|
|
||||||
RUST_BACKTRACE: 1
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
name: release
|
name: release ${{ matrix.target }}
|
||||||
runs-on: ubuntu-24.04
|
runs-on: alma9
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
platform:
|
target: [x86_64-unknown-linux-musl]
|
||||||
- os-name: Linux-x86_64
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
target: x86_64-unknown-linux-gnu
|
|
||||||
toolchain:
|
|
||||||
- stable
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@master
|
||||||
- name: Install deps
|
- name: Install deps
|
||||||
run: |
|
run: apt-get update; apt-get install -y libdbus-1-dev pkg-config
|
||||||
apt-get update; apt-get install -y libdbus-1-3 libdbus-1-dev libdbus-1-3 pkg-config
|
- name: Compile and release
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o /tmp/inst_rustup.sh
|
uses: rust-build/rust-build.action@v1.4.5
|
||||||
bash /tmp/inst_rustup.sh -y
|
env:
|
||||||
source /root/.cargo/env
|
GITHUB_TOKEN: ${{ secrets.GT_TOKEN }}
|
||||||
rustup toolchain install stable-x86_64-unknown-linux-gnu
|
|
||||||
- name: Build binary
|
|
||||||
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:
|
with:
|
||||||
files: x86_64-linux.tgz
|
RUSTTARGET: ${{ matrix.target }}
|
||||||
|
EXTRA_FILES: README.md
|
||||||
Loading…
x
Reference in New Issue
Block a user