Skip to content

Commit d9a4bca

Browse files
committed
snapshot
1 parent 2bfd6ca commit d9a4bca

File tree

11 files changed

+7
-10
lines changed

11 files changed

+7
-10
lines changed

.github/workflows/build-toolbox.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Setup Go
2828
uses: actions/setup-go@v5
2929
with:
30-
go-version-file: app/go.mod
30+
go-version-file: go.mod
3131
check-latest: true
3232
cache: true
3333

@@ -38,21 +38,21 @@ jobs:
3838
shell: bash
3939
run: |
4040
set -euo pipefail
41-
cd app/toolbox
41+
cd toolbox
4242
go build -o toolbox-builder
4343
4444
- name: Build toolbox archive
4545
shell: bash
4646
run: |
4747
set -euo pipefail
48-
cd app/toolbox
48+
cd toolbox
4949
./toolbox-builder -yaml ../playbooks/60-second-linux.yaml -out toolbox-${{ matrix.arch_tag }}.tar.xz
5050
5151
- name: Upload artifact
5252
uses: actions/upload-artifact@v4
5353
with:
5454
name: toolbox-${{ matrix.arch_tag }}
55-
path: app/toolbox/toolbox-${{ matrix.arch_tag }}.tar.xz
55+
path: toolbox/toolbox-${{ matrix.arch_tag }}.tar.xz
5656
if-no-files-found: error
5757
retention-days: 7
5858

.github/workflows/build.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,19 @@ jobs:
3131
- name: Set up Go
3232
uses: actions/setup-go@v5
3333
with:
34-
go-version-file: app/go.mod
34+
go-version-file: go.mod
3535
check-latest: true
3636
cache: true
3737

3838
- name: Show environment
39-
working-directory: app
4039
run: |
4140
go version
4241
go env GOOS GOARCH
4342
4443
- name: Build
45-
working-directory: app
4644
run: |
47-
mkdir -p ../dist
48-
GOFLAGS="-trimpath" go build -ldflags="-s -w" -o ../dist/gradient-engineer ./app
45+
mkdir -p dist
46+
GOFLAGS="-trimpath" go build -ldflags="-s -w" -o dist/gradient-engineer ./app
4947
5048
- name: Upload binary artifact
5149
uses: actions/upload-artifact@v4

app/app/main.go renamed to app/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
func main() {
1010
// Create a new toolbox instance
1111
toolbox := NewToolbox("https://gradient.engineer/toolbox_v0.tar.xz")
12-
1312
defer toolbox.Cleanup()
1413

1514
// Create and run the Bubble Tea program which will handle toolbox download and diagnostics
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

app/go.mod renamed to go.mod

File renamed without changes.

app/go.sum renamed to go.sum

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)