Skip to content

Commit ae02a9a

Browse files
authored
Merge pull request #52 from phlowdotdev/debug_tcp
Debug tcp
2 parents e62ec70 + 279635c commit ae02a9a

File tree

31 files changed

+2721
-461
lines changed

31 files changed

+2721
-461
lines changed
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: Release Inspect Binaries
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: read
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
linux_binary:
14+
name: Prepare Linux Binaries
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
include:
19+
- target: x86_64-unknown-linux-gnu
20+
artifact: linux-amd64
21+
- target: aarch64-unknown-linux-gnu
22+
artifact: linux-arm64
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
27+
- name: Setup Docker DinD
28+
uses: docker/setup-buildx-action@v3
29+
30+
- name: Install Rust Cross Lib
31+
run: |
32+
cargo install cross --git https://github.com/cross-rs/cross
33+
34+
- name: Build with Cross
35+
run: |
36+
cross build --target ${{ matrix.target }} --release -p phlow-tui-inspect
37+
38+
- name: Package binary
39+
run: |
40+
mkdir -p dist
41+
cp target/${{ matrix.target }}/release/phlow-tui-inspect dist/phlow-tui-inspect
42+
tar -czf phlow-tui-inspect-${{ matrix.artifact }}.tar.gz -C dist phlow-tui-inspect
43+
44+
- name: Upload Linux binary artifact
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: phlow-tui-inspect-${{ matrix.artifact }}
48+
path: phlow-tui-inspect-${{ matrix.artifact }}.tar.gz
49+
50+
macos_binary:
51+
name: Prepare macOS Binaries
52+
runs-on: ${{ matrix.os }}
53+
strategy:
54+
matrix:
55+
include:
56+
- os: macos-13
57+
target: x86_64-apple-darwin
58+
artifact: macos-amd64
59+
- os: macos-latest
60+
target: aarch64-apple-darwin
61+
artifact: macos-arm64
62+
steps:
63+
- name: Checkout code
64+
uses: actions/checkout@v4
65+
66+
- name: Install Rust
67+
uses: actions-rs/toolchain@v1
68+
with:
69+
toolchain: stable
70+
target: ${{ matrix.target }}
71+
override: true
72+
73+
- name: Build with Cargo
74+
run: cargo build --release -p phlow-tui-inspect --target ${{ matrix.target }}
75+
76+
- name: Package binary
77+
run: |
78+
mkdir -p dist
79+
cp target/${{ matrix.target }}/release/phlow-tui-inspect dist/phlow-tui-inspect
80+
tar -czf phlow-tui-inspect-${{ matrix.artifact }}.tar.gz -C dist phlow-tui-inspect
81+
82+
- name: Upload macOS binary artifact
83+
uses: actions/upload-artifact@v4
84+
with:
85+
name: phlow-tui-inspect-${{ matrix.artifact }}
86+
path: phlow-tui-inspect-${{ matrix.artifact }}.tar.gz

AGENTS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ Estrutura relevante:
1414
- `phlow-sdk/`: SDKs
1515
- `examples/`: fluxos de exemplo
1616
- `scripts/`: scripts auxiliares
17+
18+
Regra:
19+
- Antes de concluir a tarefa, buildar todos os pacotes: `cargo build --workspace`

0 commit comments

Comments
 (0)