Skip to content

Commit 4f77144

Browse files
committed
chore: install tools
1 parent a143a7a commit 4f77144

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/update_librarian_googleapis.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,36 @@ jobs:
7979
else
8080
echo "has_changes=true" >> $GITHUB_OUTPUT
8181
fi
82+
- name: Install protoc
83+
run: |
84+
set -e
85+
VERSION="33.2"
86+
curl -fsSL --retry 5 --retry-delay 15 -o /tmp/protoc.zip "https://github.com/protocolbuffers/protobuf/releases/download/v$VERSION/protoc-$VERSION-linux-x86_64.zip"
87+
cd /usr/local
88+
sudo unzip -o /tmp/protoc.zip
89+
protoc --version
90+
- uses: actions/setup-java@v4
91+
with:
92+
java-version: "17"
93+
distribution: "temurin"
94+
cache: "maven"
95+
- name: Verify Java and Maven installation
96+
run: |
97+
java -version
98+
if ! command -v mvn &> /dev/null; then
99+
sudo apt-get update && sudo apt-get install -y maven
100+
fi
101+
mvn -version
102+
- uses: actions/setup-python@v5
103+
with:
104+
python-version: "3.12"
105+
cache: 'pip'
106+
- name: Run librarian install
107+
run: |
108+
go run github.com/googleapis/librarian/cmd/librarian@latest install
109+
echo "$HOME/java_tools/bin" >> $GITHUB_PATH
110+
env:
111+
PYTHONPATH: ${{ github.workspace }}/sdk-platform-java/hermetic_build/library_generation/owlbot
82112
- name: Generate Libraries
83113
if: steps.detect_librarian.outputs.has_changes == 'true'
84114
id: generate

0 commit comments

Comments
 (0)