Skip to content

Commit 3c1a8ce

Browse files
gnoackcopybara-github
authored andcommitted
github workflows: Use go build instead of build.sh
PiperOrigin-RevId: 611474087
1 parent a1a94d2 commit 3c1a8ce

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
echo "git status is clean; generated protos are consistent"
6060
- name: Build
6161
run: |
62-
fleetspeak/build.sh
62+
CGO_ENABLED=0 go build ./cmd/...
6363
- name: Test
6464
run: |
6565
fleetspeak/test.sh
@@ -199,8 +199,7 @@ jobs:
199199
pip install -e ./frr_python
200200
- name: Build Go
201201
run: |
202-
cd fleetspeak
203-
./build.sh
202+
CGO_ENABLED=0 go build ./cmd/...
204203
- uses: ankane/setup-mysql@v1
205204
with:
206205
database: ${{ env.MYSQL_TEST_E2E_DB }}

fleetspeak/test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ go build -o ./src/client/daemonservice/testclient/testclient{,.go}
6060
go build -o ./src/client/socketservice/testclient/testclient{,.go}
6161
go build -o ./src/server/grpcservice/client/testing/tester{,.go}
6262
cd ..
63+
# Required for src/e2etesting/localtesting.
6364
go build -o ./cmd/fleetspeak_config/fleetspeak_config{,.go}
65+
go build -o ./cmd/fleetspeak_client/fleetspeak_client{,.go}
66+
go build -o ./cmd/fleetspeak_server/fleetspeak_server{,.go}
6467
cd -
6568

6669
pretty_echo 'Executing Go tests.'

0 commit comments

Comments
 (0)