Skip to content

Commit 7c161b7

Browse files
committed
change build action
Signed-off-by: Fedor Partanskiy <[email protected]>
1 parent 7a86629 commit 7c161b7

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: Build
22

33
on:
4+
push:
5+
branches: [ "**" ]
46
pull_request:
7+
branches: [ "**" ]
8+
workflow_dispatch:
59

610
jobs:
7-
811
build:
912
runs-on: ubuntu-latest
1013
steps:
@@ -14,7 +17,7 @@ jobs:
1417
- name: Install Go
1518
uses: actions/setup-go@v5
1619
with:
17-
go-version: 1.22.4
20+
go-version: 1.24.1
1821

1922
- name: Prepare Env
2023
run: bash scripts/prepare_environ.sh

scripts/build_checks.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,20 @@ err() {
1010

1111
echo -e "\nTesting commit: ------${ANSI_GREEN}" $(git log -1 --no-merges | head -$(( $(git log -1 --no-merges | wc -l) - 2 )) | tail -1) "${ANSI_RESET}------\n"
1212

13-
go get -u golang.org/x/tools/cmd/goimports
14-
go get -u google.golang.org/protobuf/cmd/protoc-gen-go
15-
13+
go install golang.org/x/tools/cmd/goimports@latest
14+
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
1615

1716
BUILDDIR=.build
1817
if [ ! -d "$BUILDDIR" ]; then
1918
mkdir $BUILDDIR
2019
fi
2120
cd $BUILDDIR
2221

23-
PROTOC_ZIP=protoc-3.8.0-linux-x86_64.zip
22+
PROTOC_ZIP=protoc-30.1-linux-x86_64.zip
2423
if [ ! -f "$PROTOC_ZIP" ]; then
2524
echo "$PROTOC_ZIP does not exist"
26-
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.12.3/protoc-3.12.3-linux-x86_64.zip
27-
unzip protoc-3.12.3-linux-x86_64.zip
25+
wget https://github.com/protocolbuffers/protobuf/releases/download/v30.1/protoc-30.1-linux-x86_64.zip
26+
unzip protoc-30.1-linux-x86_64.zip
2827
fi
2928

3029
export PATH=$PATH:$BUILDDIR/bin/

0 commit comments

Comments
 (0)