name: 'Setup and build' description: 'Setup and build Session Desktop' runs: using: 'composite' steps: - name: Install node uses: actions/setup-node@v3 with: node-version-file: '.nvmrc' - name: Cache Desktop node_modules id: cache-desktop-modules uses: actions/cache@v3 if: runner.os != 'Windows' with: path: node_modules key: ${{ runner.os }}-${{ hashFiles('package.json', 'yarn.lock', 'patches/**') }} # Not having this will break the windows build because the PATH won't be set by msbuild. - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v1.3.1 if: runner.os == 'Windows' - name: Setup node for windows if: runner.os == 'Windows' shell: bash run: | yarn global add node-gyp@latest - name: Install dependencies shell: bash if: steps.cache-desktop-modules.outputs.cache-hit != 'true' run: yarn install --frozen-lockfile --network-timeout 600000 - name: Generate and concat files shell: bash run: yarn build-everything