-
Notifications
You must be signed in to change notification settings - Fork 3
76 lines (62 loc) · 2 KB
/
inspect-binarys.yaml
File metadata and controls
76 lines (62 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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