mirror of
				https://github.com/brain-hackers/buildbrain
				synced 2025-11-04 14:28:34 +09:00 
			
		
		
		
	Adjust format
This commit is contained in:
		
							
								
								
									
										90
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										90
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							@@ -39,51 +39,51 @@ jobs:
 | 
				
			|||||||
          - sh4
 | 
					          - sh4
 | 
				
			||||||
          - sh5
 | 
					          - sh5
 | 
				
			||||||
          - sh6
 | 
					          - sh6
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
    - uses: actions/checkout@v2
 | 
					      - uses: actions/checkout@v2
 | 
				
			||||||
      with:
 | 
					        with:
 | 
				
			||||||
        submodules: true
 | 
					          submodules: true
 | 
				
			||||||
    - name: Workaround for apt update failure
 | 
					      - name: Workaround for apt update failure
 | 
				
			||||||
      run: sudo rm /etc/apt/sources.list.d/github_git-lfs.*
 | 
					        run: sudo rm /etc/apt/sources.list.d/github_git-lfs.*
 | 
				
			||||||
    - name: Install deps
 | 
					      - name: Install deps
 | 
				
			||||||
      run: sudo apt update && sudo apt install build-essential bison flex libncurses5-dev gcc-arm-linux-gnueabi qemu-user-static debootstrap
 | 
					        run: sudo apt update && sudo apt install build-essential bison flex libncurses5-dev gcc-arm-linux-gnueabi qemu-user-static debootstrap
 | 
				
			||||||
 | 
					      - name: Build nkbin-maker
 | 
				
			||||||
 | 
					        run: make nkbin-maker
 | 
				
			||||||
 | 
					      - name: Configure for U-Boot
 | 
				
			||||||
 | 
					        run: make udefconfig-${{ matrix.hardware }}
 | 
				
			||||||
 | 
					      - name: Build U-Boot
 | 
				
			||||||
 | 
					        run: make ubuild
 | 
				
			||||||
 | 
					      - name: Generate NK.bin
 | 
				
			||||||
 | 
					        run: make nk.bin
 | 
				
			||||||
 | 
					      - name: Configure for Linux
 | 
				
			||||||
 | 
					        run: make ldefconfig
 | 
				
			||||||
 | 
					      - name: Build Linux
 | 
				
			||||||
 | 
					        run: make lbuild
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - name: Build nkbin-maker
 | 
					      # - name: Build Debian Root # Wait for buildroot
 | 
				
			||||||
      run: make nkbin-maker
 | 
					      #   run: |
 | 
				
			||||||
    - name: Configure for U-Boot
 | 
					      #     ./tools/aptcache_linux_amd64 \
 | 
				
			||||||
      run: make udefconfig-${{ matrix.hardware }}
 | 
					      #       -rule 'local=localhost:65432, remote=ftp.us.debian.org' \
 | 
				
			||||||
    - name: Build U-Boot
 | 
					      #       -rule 'local=localhost:65433, remote=security.debian.org' &
 | 
				
			||||||
      run: make ubuild
 | 
					      #     make debian
 | 
				
			||||||
    - name: Generate NK.bin
 | 
					 | 
				
			||||||
      run: make nk.bin
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - name: Configure for Linux
 | 
					      - name: Setup releases
 | 
				
			||||||
      run: make ldefconfig
 | 
					        id: release_name
 | 
				
			||||||
    - name: Build Linux
 | 
					        run: |
 | 
				
			||||||
      run: make lbuild
 | 
					          mkdir release
 | 
				
			||||||
 | 
					          cp ./u-boot-brain/u-boot.bin release/u-boot.bin
 | 
				
			||||||
    # - name: Build Debian Root # Wait for buildroot
 | 
					          cp ./u-boot-brain/u-boot.sb release/u-boot.sb
 | 
				
			||||||
    #   run: |
 | 
					          cp ./nk.bin release/nk.bin
 | 
				
			||||||
    #     ./tools/aptcache_linux_amd64 \
 | 
					          cp ./linux-brain/arch/arm/boot/dts/imx28-evk.dtb release/imx28-evk.dtb
 | 
				
			||||||
    #       -rule 'local=localhost:65432, remote=ftp.us.debian.org' \
 | 
					          cp ./linux-brain/arch/arm/boot/zImage release/zImage
 | 
				
			||||||
    #       -rule 'local=localhost:65433, remote=security.debian.org' &
 | 
					          zip -r release.zip release/
 | 
				
			||||||
    #     make debian
 | 
					      - name: Upload release.zip
 | 
				
			||||||
    - name: Setup releases
 | 
					        uses: actions/upload-release-asset@v1
 | 
				
			||||||
      id: release_name
 | 
					        env:
 | 
				
			||||||
      run: |
 | 
					          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
				
			||||||
        mkdir release
 | 
					        with:
 | 
				
			||||||
        cp ./u-boot-brain/u-boot.bin release/u-boot.bin
 | 
					          upload_url: ${{ needs.create_release.outputs.upload_url }}
 | 
				
			||||||
        cp ./u-boot-brain/u-boot.sb release/u-boot.sb
 | 
					          asset_path: release.zip
 | 
				
			||||||
        cp ./nk.bin release/nk.bin
 | 
					          asset_name: ${{ matrix.hardware }}-release.zip
 | 
				
			||||||
        cp ./linux-brain/arch/arm/boot/dts/imx28-evk.dtb release/imx28-evk.dtb
 | 
					          asset_content_type: application/zip
 | 
				
			||||||
        cp ./linux-brain/arch/arm/boot/zImage release/zImage
 | 
					 | 
				
			||||||
        zip -r release.zip release/
 | 
					 | 
				
			||||||
    - name: Upload release.zip
 | 
					 | 
				
			||||||
      uses: actions/upload-release-asset@v1
 | 
					 | 
				
			||||||
      env:
 | 
					 | 
				
			||||||
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
					 | 
				
			||||||
      with:
 | 
					 | 
				
			||||||
        upload_url: ${{ needs.create_release.outputs.upload_url }}
 | 
					 | 
				
			||||||
        asset_path: release.zip
 | 
					 | 
				
			||||||
        asset_name: ${{ matrix.hardware }}-release.zip
 | 
					 | 
				
			||||||
        asset_content_type: application/zip
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user