|
1
|
name: Build Release Binaries |
|
2
|
|
|
3
|
on: |
|
4
|
release: |
|
5
|
types: [published] |
|
6
|
workflow_dispatch: |
|
7
|
inputs: |
|
8
|
tag: |
|
9
|
description: "Release tag to attach binaries to (e.g. v0.1.0)" |
|
10
|
required: true |
|
11
|
default: "v0.1.0" |
|
12
|
|
|
13
|
permissions: |
|
14
|
contents: write |
|
15
|
|
|
16
|
jobs: |
|
17
|
build: |
|
18
|
strategy: |
|
19
|
matrix: |
|
20
|
include: |
|
21
|
- os: ubuntu-latest |
|
22
|
target: linux-x86_64 |
|
23
|
ext: "" |
|
24
|
- os: macos-latest |
|
25
|
target: macos-arm64 |
|
26
|
ext: "" |
|
27
|
- os: macos-13 |
|
28
|
target: macos-x86_64 |
|
29
|
ext: "" |
|
30
|
- os: windows-latest |
|
31
|
target: windows-x86_64 |
|
32
|
ext: ".exe" |
|
33
|
|
|
34
|
runs-on: ${{ matrix.os }} |
|
35
|
steps: |
|
36
|
- uses: actions/checkout@v4 |
|
37
|
|
|
38
|
- uses: actions/setup-python@v5 |
|
39
|
with: |
|
40
|
python-version: "3.12" |
|
41
|
|
|
42
|
- name: Install dependencies |
|
43
|
run: | |
|
44
|
pip install -e ".[all]" |
|
45
|
pip install pyinstaller |
|
46
|
|
|
47
|
- name: Build binary |
|
48
|
shell: bash |
|
49
|
run: | |
|
50
|
pyinstaller \ |
|
51
|
--name navegador-${{ matrix.target }} \ |
|
52
|
--onefile \ |
|
53
|
--console \ |
|
54
|
--hidden-import=navegador \ |
|
55
|
--hidden-import=navegador.cli.commands \ |
|
56
|
--hidden-import=navegador.ingestion \ |
|
57
|
--hidden-import=navegador.ingestion.python \ |
|
58
|
--hidden-import=navegador.ingestion.typescript \ |
|
59
|
--hidden-import=navegador.ingestion.go \ |
|
60
|
--hidden-import=navegador.ingestion.rust \ |
|
61
|
--hidden-import=navegador.ingestion.java \ |
|
62
|
--hidden-import=navegador.ingestion.knowledge \ |
|
63
|
--hidden-import=navegador.ingestion.planopticon \ |
|
64
|
--hidden-import=navegador.ingestion.wiki \ |
|
65
|
--hidden-import=navegador.graph \ |
|
66
|
--hidden-import=navegador.graph.store \ |
|
67
|
--hidden-import=navegador.graph.schema \ |
|
68
|
--hidden-import=navegador.graph.queries \ |
|
69
|
--hidden-import=navegador.mcp \ |
|
70
|
--hidden-import=navegador.mcp.server \ |
|
71
|
--collect-all navegador \ |
|
72
|
navegador/cli/commands.py |
|
73
|
|
|
74
|
- name: Upload binary to release |
|
75
|
uses: softprops/action-gh-release@v2 |
|
76
|
with: |
|
77
|
tag_name: ${{ github.event.inputs.tag || github.ref_name }} |
|
78
|
files: dist/navegador-${{ matrix.target }}${{ matrix.ext }} |
|
79
|
|