Skip to content

Commit

Permalink
Windows build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mtmk committed May 31, 2024
1 parent 735fd43 commit 3e96375
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/on-pr-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Windows"
on:
pull_request:

defaults:
run:
shell: bash --noprofile --norc -x -eo pipefail {0}

jobs:
default:
name: "DefaultD"
runs-on: windows-latest
steps:
- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- name: Checkout nats.c
uses: actions/checkout@v4

- name: Build
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
run: |
cmake -B build -S .
cmake --build build --config Debug
cd build
./bin/Debug/testsuite
- name: Test
run: |
cd build
./bin/Debug/testsuite

0 comments on commit 3e96375

Please sign in to comment.