Skip to content

Commit 04791ae

Browse files
authored
Merge pull request #5 from phendryx/gui-2026-08
Gui 2026 08
2 parents 519ecb5 + f65087b commit 04791ae

1,537 files changed

Lines changed: 7366 additions & 533632 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# .github/workflows/build.yml
2+
#
3+
# Reusable build workflow, shared by test-build.yml (push/PR) and
4+
# release.yml (release published). Single source of truth for how each
5+
# OS is built so the three build paths can't drift out of sync with
6+
# each other the way the darwin job previously did.
7+
8+
on:
9+
workflow_call:
10+
11+
jobs:
12+
build:
13+
name: Build ${{ matrix.os }}
14+
runs-on: ${{ matrix.runner }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
include:
19+
- os: linux
20+
runner: ubuntu-latest
21+
artifacts: |
22+
albiondata-client
23+
update-linux-amd64.gz
24+
- os: windows
25+
runner: ubuntu-latest
26+
artifacts: |
27+
albiondata-client.exe
28+
update-windows-amd64.exe.gz
29+
albiondata-client-amd64-installer.exe
30+
- os: darwin
31+
runner: macos-latest
32+
artifacts: |
33+
albiondata-client
34+
update-darwin-amd64.gz
35+
albiondata-client-amd64-mac.zip
36+
steps:
37+
- uses: actions/checkout@v6
38+
39+
- name: Set up Go
40+
uses: actions/setup-go@v6
41+
with:
42+
go-version-file: go.mod
43+
cache: true
44+
45+
- name: Set up Node
46+
uses: actions/setup-node@v5
47+
with:
48+
node-version: '22'
49+
cache: 'npm'
50+
cache-dependency-path: frontend/package-lock.json
51+
52+
- name: Build
53+
run: make build-${{ matrix.os }}
54+
55+
# Runs only on the linux leg, which already has libpcap-dev and the
56+
# frontend build (both required by the root package's cgo imports
57+
# and //go:embed directive) from the build step above - no need to
58+
# duplicate that setup in a separate job.
59+
- name: Vet
60+
if: matrix.os == 'linux'
61+
run: go vet ./...
62+
63+
- name: Test
64+
if: matrix.os == 'linux'
65+
run: go test ./...
66+
67+
- uses: actions/upload-artifact@v6
68+
with:
69+
name: build-${{ matrix.os }}
70+
path: ${{ matrix.artifacts }}

.github/workflows/main.yml

Lines changed: 0 additions & 118 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# .github/workflows/release.yml
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
uses: ./.github/workflows/build.yml
10+
11+
publish:
12+
name: Publish release assets
13+
needs: build
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/download-artifact@v6
17+
with:
18+
name: build-linux
19+
- uses: actions/download-artifact@v6
20+
with:
21+
name: build-windows
22+
- uses: actions/download-artifact@v6
23+
with:
24+
name: build-darwin
25+
26+
- uses: shogo82148/actions-upload-release-asset@v1
27+
with:
28+
upload_url: ${{ github.event.release.upload_url }}
29+
asset_path: update-linux-amd64.gz
30+
- uses: shogo82148/actions-upload-release-asset@v1
31+
with:
32+
upload_url: ${{ github.event.release.upload_url }}
33+
asset_path: update-windows-amd64.exe.gz
34+
- uses: shogo82148/actions-upload-release-asset@v1
35+
with:
36+
upload_url: ${{ github.event.release.upload_url }}
37+
asset_path: albiondata-client-amd64-installer.exe
38+
- uses: shogo82148/actions-upload-release-asset@v1
39+
with:
40+
upload_url: ${{ github.event.release.upload_url }}
41+
asset_path: update-darwin-amd64.gz
42+
- uses: shogo82148/actions-upload-release-asset@v1
43+
with:
44+
upload_url: ${{ github.event.release.upload_url }}
45+
asset_path: albiondata-client-amd64-mac.zip

.github/workflows/test-build.yml

Lines changed: 4 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,9 @@
1-
# .github/workflows/test-build.yaml
1+
# .github/workflows/test-build.yml
22

3-
on:
3+
on:
44
push:
55
pull_request:
66

77
jobs:
8-
build-linux:
9-
name: Build Linux Client
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v6
13-
- name: Set up Go
14-
uses: actions/setup-go@v6
15-
with:
16-
go-version: '1.25'
17-
- name: Build
18-
run: make build-linux
19-
20-
- uses: actions/upload-artifact@v6
21-
if: ${{ env.ACT }}
22-
with:
23-
name: files
24-
path: albiondata-client
25-
26-
- uses: actions/upload-artifact@v6
27-
if: ${{ env.ACT }}
28-
with:
29-
name: files
30-
path: update-linux-amd64.gz
31-
32-
build-windows:
33-
name: Build Windows Client
34-
runs-on: ubuntu-latest
35-
steps:
36-
- uses: actions/checkout@v6
37-
- name: Set up Go
38-
uses: actions/setup-go@v6
39-
with:
40-
go-version: '1.25'
41-
42-
- name: install nsis
43-
run: sudo apt-get update; sudo apt-get -y install nsis
44-
45-
- name: Make
46-
run: make build-windows
47-
48-
- uses: actions/upload-artifact@v6
49-
if: ${{ env.ACT }}
50-
with:
51-
name: files
52-
path: albiondata-client.exe
53-
54-
- uses: actions/upload-artifact@v6
55-
if: ${{ env.ACT }}
56-
with:
57-
name: files
58-
path: update-windows-amd64.exe.gz
59-
60-
- uses: actions/upload-artifact@v6
61-
if: ${{ env.ACT }}
62-
with:
63-
name: files
64-
path: albiondata-client-amd64-installer.exe
65-
66-
build-darwin:
67-
name: Build MacOS Client
68-
runs-on: macos-latest
69-
steps:
70-
- uses: actions/checkout@v6
71-
72-
- name: Set up Go
73-
uses: actions/setup-go@v6
74-
with:
75-
go-version: '1.25'
76-
77-
- name: Build
78-
run: CGO_ENABLED=1 GOARCH=amd64 CC="clang -arch x86_64" CGO_LDFLAGS="-arch x86_64" go build -ldflags "-s -w -X main.version=$GITHUB_REF_NAME" albiondata-client.go
79-
80-
- name: ls
81-
run: ls -la
82-
83-
- name: gzip
84-
run: gzip -k9 albiondata-client
85-
86-
- name: mv
87-
run: mv albiondata-client.gz update-darwin-amd64.gz
88-
89-
- name: package
90-
run: |
91-
TEMP="albiondata-client"
92-
ZIPNAME="albiondata-client-amd64-mac.zip"
93-
rm -rfv ./scripts/$TEMP
94-
rm -rfv ./$ZIPNAME
95-
rm -rfv ./scripts/update-darwin-amd64.zip
96-
mkdir -v ./scripts/$TEMP
97-
cp -v albiondata-client ./scripts/$TEMP/albiondata-client-executable
98-
cd scripts
99-
cp -v run.command ./$TEMP/run.command
100-
# chown -Rv ${USER}:${USER} ./$TEMP
101-
chmod -v 777 ./$TEMP/*
102-
zip -v ../$ZIPNAME -r ./"$TEMP"
103-
104-
- name: ls
105-
run: ls -la
8+
build:
9+
uses: ./.github/workflows/build.yml

.gitignore

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
.idea/
22
_vendor-[0-9]*
3+
vendor/
34
.vscode/
5+
.claude/
6+
.stfolder/
7+
.superpowers/
48
*.exe
59
*.gz
610
*.zip
@@ -12,10 +16,11 @@ config.yaml
1216
.secrets
1317
.DS_Store
1418
act.sh
15-
albiondata-client*
19+
/albiondata-client*
1620
buildall.sh
1721
run.sh
1822
*.log
1923
*.log.*
20-
21-
24+
*.syso
25+
*.tmp
26+
.worktrees/

Dockerfile

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)