From 1ad180cba01a16563fc70cf6c895619668010f0e Mon Sep 17 00:00:00 2001 From: Marlene Cota <1422161+marlenecota@users.noreply.github.com> Date: Wed, 3 Jul 2024 01:02:59 -0700 Subject: [PATCH] feat: add Example Windows build workflow (#2322) PR adding build workflow for windows. --- .github/workflows/windows-build-test.yml | 46 ++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/windows-build-test.yml diff --git a/.github/workflows/windows-build-test.yml b/.github/workflows/windows-build-test.yml new file mode 100644 index 00000000..32614535 --- /dev/null +++ b/.github/workflows/windows-build-test.yml @@ -0,0 +1,46 @@ +name: Test Windows build +on: + pull_request: + paths: + - '.github/workflows/windows-build-test.yml' + - 'windows/**' + - 'src/fabric/**' + - 'package.json' + - 'Example/windows/**' + - 'Example/package.json' + push: + branches: + - main + +jobs: + build: + runs-on: windows-2022 + strategy: + matrix: + working-directory: [Example] + concurrency: + group: windows-${{ matrix.working-directory }}-${{ github.ref }} + cancel-in-progress: true + + steps: + - name: Check out Git repository + 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 svg node_modules + run: yarn install --frozen-lockfile + + - name: Install app node_modules + working-directory: ${{ matrix.working-directory }} + run: yarn --frozen-lockfile + + - name: Build app + working-directory: ${{ matrix.working-directory }}/windows + run: npx react-native run-windows --logging --no-packager --no-deploy \ No newline at end of file