| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -69,62 +69,62 @@ jobs: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                          rm -rf /tmp/scons_cache/* && \ | 
					 | 
					 | 
					 | 
					                          rm -rf /tmp/scons_cache/* && \ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                          scons -j$(nproc) --cache-populate" | 
					 | 
					 | 
					 | 
					                          scons -j$(nproc) --cache-populate" | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  build_mac: | 
					 | 
					 | 
					 | 
					  #build_mac: | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    name: build macos | 
					 | 
					 | 
					 | 
					  #  name: build macos | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    runs-on: macos-latest | 
					 | 
					 | 
					 | 
					  #  runs-on: macos-latest | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    timeout-minutes: 60 | 
					 | 
					 | 
					 | 
					  #  timeout-minutes: 60 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    steps: | 
					 | 
					 | 
					 | 
					  #  steps: | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    - uses: actions/checkout@v2 | 
					 | 
					 | 
					 | 
					  #  - uses: actions/checkout@v2 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      with: | 
					 | 
					 | 
					 | 
					  #    with: | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        submodules: true | 
					 | 
					 | 
					 | 
					  #      submodules: true | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    - name: Determine pre-existing Homebrew packages | 
					 | 
					 | 
					 | 
					  #  - name: Determine pre-existing Homebrew packages | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      if: steps.dependency-cache.outputs.cache-hit != 'true' | 
					 | 
					 | 
					 | 
					  #    if: steps.dependency-cache.outputs.cache-hit != 'true' | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      run: | | 
					 | 
					 | 
					 | 
					  #    run: | | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        echo 'EXISTING_CELLAR<<EOF' >> $GITHUB_ENV | 
					 | 
					 | 
					 | 
					  #      echo 'EXISTING_CELLAR<<EOF' >> $GITHUB_ENV | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        ls -1 /usr/local/Cellar >> $GITHUB_ENV | 
					 | 
					 | 
					 | 
					  #      ls -1 /usr/local/Cellar >> $GITHUB_ENV | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        echo 'EOF' >> $GITHUB_ENV | 
					 | 
					 | 
					 | 
					  #      echo 'EOF' >> $GITHUB_ENV | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    - name: Cache dependencies | 
					 | 
					 | 
					 | 
					  #  - name: Cache dependencies | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      id: dependency-cache | 
					 | 
					 | 
					 | 
					  #    id: dependency-cache | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      uses: actions/cache@v2 | 
					 | 
					 | 
					 | 
					  #    uses: actions/cache@v2 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      with: | 
					 | 
					 | 
					 | 
					  #    with: | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        path: | | 
					 | 
					 | 
					 | 
					  #      path: | | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          ~/.pyenv | 
					 | 
					 | 
					 | 
					  #        ~/.pyenv | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          ~/.local/share/virtualenvs/ | 
					 | 
					 | 
					 | 
					  #        ~/.local/share/virtualenvs/ | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          /usr/local/Cellar | 
					 | 
					 | 
					 | 
					  #        /usr/local/Cellar | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          ~/github_brew_cache_entries.txt | 
					 | 
					 | 
					 | 
					  #        ~/github_brew_cache_entries.txt | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          /tmp/scons_cache | 
					 | 
					 | 
					 | 
					  #        /tmp/scons_cache | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        key: macos-${{ hashFiles('tools/mac_setup.sh', 'update_requirements.sh', 'Pipfile*') }} | 
					 | 
					 | 
					 | 
					  #      key: macos-${{ hashFiles('tools/mac_setup.sh', 'update_requirements.sh', 'Pipfile*') }} | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        restore-keys: macos- | 
					 | 
					 | 
					 | 
					  #      restore-keys: macos- | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    - name: Brew link restored dependencies | 
					 | 
					 | 
					 | 
					  #  - name: Brew link restored dependencies | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      run: | | 
					 | 
					 | 
					 | 
					  #    run: | | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        if [ -f ~/github_brew_cache_entries.txt ]; then | 
					 | 
					 | 
					 | 
					  #      if [ -f ~/github_brew_cache_entries.txt ]; then | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          while read pkg; do | 
					 | 
					 | 
					 | 
					  #        while read pkg; do | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            brew link --force "$pkg" # `--force` for keg-only packages | 
					 | 
					 | 
					 | 
					  #          brew link --force "$pkg" # `--force` for keg-only packages | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          done < ~/github_brew_cache_entries.txt | 
					 | 
					 | 
					 | 
					  #        done < ~/github_brew_cache_entries.txt | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        else | 
					 | 
					 | 
					 | 
					  #      else | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          echo "Cache entries not found" | 
					 | 
					 | 
					 | 
					  #        echo "Cache entries not found" | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        fi | 
					 | 
					 | 
					 | 
					  #      fi | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    - name: Install dependencies | 
					 | 
					 | 
					 | 
					  #  - name: Install dependencies | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      run: ./tools/mac_setup.sh | 
					 | 
					 | 
					 | 
					  #    run: ./tools/mac_setup.sh | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    - name: Build openpilot | 
					 | 
					 | 
					 | 
					  #  - name: Build openpilot | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      run: | | 
					 | 
					 | 
					 | 
					  #    run: | | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        source tools/openpilot_env.sh | 
					 | 
					 | 
					 | 
					  #      source tools/openpilot_env.sh | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        pipenv run selfdrive/manager/build.py | 
					 | 
					 | 
					 | 
					  #      pipenv run selfdrive/manager/build.py | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					  # | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        # cleanup scons cache | 
					 | 
					 | 
					 | 
					  #      # cleanup scons cache | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        rm -rf /tmp/scons_cache/ | 
					 | 
					 | 
					 | 
					  #      rm -rf /tmp/scons_cache/ | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        pipenv run scons -j$(nproc) --cache-populate | 
					 | 
					 | 
					 | 
					  #      pipenv run scons -j$(nproc) --cache-populate | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    - name: Remove pre-existing Homebrew packages for caching | 
					 | 
					 | 
					 | 
					  #  - name: Remove pre-existing Homebrew packages for caching | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      if: steps.dependency-cache.outputs.cache-hit != 'true' | 
					 | 
					 | 
					 | 
					  #    if: steps.dependency-cache.outputs.cache-hit != 'true' | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      run: | | 
					 | 
					 | 
					 | 
					  #    run: | | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        cd /usr/local/Cellar | 
					 | 
					 | 
					 | 
					  #      cd /usr/local/Cellar | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        new_cellar=$(ls -1) | 
					 | 
					 | 
					 | 
					  #      new_cellar=$(ls -1) | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        comm -12 <(echo "$EXISTING_CELLAR") <(echo "$new_cellar") | while read pkg; do | 
					 | 
					 | 
					 | 
					  #      comm -12 <(echo "$EXISTING_CELLAR") <(echo "$new_cellar") | while read pkg; do | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          if [[ $pkg != "zstd" ]]; then # caching step needs zstd | 
					 | 
					 | 
					 | 
					  #        if [[ $pkg != "zstd" ]]; then # caching step needs zstd | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            rm -rf "$pkg" | 
					 | 
					 | 
					 | 
					  #          rm -rf "$pkg" | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          fi | 
					 | 
					 | 
					 | 
					  #        fi | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        done | 
					 | 
					 | 
					 | 
					  #      done | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        comm -13 <(echo "$EXISTING_CELLAR") <(echo "$new_cellar") | tee ~/github_brew_cache_entries.txt | 
					 | 
					 | 
					 | 
					  #      comm -13 <(echo "$EXISTING_CELLAR") <(echo "$new_cellar") | tee ~/github_brew_cache_entries.txt | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  build_webcam: | 
					 | 
					 | 
					 | 
					  build_webcam: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    name: build webcam | 
					 | 
					 | 
					 | 
					    name: build webcam | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |