Skip to content

Commit

Permalink
[Windows] Add windows CI
Browse files Browse the repository at this point in the history
This PR add running continues integration build of nntrainer on Windows
Tests are turn off for now since two test cases failed on Windows

**Self-evaluation:**
1. Build test: [X]Passed [ ]Failed [ ]Skipped
2. Run test:   [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Grzegorz Kisala <[email protected]>
  • Loading branch information
gkisalapl committed Mar 6, 2025
1 parent 6da3c1f commit 695168e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Windows Meson build & test

on:
pull_request:
branches: [ main ]

jobs:
build:
runs-on: windows-2022
name: Windows Meson build & test
steps:
- name: Check out
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: -${{ github.event.pull_request.commits }}
- name: Install submodules
run: git submodule sync && git submodule update --init --recursive
- name: Install Python Dependencies
run: pip install meson ninja
- name: Prepare MSVC
uses: bus1/cabuild/action/msdevshell@v1
with:
architecture: x64
- name: Prepare Build
run: meson setup --native-file windows-native.ini builddir
- name: Run Build
run: meson compile -C builddir
# - name: Run Test Suite
# run: meson test -C builddir
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ if get_option('enable-blas')
blas_options.add_cmake_defines({'BUILD_BENCHMARKS': false})
blas_options.add_cmake_defines({'BUILD_SHARED_LIBS': false})
blas_options.add_cmake_defines({'BUILD_WITHOUT_LAPACK': true})
blas_options.add_cmake_defines({'NOFORTRAN': true})
blas_subproject = cmake.subproject('openblas', options: blas_options, required: true)
blas_dep = blas_subproject.dependency('openblas_static')
endif
Expand Down

0 comments on commit 695168e

Please sign in to comment.