Skip to content

Commit

Permalink
update if condition for dependency install
Browse files Browse the repository at this point in the history
  • Loading branch information
mpwsh committed Oct 3, 2023
1 parent d651e3d commit 7d30c26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: echo "OS is ${{ matrix.os }}"

- name: Install dependencies
if: ${{ matrix.os }} == 'ubuntu-latest'
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update -y && \
sudo apt-get install -y --no-install-recommends \
Expand All @@ -55,18 +55,18 @@ jobs:
pkg-config
- name: Install dependencies
if: ${{ matrix.os == 'macos-latest' || matrix.os == 'macos-latest-xlarge' }}
if: startsWith(matrix.os, 'macOS')
run: |
brew install cmake gcc [email protected] pkg-config protobuf
- name: Install dependencies windows
if: ${{ matrix.os }} == 'windows-latest'
if: startsWith(matrix.os, 'windows')
run: |
choco install cmake mingw openssl pkgconfiglite protoc
- name: Get protoc from github releases
if: ${{ matrix.os }} == 'ubuntu-latest'
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo ./ci/get-protoc.sh
Expand Down

0 comments on commit 7d30c26

Please sign in to comment.