Skip to content

Commit

Permalink
ci: Fix protoc extraction target
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Sep 22, 2022
1 parent acfd3b5 commit 8bf21b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
extension: .exe
setup: |
Invoke-WebRequest -OutFile protoc.zip -Uri https://github.com/protocolbuffers/protobuf/releases/download/v3.20.2/protoc-3.20.2-win64.zip
Expand-Archive protoc.zip -DestinationPath ./tools
Expand-Archive protoc.zip -DestinationPath ../tools
Add-Content -Path $env:GITHUB_PATH -Value "$((get-item ./).parent.fullname)/tools/bin"
# Linux builds
- arch: amd64
Expand All @@ -62,7 +62,7 @@ jobs:
strip: strip --strip-debug
setup: |
Invoke-WebRequest -OutFile /tmp/protoc.zip -Uri https://github.com/protocolbuffers/protobuf/releases/download/v3.20.2/protoc-3.20.2-linux-x86_64.zip
Expand-Archive /tmp/protoc.zip -DestinationPath ./tools
Expand-Archive /tmp/protoc.zip -DestinationPath ../tools
Add-Content -Path $env:GITHUB_PATH -Value "$((get-item ./).parent.fullname)/tools/bin"
# - arch: "386"
# os: linux
Expand All @@ -85,7 +85,7 @@ jobs:
sudo ln -s /usr/aarch64-linux-gnu/lib/libgcc_s.so.1 /usr/aarch64-linux-gnu/lib/libgcc_s.so
Invoke-WebRequest -OutFile /tmp/protoc.zip -Uri https://github.com/protocolbuffers/protobuf/releases/download/v3.20.2/protoc-3.20.2-linux-aarch_64.zip
Expand-Archive /tmp/protoc.zip -DestinationPath ./tools
Expand-Archive /tmp/protoc.zip -DestinationPath ../tools
Add-Content -Path $env:GITHUB_PATH -Value "$((get-item ./).parent.fullname)/tools/bin"
strip: aarch64-linux-gnu-strip --strip-debug
flags: --no-default-features
Expand All @@ -97,15 +97,15 @@ jobs:
target: x86_64-apple-darwin
setup: |
Invoke-WebRequest -OutFile /tmp/protoc.zip -Uri https://github.com/protocolbuffers/protobuf/releases/download/v3.20.2/protoc-3.20.2-osx-x86_64.zip
Expand-Archive /tmp/protoc.zip -DestinationPath ./tools
Expand-Archive /tmp/protoc.zip -DestinationPath ../tools
Add-Content -Path $env:GITHUB_PATH -Value "$((get-item ./).parent.fullname)/tools/bin"
- arch: arm64
run_on: macos-latest
os: darwin
target: aarch64-apple-darwin
setup: |
Invoke-WebRequest -OutFile /tmp/protoc.zip -Uri https://github.com/protocolbuffers/protobuf/releases/download/v3.20.2/protoc-3.20.2-osx-aarch_64.zip
Expand-Archive /tmp/protoc.zip -DestinationPath ./tools
Expand-Archive /tmp/protoc.zip -DestinationPath ../tools
Add-Content -Path $env:GITHUB_PATH -Value "$((get-item ./).parent.fullname)/tools/bin"
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: install protoc
run: |
Invoke-WebRequest -OutFile /tmp/protoc.zip -Uri https://github.com/protocolbuffers/protobuf/releases/download/v3.20.2/protoc-3.20.2-linux-x86_64.zip
Expand-Archive /tmp/protoc.zip -DestinationPath ./tools
Expand-Archive /tmp/protoc.zip -DestinationPath ../tools
Add-Content -Path $env:GITHUB_PATH -Value "$((get-item ./).parent.fullname)/tools/bin"
Get-Content $env:GITHUB_PATH
shell: pwsh
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
- name: install protoc
run: |
Invoke-WebRequest -OutFile protoc.zip -Uri https://github.com/protocolbuffers/protobuf/releases/download/v3.20.2/protoc-3.20.2-win64.zip
Expand-Archive protoc.zip -DestinationPath ./tools
Expand-Archive protoc.zip -DestinationPath ../tools
Add-Content -Path $env:GITHUB_PATH -Value "$((get-item ./).parent.fullname)/tools/bin"
Get-Content $env:GITHUB_PATH
shell: pwsh
Expand Down

0 comments on commit 8bf21b4

Please sign in to comment.