You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			43 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
 | 
						|
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'
 | 
						|
 | 
						|
    - uses: actions/setup-python@v4
 | 
						|
      with:
 | 
						|
        python-version: '3.11'
 | 
						|
 | 
						|
    - 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
 |