mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	[gha] simplify LXD handling
This commit is contained in:
		
							parent
							
								
									345959177f
								
							
						
					
					
						commit
						6dccfc75dc
					
				
					 1 changed files with 3 additions and 7 deletions
				
			
		
							
								
								
									
										10
									
								
								.github/workflows/linux-snap.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								.github/workflows/linux-snap.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -23,10 +23,6 @@ jobs: | ||||||
|     - name: Setup LXD |     - name: Setup LXD | ||||||
|       uses: whywaita/setup-lxd@v1 |       uses: whywaita/setup-lxd@v1 | ||||||
| 
 | 
 | ||||||
|     - name: Add user to LXD group |  | ||||||
|       run: | |  | ||||||
|         sudo adduser ${USER} lxd |  | ||||||
| 
 |  | ||||||
|     - name: Check out code |     - name: Check out code | ||||||
|       uses: actions/checkout@v2 |       uses: actions/checkout@v2 | ||||||
|       with: |       with: | ||||||
|  | @ -38,7 +34,7 @@ jobs: | ||||||
|       run: | |       run: | | ||||||
|         sudo apt-get install ccache |         sudo apt-get install ccache | ||||||
|         ccache --max-size=2G |         ccache --max-size=2G | ||||||
|         sg lxd -c '/snap/bin/lxc profile device add default ccache disk source=${HOME}/.ccache/ path=/root/.ccache' |         /snap/bin/lxc profile device add default ccache disk source=${HOME}/.ccache/ path=/root/.ccache | ||||||
| 
 | 
 | ||||||
|         # Patch snapcraft.yaml to enable ccache |         # Patch snapcraft.yaml to enable ccache | ||||||
|         patch -p1 < .github/workflows/linux-snap.patch |         patch -p1 < .github/workflows/linux-snap.patch | ||||||
|  | @ -58,7 +54,7 @@ jobs: | ||||||
|     - name: Build |     - name: Build | ||||||
|       run: | |       run: | | ||||||
|         # Build the `subsurface` part. |         # Build the `subsurface` part. | ||||||
|         sg lxd -c '/snap/bin/snapcraft build --use-lxd subsurface' |         /snap/bin/snapcraft build --use-lxd subsurface | ||||||
| 
 | 
 | ||||||
|     - name: Clear CCache stats |     - name: Clear CCache stats | ||||||
|       run: ccache --show-stats --zero-stats |       run: ccache --show-stats --zero-stats | ||||||
|  | @ -69,7 +65,7 @@ jobs: | ||||||
|         SNAP_ENFORCE_RESQUASHFS: 0 |         SNAP_ENFORCE_RESQUASHFS: 0 | ||||||
|       run: | |       run: | | ||||||
|         # Actually build the snap. |         # Actually build the snap. | ||||||
|         sg lxd -c '/snap/bin/snapcraft --use-lxd' |         /snap/bin/snapcraft --use-lxd | ||||||
| 
 | 
 | ||||||
|         sudo snap install review-tools |         sudo snap install review-tools | ||||||
|         /snap/bin/review-tools.snap-review *.snap |         /snap/bin/review-tools.snap-review *.snap | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue