Skip to content

Commit 28ab24a

Browse files
committed
Support windows build
1 parent a1a2d46 commit 28ab24a

13 files changed

Lines changed: 26 additions & 37 deletions

File tree

.github/actions/compile-library/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ inputs:
99
runs:
1010
using: "composite"
1111
steps:
12+
# Linux Only
1213
- name: Build and test C++ Components (Linux)
1314
if: inputs.os == 'Linux'
1415
shell: bash
1516
run: |
1617
CXX=$(which g++-14) ./scripts/build.sh
1718
19+
# Windows Only
1820
- name: Build and test C++ Components (Windows)
1921
if: inputs.os == 'Windows'
2022
shell: pwsh

.github/actions/harden-check/action.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/actions/publish-pypi/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ inputs:
99
runs:
1010
using: "composite"
1111
steps:
12+
# Linux Only
1213
- name: Install Python Packages
1314
if: inputs.os == 'Linux'
1415
shell: bash

.github/actions/run-test/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ runs:
1111
steps:
1212
# TODO: build wheel first, then run the test
1313
- name: Run Unittests And Examples
14+
if: runner.os == 'Linux'
1415
shell: bash
1516
run: |
1617
python -m unittest discover -v tests
18+
1719
uv pip install --system -r examples/applications/requirements_applications.txt
1820
for example in "./examples"/*.py; do
1921
echo "Running $example"

.github/actions/setup-env/action.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,32 +30,33 @@ runs:
3030
uv pip install --system --upgrade pip
3131
3232
- name: Cache Library Install
33-
if: inputs.os == 'Linux'
3433
id: cache-library
3534
uses: actions/cache@v4
3635
with:
3736
path: |
3837
capnproto-*
3938
key: ${{ inputs.os }}-${{ hashFiles('scripts/download_install_libraries.*') }}
4039

40+
# Linux Only
4141
- name: Download/Compile Libraries (Linux)
4242
shell: bash
4343
if: (inputs.os == 'Linux') && (steps.cache-library.outputs.cache-hit != 'true')
4444
run: |
4545
sudo ./scripts/download_install_libraries.sh capnp compile
4646
47-
- name: Download/Compile Libraries (Windows)
48-
shell: pwsh
49-
if: (inputs.os == 'Windows') && (steps.cache-boost-windows.outputs.cache-hit != 'true')
50-
run: |
51-
./scripts/download_install_libraries.ps1 capnp compile
52-
5347
- name: Install Libraries (Linux)
5448
shell: bash
5549
if: inputs.os == 'Linux'
5650
run: |
5751
sudo ./scripts/download_install_libraries.sh capnp install
5852
53+
# Windows Only
54+
- name: Download/Compile Libraries (Windows)
55+
shell: pwsh
56+
if: (inputs.os == 'Windows') && (steps.cache-boost-windows.outputs.cache-hit != 'true')
57+
run: |
58+
./scripts/download_install_libraries.ps1 capnp compile
59+
5960
- name: Install Libraries (Windows)
6061
shell: pwsh
6162
if: inputs.os == 'Windows'

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ jobs:
1515
runs-on: ${{ matrix.os }}
1616
strategy:
1717
matrix:
18-
os: [ ubuntu-latest ] # , windows-latest ] , macos-latest ]
18+
os: [ ubuntu-latest, windows-latest ] #, macos-latest ]
1919

2020
steps:
2121
- name: Harden the runner (Audit all outbound calls)
2222
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
2323
with:
2424
egress-policy: audit
2525

26-
- name: 'Checkout Repository'
26+
- name: Checkout Repository
2727
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2828

2929
- uses: ./.github/actions/setup-env

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
with:
1515
egress-policy: audit
1616

17-
- name: 'Checkout Repository'
17+
- name: Checkout Repository
1818
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1919

2020
- name: Dependency Review

.github/workflows/publish-artifact.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@ jobs:
1818
permissions:
1919
id-token: write
2020
steps:
21-
# - uses: ./.github/actions/checkout
2221
- name: Harden the runner (Audit all outbound calls)
2322
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
2423
with:
2524
egress-policy: audit
2625

27-
- name: 'Checkout Repository'
26+
- name: Checkout Repository
2827
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2928

3029
- uses: ./.github/actions/setup-env

.github/workflows/publish-documentation.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@ jobs:
1414
deploy:
1515
runs-on: ubuntu-latest
1616
steps:
17-
# - uses: ./.github/actions/checkout
1817
- name: Harden the runner (Audit all outbound calls)
1918
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
2019
with:
2120
egress-policy: audit
2221

23-
- name: 'Checkout Repository'
22+
- name: Checkout Repository
2423
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2524

2625
- uses: ./.github/actions/setup-env

.github/workflows/scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ jobs:
3232
with:
3333
egress-policy: audit
3434

35-
- name: "Checkout code"
35+
- name: Checkout Repository
3636
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3737
with:
3838
persist-credentials: false
3939

40-
- name: "Run analysis"
40+
- name: Run analysis
4141
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
4242
with:
4343
results_file: results.sarif

0 commit comments

Comments
 (0)