Skip to content

Commit

Permalink
Add cmake build job.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdav committed Mar 26, 2024
1 parent 8c2730b commit 84d7634
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ on:
- main

jobs:
build:
build-spm:
name: Build & Test (SPM)
runs-on: windows-2022
timeout-minutes: 20

steps:
- uses: actions/checkout@v3
- name: Checkout Swift-WebBrowser
uses: actions/[email protected]

- name: Setup Visual Studio Development Environment
uses: compnerd/gha-setup-vsdevenv@main
Expand All @@ -29,3 +31,27 @@ jobs:

- name: Test
run: swift test --verbose --skip-build

build-cmake:
name: Build (CMake)
runs-on: windows-2022
timeout-minutes: 20

steps:
- name: Checkout Swift-WebBrowser
uses: actions/[email protected]

- name: Setup Visual Studio Development Environment
uses: compnerd/gha-setup-vsdevenv@main

- name: Install Swift
uses: compnerd/gha-setup-swift@main
with:
branch: swift-5.8-release
tag: 5.8-RELEASE

- name: CMake Configure
run: cmake -S . -B build -G Ninja

- name: CMake Build
run: cmake --build .\build

0 comments on commit 84d7634

Please sign in to comment.