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