Skip to content

Commit

Permalink
macOS with vcpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
ohhmm committed Sep 24, 2024
1 parent 9bd9d84 commit de7d9ca
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/vcpkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
Expand All @@ -21,7 +24,8 @@ jobs:
restore-keys: |
${{ runner.os }}-vcpkg-
- name: Install dependencies
- name: Install dependencies (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake ninja-build autoconf automake autoconf-archive
Expand All @@ -30,6 +34,15 @@ jobs:
gcc --version
g++ --version
- name: Install dependencies (macOS)
if: runner.os == 'macOS'
run: |
brew update
brew install cmake ninja
cmake --version
ninja --version
clang --version
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11
with:
Expand Down

0 comments on commit de7d9ca

Please sign in to comment.