|  | @ -5,14 +5,85 @@ on: | 
			
		
	
		
		
			
				
					|  |  |     branches: development* |  |  |     branches: development* | 
			
		
	
		
		
			
				
					|  |  |     paths-ignore: |  |  |     paths-ignore: | 
			
		
	
		
		
			
				
					|  |  |     - '**.md' # Do no build on *.md changes |  |  |     - '**.md' # Do no build on *.md changes | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | jobs: |  |  | jobs: | 
			
		
	
		
		
			
				
					
					|  |  |   build: |  |  |   check: | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |     runs-on: ubuntu-latest |  |  |     runs-on: ubuntu-latest | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     if: github.repository == 'lumapu/ahoy' && github.ref_name == 'development03' | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     continue-on-error: true | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     steps: | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     - uses: actions/checkout@v3 | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |   build-en: | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     needs: check | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     runs-on: ubuntu-latest | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     continue-on-error: true | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     strategy: | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       matrix: | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         variant: | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           - esp8266 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           - esp8266-prometheus | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           - esp8285 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           - esp32-wroom32 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           - esp32-wroom32-prometheus | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           - esp32-wroom32-ethernet | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           - esp32-s2-mini | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           - esp32-c3-mini | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           - opendtufusion | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           - opendtufusion-ethernet | 
			
		
	
		
		
			
				
					|  |  |     steps: |  |  |     steps: | 
			
		
	
		
		
			
				
					|  |  |     - uses: actions/checkout@v3 |  |  |     - uses: actions/checkout@v3 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     - uses: benjlevesque/short-sha@v2.1 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       id: short-sha | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       with: | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         length: 7 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     - name: Cache Pip | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       uses: actions/cache@v3 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       with: | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         path: ~/.cache/pip | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         restore-keys: | | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           ${{ runner.os }}-pip- | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     - name: Cache PlatformIO | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       uses: actions/cache@v3 | 
			
		
	
		
		
			
				
					|  |  |       with: |  |  |       with: | 
			
		
	
		
		
			
				
					
					|  |  |         ref: development03 |  |  |         path: ~/.platformio | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  |         key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     - name: Setup Python | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       uses: actions/setup-python@v4.3.0 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       with: | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         python-version: "3.x" | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     - name: Install PlatformIO | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       run: | | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         python -m pip install setuptools --upgrade pip | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         pip install --upgrade platformio | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     - name: Run PlatformIO | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       run:  pio run -d src -e ${{ matrix.variant }} | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |   build-de: | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     needs: check | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     runs-on: ubuntu-latest | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     continue-on-error: true | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     strategy: | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       matrix: | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         variant: | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           - esp8266-de | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           - esp8266-prometheus-de | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           - esp8285-de | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           - esp32-wroom32-de | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           - esp32-wroom32-prometheus-de | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           - esp32-wroom32-ethernet-de | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           - esp32-s2-mini-de | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           - esp32-c3-mini-de | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           - opendtufusion-de | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           - opendtufusion-ethernet-de | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     steps: | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     - uses: actions/checkout@v3 | 
			
		
	
		
		
			
				
					|  |  |     - uses: benjlevesque/short-sha@v2.1 |  |  |     - uses: benjlevesque/short-sha@v2.1 | 
			
		
	
		
		
			
				
					|  |  |       id: short-sha |  |  |       id: short-sha | 
			
		
	
		
		
			
				
					|  |  |       with: |  |  |       with: | 
			
		
	
	
		
		
			
				
					|  | @ -43,29 +114,12 @@ jobs: | 
			
		
	
		
		
			
				
					|  |  |         pip install --upgrade platformio |  |  |         pip install --upgrade platformio | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     - name: Run PlatformIO |  |  |     - name: Run PlatformIO | 
			
		
	
		
		
			
				
					
					|  |  |       run: > |  |  |       run:  pio run -d src -e ${{ matrix.variant }} | 
			
				
				
			
		
	
		
		
			
				
					|  |  |         pio run -d src |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           --environment esp8266 |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           --environment esp8266-prometheus |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           --environment esp8285 |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           --environment esp32-wroom32 |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           --environment esp32-wroom32-prometheus |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           --environment esp32-wroom32-ethernet |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           --environment esp32-s2-mini |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           --environment esp32-c3-mini |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           --environment opendtufusion |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           --environment opendtufusion-ethernet |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           --environment esp8266-de |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           --environment esp8266-prometheus-de |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           --environment esp8285-de |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           --environment esp32-wroom32-de |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           --environment esp32-wroom32-prometheus-de |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           --environment esp32-wroom32-ethernet-de |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           --environment esp32-s2-mini-de |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           --environment esp32-c3-mini-de |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           --environment opendtufusion-de |  |  |  | 
			
		
	
		
		
			
				
					|  |  |           --environment opendtufusion-ethernet-de |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |   deploy: | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     needs: [build-en, build-de] | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     runs-on: ubuntu-latest | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     steps: | 
			
		
	
		
		
			
				
					|  |  |     - name: Copy boot_app0.bin |  |  |     - name: Copy boot_app0.bin | 
			
		
	
		
		
			
				
					|  |  |       run: cp ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin src/.pio/build/opendtufusion/ota.bin |  |  |       run: cp ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin src/.pio/build/opendtufusion/ota.bin | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  | 
 |