Skip to content

Commit

Permalink
install dep in action
Browse files Browse the repository at this point in the history
  • Loading branch information
MXWXZ committed Aug 30, 2024
1 parent 5ed78df commit 52de06c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/plugin_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,15 @@ jobs:
- uses: actions/checkout@v4
- name: Cache cargo & target directories
uses: Swatinem/rust-cache@v2
- name: Install Protoc
id: protoc-install
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Set protoc env
- name: Install dependencies
shell: bash
run: |
if [[ "${{ matrix.platform.os }}" == "windows-latest" ]]; then
echo "PROTOC=${{ steps.protoc-install.outputs.path }}/protoc.exe" >> "$GITHUB_ENV"
choco install protoc
elif [[ "${{ matrix.platform.os }}" == "ubuntu-latest" ]]; then
sudo apt install -y protobuf-compiler
else
echo "PROTOC=${{ steps.protoc-install.outputs.path }}/protoc" >> "$GITHUB_ENV"
brew install protobuf
fi
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,15 @@ jobs:
- uses: actions/checkout@v4
- name: Cache cargo & target directories
uses: Swatinem/rust-cache@v2
- name: Install Protoc
id: protoc-install
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Set protoc env
- name: Install dependencies
shell: bash
run: |
if [[ "${{ matrix.platform.os }}" == "windows-latest" ]]; then
echo "PROTOC=${{ steps.protoc-install.outputs.path }}/protoc.exe" >> "$GITHUB_ENV"
choco install protoc
elif [[ "${{ matrix.platform.os }}" == "ubuntu-latest" ]]; then
sudo apt install -y protobuf-compiler
else
echo "PROTOC=${{ steps.protoc-install.outputs.path }}/protoc" >> "$GITHUB_ENV"
brew install protobuf
fi
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
Expand Down

0 comments on commit 52de06c

Please sign in to comment.