| 
														
															@@ -2,8 +2,6 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 name: I2S-4MBFlash 
														 | 
														
														 | 
														
															 name: I2S-4MBFlash 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-# Controls when the action will run. Triggers the workflow on push or pull request 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-# events but only for the master branch 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 on: 
														 | 
														
														 | 
														
															 on: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   push: 
														 | 
														
														 | 
														
															   push: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     branches: [ master-cmake ] 
														 | 
														
														 | 
														
															     branches: [ master-cmake ] 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -14,17 +12,26 @@ jobs: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   build: 
														 | 
														
														 | 
														
															   build: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     runs-on: ubuntu-latest 
														 | 
														
														 | 
														
															     runs-on: ubuntu-latest 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     steps: 
														 | 
														
														 | 
														
															     steps: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    - name: Set target 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      run: echo '::set-output name=TARGET_BUILD_NAME::I2S-4MBFlash' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      id: target-name-generator 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    - name: Get color 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      run: echo "Target is ${{steps.target-name-generator.outputs.TARGET_BUILD_NAME}}" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     - uses: actions/checkout@v2 
														 | 
														
														 | 
														
															     - uses: actions/checkout@v2 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       with: 
														 | 
														
														 | 
														
															       with: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         submodules: true 
														 | 
														
														 | 
														
															         submodules: true 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    - name: Generate build number 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      id: buildnumber 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      uses: einaregilsson/build-number@v2  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      with: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        token: ${{secrets.github_token}}         
														 | 
													
												
											
												
													
														| 
														 | 
														
															     - name: Cache build 
														 | 
														
														 | 
														
															     - name: Cache build 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       id: cache-build 
														 | 
														
														 | 
														
															       id: cache-build 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       uses: actions/cache@v1 
														 | 
														
														 | 
														
															       uses: actions/cache@v1 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       with: 
														 | 
														
														 | 
														
															       with: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         path: ${{github.workspace}}/build 
														 | 
														
														 | 
														
															         path: ${{github.workspace}}/build 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        key: ${{ runner.os }}-I2S-4MBFlash 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        key: ${{ runner.os }}-${{ steps.target-name-generator.outputs.TARGET_BUILD_NAME}} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     - name: Build the firmware 
														 | 
														
														 | 
														
															     - name: Build the firmware 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       run: | 
														 | 
														
														 | 
														
															       run: | 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        docker run --rm -v $PWD:/project -w /project espressif/idf:release-v4.0 /bin/bash -c "python3 -m pip install --upgrade pip setuptools wheel && pip3 install protobuf grpcio-tools && cp build-scripts/I2S-4MFlash-sdkconfig.defaults sdkconfig && idf.py build" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        docker run --rm -v $PWD:/project -w /project espressif/idf:release-v4.0 /bin/bash -c "cp build-scripts/${{ steps.target-name-generator.outputs.TARGET_BUILD_NAME}}-sdkconfig.defaults sdkconfig && export PROJECT_VER=${{ steps.target-name-generator.outputs.TARGET_BUILD_NAME}}-${{ steps.buildnumber.outputs.build_number }} && idf.py build" 
														 |