Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions .github/workflows/ci-go-cover.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,27 @@ jobs:
run: |
go install golang.org/x/tools/cmd/guru@latest
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
run: |
# Install protoc with ARM64 support
PROTOC_VERSION="25.1"
ARCH=$(uname -m)
if [[ "$ARCH" == "x86_64" ]]; then
PROTOC_ARCH="x86_64"
elif [[ "$ARCH" == "aarch64" || "$ARCH" == "arm64" ]]; then
PROTOC_ARCH="aarch_64"
else
echo "Unsupported architecture: $ARCH"
exit 1
fi

PROTOC_ZIP="protoc-${PROTOC_VERSION}-linux-${PROTOC_ARCH}.zip"
curl -OL "https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/${PROTOC_ZIP}"
sudo unzip -o "$PROTOC_ZIP" -d /usr/local bin/protoc
sudo unzip -o "$PROTOC_ZIP" -d /usr/local 'include/*'
rm -f "$PROTOC_ZIP"

# Verify installation
protoc --version
- name: protoc-gen deps
run: |
go install google.golang.org/protobuf/cmd/[email protected]
Expand Down
25 changes: 21 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,27 @@ jobs:
run: |
go install golang.org/x/tools/cmd/guru@latest
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
run: |
# Install protoc with ARM64 support
PROTOC_VERSION="25.1"
ARCH=$(uname -m)
if [[ "$ARCH" == "x86_64" ]]; then
PROTOC_ARCH="x86_64"
elif [[ "$ARCH" == "aarch64" || "$ARCH" == "arm64" ]]; then
PROTOC_ARCH="aarch_64"
else
echo "Unsupported architecture: $ARCH"
exit 1
fi

PROTOC_ZIP="protoc-${PROTOC_VERSION}-linux-${PROTOC_ARCH}.zip"
curl -OL "https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/${PROTOC_ZIP}"
sudo unzip -o "$PROTOC_ZIP" -d /usr/local bin/protoc
sudo unzip -o "$PROTOC_ZIP" -d /usr/local 'include/*'
rm -f "$PROTOC_ZIP"

# Verify installation
protoc --version
- name: protoc-gen deps
run: |
go install google.golang.org/protobuf/cmd/[email protected]
Expand Down
25 changes: 21 additions & 4 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,27 @@ jobs:
run: |
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
run: |
# Install protoc with ARM64 support
PROTOC_VERSION="25.1"
ARCH=$(uname -m)
if [[ "$ARCH" == "x86_64" ]]; then
PROTOC_ARCH="x86_64"
elif [[ "$ARCH" == "aarch64" || "$ARCH" == "arm64" ]]; then
PROTOC_ARCH="aarch_64"
else
echo "Unsupported architecture: $ARCH"
exit 1
fi

PROTOC_ZIP="protoc-${PROTOC_VERSION}-linux-${PROTOC_ARCH}.zip"
curl -OL "https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/${PROTOC_ZIP}"
sudo unzip -o "$PROTOC_ZIP" -d /usr/local bin/protoc
sudo unzip -o "$PROTOC_ZIP" -d /usr/local 'include/*'
rm -f "$PROTOC_ZIP"

# Verify installation
protoc --version
- name: protoc-gen deps
run: |
go install google.golang.org/protobuf/cmd/[email protected]
Expand Down
25 changes: 21 additions & 4 deletions .github/workflows/time-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,27 @@ jobs:
run: |
go install golang.org/x/tools/cmd/guru@latest
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
run: |
# Install protoc with ARM64 support
PROTOC_VERSION="25.1"
ARCH=$(uname -m)
if [[ "$ARCH" == "x86_64" ]]; then
PROTOC_ARCH="x86_64"
elif [[ "$ARCH" == "aarch64" || "$ARCH" == "arm64" ]]; then
PROTOC_ARCH="aarch_64"
else
echo "Unsupported architecture: $ARCH"
exit 1
fi

PROTOC_ZIP="protoc-${PROTOC_VERSION}-linux-${PROTOC_ARCH}.zip"
curl -OL "https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/${PROTOC_ZIP}"
sudo unzip -o "$PROTOC_ZIP" -d /usr/local bin/protoc
sudo unzip -o "$PROTOC_ZIP" -d /usr/local 'include/*'
rm -f "$PROTOC_ZIP"

# Verify installation
protoc --version
- name: protoc-gen deps
run: |
go install google.golang.org/protobuf/cmd/[email protected]
Expand Down