From e69bdba7fd610024c398173fcb2f3b2a3031b19d Mon Sep 17 00:00:00 2001 From: Nye Liu Date: Sun, 27 Oct 2024 00:27:59 -0700 Subject: [PATCH] CI: add windows builder --- .../workflows/{c-cpp.yml => debian-build.yml} | 6 +++--- .github/workflows/windows-build.yml | 20 +++++++++++++++++++ 2 files changed, 23 insertions(+), 3 deletions(-) rename .github/workflows/{c-cpp.yml => debian-build.yml} (78%) create mode 100644 .github/workflows/windows-build.yml diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/debian-build.yml similarity index 78% rename from .github/workflows/c-cpp.yml rename to .github/workflows/debian-build.yml index 4be18d6..ff31b39 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/debian-build.yml @@ -1,10 +1,10 @@ -name: C/C++ CI +name: Debian Build on: push: -# branches: [ $default-branch ] + branches: [ master ] pull_request: - branches: [ $default-branch ] + branches: [ master ] jobs: build: diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml new file mode 100644 index 0000000..bcc41e1 --- /dev/null +++ b/.github/workflows/windows-build.yml @@ -0,0 +1,20 @@ +name: Windows Build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + - uses: TheMrMilchmann/setup-msvc-dev@v3 + with: + arch: x86 + - name: build + run: nmake