CI: Remove pycache from artifacts (#858)
* CI: Remove pycache from artifacts * CI: Move bundle scripts step even higher
This commit is contained in:
		
							
								
								
									
										22
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										22
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							| @@ -73,6 +73,11 @@ jobs: | |||||||
|           echo "::set-output name=short-hash::${SHA}" |           echo "::set-output name=short-hash::${SHA}" | ||||||
|           echo "::set-output name=default-target::${DEFAULT_TARGET}" |           echo "::set-output name=default-target::${DEFAULT_TARGET}" | ||||||
|  |  | ||||||
|  |       - name: 'Bundle scripts' | ||||||
|  |         if: ${{ !github.event.pull_request.head.repo.fork }} | ||||||
|  |         run: | | ||||||
|  |           tar czpf artifacts/flipper-z-any-scripts-${{steps.names.outputs.suffix}}.tgz scripts | ||||||
|  |  | ||||||
|       - name: 'Build the firmware in docker' |       - name: 'Build the firmware in docker' | ||||||
|         uses: ./.github/actions/docker |         uses: ./.github/actions/docker | ||||||
|         with: |         with: | ||||||
| @@ -92,6 +97,12 @@ jobs: | |||||||
|               mv dist/${TARGET}/* artifacts/ |               mv dist/${TARGET}/* artifacts/ | ||||||
|             done |             done | ||||||
|  |  | ||||||
|  |       - name: 'Bundle resources' | ||||||
|  |         if: ${{ !github.event.pull_request.head.repo.fork }} | ||||||
|  |         run: | | ||||||
|  |           ./scripts/assets.py manifest assets/resources | ||||||
|  |           tar czpf artifacts/flipper-z-any-resources-${{steps.names.outputs.suffix}}.tgz -C assets resources | ||||||
|  |  | ||||||
|       - name: 'Bundle core2 firmware' |       - name: 'Bundle core2 firmware' | ||||||
|         if: ${{ !github.event.pull_request.head.repo.fork }} |         if: ${{ !github.event.pull_request.head.repo.fork }} | ||||||
|         run: | |         run: | | ||||||
| @@ -100,17 +111,6 @@ jobs: | |||||||
|           ./scripts/assets.py copro lib/STM32CubeWB core2_firmware STM32WB5x |           ./scripts/assets.py copro lib/STM32CubeWB core2_firmware STM32WB5x | ||||||
|           tar czpf artifacts/flipper-z-any-core2_firmware-${{steps.names.outputs.suffix}}.tgz core2_firmware |           tar czpf artifacts/flipper-z-any-core2_firmware-${{steps.names.outputs.suffix}}.tgz core2_firmware | ||||||
|  |  | ||||||
|       - name: 'Bundle scripts' |  | ||||||
|         if: ${{ !github.event.pull_request.head.repo.fork }} |  | ||||||
|         run: | |  | ||||||
|           tar czpf artifacts/flipper-z-any-scripts-${{steps.names.outputs.suffix}}.tgz scripts |  | ||||||
|  |  | ||||||
|       - name: 'Bundle resources' |  | ||||||
|         if: ${{ !github.event.pull_request.head.repo.fork }} |  | ||||||
|         run: | |  | ||||||
|           ./scripts/assets.py manifest assets/resources |  | ||||||
|           tar czpf artifacts/flipper-z-any-resources-${{steps.names.outputs.suffix}}.tgz -C assets resources |  | ||||||
|  |  | ||||||
|       - name: 'Upload artifacts to update server' |       - name: 'Upload artifacts to update server' | ||||||
|         if: ${{ !github.event.pull_request.head.repo.fork }} |         if: ${{ !github.event.pull_request.head.repo.fork }} | ||||||
|         uses: burnett01/rsync-deployments@5.1 |         uses: burnett01/rsync-deployments@5.1 | ||||||
|   | |||||||
| @@ -35,7 +35,7 @@ class Main(App): | |||||||
|     def generate(self): |     def generate(self): | ||||||
|         meta = {} |         meta = {} | ||||||
|         for k, v in vars(self.args).items(): |         for k, v in vars(self.args).items(): | ||||||
|             if k == "project" or k == "func": |             if k in ["project", "func", "debug"]: | ||||||
|                 continue |                 continue | ||||||
|             if isinstance(v, str): |             if isinstance(v, str): | ||||||
|                 v = v.strip('"') |                 v = v.strip('"') | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user