diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..488ec36 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,31 @@ +name: Windows CI +on: + pull_request: + branches: [ main ] + +jobs: + run-windows-tests: + name: Build & run tests + runs-on: windows-2022 + strategy: + matrix: + configuration: ['debug', 'release'] + platform: ['x86', 'x64'] + + steps: + - name: Checkout Code + uses: actions/checkout@v2 + + - name: Setup Node.js + uses: actions/setup-node@v1 + with: + node-version: '^18' + + - name: Setup MSBuild + uses: microsoft/setup-msbuild@v2 + + - name: Install node modules + run: yarn --frozen-lockfile + + - name: Run Windows ${{ matrix.platform }} ${{ matrix.configuration }} + run: npx react-native run-windows --arch ${{ matrix.platform }} ${{ matrix.configuration == 'release' && '--release' || '' }} --logging --no-packager --no-deploy \ No newline at end of file diff --git a/patches/react-native-svg+15.3.0.patch b/patches/react-native-svg+15.3.0.patch index 48cc60e..116edd1 100644 --- a/patches/react-native-svg+15.3.0.patch +++ b/patches/react-native-svg+15.3.0.patch @@ -1,5 +1,5 @@ diff --git a/node_modules/react-native-svg/windows/RNSVG/RNSVG.vcxproj b/node_modules/react-native-svg/windows/RNSVG/RNSVG.vcxproj -index b682596..4f52dcf 100644 +index b682596..1909e58 100644 --- a/node_modules/react-native-svg/windows/RNSVG/RNSVG.vcxproj +++ b/node_modules/react-native-svg/windows/RNSVG/RNSVG.vcxproj @@ -26,12 +26,10 @@ @@ -16,3 +16,29 @@ index b682596..4f52dcf 100644 10.0.16299.0 +@@ -105,6 +103,7 @@ + $(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories) + + ++ dxguid.lib;windowsapp.lib;%(AdditionalDependenices) + Console + true + RNSVG.def +@@ -114,17 +113,11 @@ + + _DEBUG;%(PreprocessorDefinitions) + +- +- dxguid.lib;WindowsApp.lib;%(AdditionalDependencies) +- + + + + NDEBUG;%(PreprocessorDefinitions) + +- +- dxguid.lib;WindowsApp.lib;%(AdditionalDependencies) +- + + +