Skip to content

Commit deccaf3

Browse files
committed
simplified build boilerplate
1 parent 3496528 commit deccaf3

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010

1111
- name: Build
1212
run: |
13-
curl --fail --location --silent --output bob https://function61.com/go/turbobob-latest-linux-amd64 && chmod +x bob
14-
CI_REVISION_ID="$GITHUB_SHA" ./bob build --publish-artefacts
13+
curl --fail --location --silent --output bob https://function61.com/go/turbobob-latest-stable-linux-amd64 && chmod +x bob
14+
./bob build in-ci-autodetect-settings
1515
env:
1616
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1717
EVENTHORIZON: ${{ secrets.EVENTHORIZON }}

bin/build.sh

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

turbobob.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "default",
99
"uses": "docker://fn61/buildkit-golang:20220115_1318_71191646",
1010
"commands": {
11-
"build": ["bin/build.sh"],
11+
"build": ["build-go-project.sh", "--directory=cmd/bob/", "--binary-basename=bob"],
1212
"dev": ["bash"]
1313
},
1414
"mount_destination": "/workspace",

0 commit comments

Comments
 (0)