Skip to content

Release Inspect Binaries #7

Release Inspect Binaries

Release Inspect Binaries #7

name: Release Inspect Binaries
on:
workflow_dispatch:
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
jobs:
linux_binary:
name: Prepare Linux Binaries
runs-on: ubuntu-latest
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
artifact: linux-amd64
- target: aarch64-unknown-linux-gnu
artifact: linux-arm64
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Docker DinD
uses: docker/setup-buildx-action@v3
- name: Install Rust Cross Lib
run: |
cargo install cross --git https://github.com/cross-rs/cross
- name: Build with Cross
run: |
cross build --target ${{ matrix.target }} --release -p phlow-tui-inspect
- name: Package binary
run: |
mkdir -p dist
cp target/${{ matrix.target }}/release/phlow-tui-inspect dist/phlow-tui-inspect
tar -czf phlow-tui-inspect-${{ matrix.artifact }}.tar.gz -C dist phlow-tui-inspect
- name: Upload Linux binary artifact
uses: actions/upload-artifact@v4
with:
name: phlow-tui-inspect-${{ matrix.artifact }}
path: phlow-tui-inspect-${{ matrix.artifact }}.tar.gz
macos_binary:
name: Prepare macOS Binaries
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Build with Cargo
run: cargo build --release -p phlow-tui-inspect
- name: Package binary
run: |
mkdir -p dist
cp target/release/phlow-tui-inspect dist/phlow-tui-inspect
tar -czf phlow-tui-inspect-macos.tar.gz -C dist phlow-tui-inspect
- name: Upload macOS binary artifact
uses: actions/upload-artifact@v4
with:
name: phlow-tui-inspect-macos
path: phlow-tui-inspect-macos.tar.gz