-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (38 loc) · 1.18 KB
/
gb.yaml
File metadata and controls
49 lines (38 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: gb
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
paths: [core/gb/**]
jobs:
build-and-test:
runs-on: windows-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Install Ninja
uses: seanmiddleditch/gha-setup-ninja@v6
- name: Set up OSS CAD Suite
uses: YosysHQ/setup-oss-cad-suite@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
version: "2026-02-16"
- name: Install vcpkg
shell: pwsh
run: |
git clone https://github.com/microsoft/vcpkg.git ${{github.workspace}}/vcpkg
git -C ${{ github.workspace }}\vcpkg checkout 80d025e8299d442c13b29751fc9451711b7c6c8e
${{github.workspace}}\vcpkg\bootstrap-vcpkg.bat
echo "VCPKG_ROOT=${{github.workspace}}\vcpkg" >> $env:GITHUB_ENV
- name: Configure
run: cmake --preset debug
- name: Build
run: cmake --build --preset debug --target test_gb
- name: Run tests
run: ctest --test-dir build/debug/ -R ^test_gb$ -V