Updated checkout Github Action to v2.
This commit is contained in:
		
							parent
							
								
									9a78c94d7e
								
							
						
					
					
						commit
						1a5ee99c8a
					
				
					 4 changed files with 17 additions and 27 deletions
				
			
		
							
								
								
									
										24
									
								
								.github/workflows/linux.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										24
									
								
								.github/workflows/linux.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -40,11 +40,6 @@ jobs:
 | 
			
		|||
      - name: Get repository name.
 | 
			
		||||
        run: echo ::set-env name=REPO_NAME::${GITHUB_REPOSITORY##*/}
 | 
			
		||||
 | 
			
		||||
      - name: Clone.
 | 
			
		||||
        uses: actions/checkout@v1
 | 
			
		||||
        with:
 | 
			
		||||
          submodules: recursive
 | 
			
		||||
 | 
			
		||||
      - name: Disable man for further package installs.
 | 
			
		||||
        run: |
 | 
			
		||||
          cfgFile="/etc/dpkg/dpkg.cfg.d/no_man"
 | 
			
		||||
| 
						 | 
				
			
			@ -57,17 +52,13 @@ jobs:
 | 
			
		|||
          p locale
 | 
			
		||||
          p doc
 | 
			
		||||
 | 
			
		||||
      - name: First set up.
 | 
			
		||||
      - name: Apt install.
 | 
			
		||||
        shell: bash
 | 
			
		||||
        run: |
 | 
			
		||||
          cd ..
 | 
			
		||||
          mv $REPO_NAME temp
 | 
			
		||||
          mkdir $REPO_NAME
 | 
			
		||||
          mv temp $REPO_NAME/$REPO_NAME
 | 
			
		||||
          cd $REPO_NAME
 | 
			
		||||
 | 
			
		||||
          sudo apt-get update
 | 
			
		||||
          sudo apt-get install software-properties-common -y && \
 | 
			
		||||
          sudo add-apt-repository ppa:git-core/ppa -y && \
 | 
			
		||||
          sudo apt-get update && \
 | 
			
		||||
          sudo apt-get install git libexif-dev liblzma-dev libz-dev libssl-dev \
 | 
			
		||||
          libgtk2.0-dev libice-dev libsm-dev libicu-dev libdrm-dev dh-autoreconf \
 | 
			
		||||
          autoconf automake build-essential libxml2-dev libass-dev libfreetype6-dev \
 | 
			
		||||
| 
						 | 
				
			
			@ -86,6 +77,15 @@ jobs:
 | 
			
		|||
          sudo update-alternatives --config gcc && \
 | 
			
		||||
          sudo add-apt-repository --remove ppa:ubuntu-toolchain-r/test -y
 | 
			
		||||
 | 
			
		||||
      - name: Clone.
 | 
			
		||||
        uses: actions/checkout@v2
 | 
			
		||||
        with:
 | 
			
		||||
          submodules: recursive
 | 
			
		||||
          path: ${{ env.REPO_NAME }}
 | 
			
		||||
 | 
			
		||||
      - name: First set up.
 | 
			
		||||
        shell: bash
 | 
			
		||||
        run: |
 | 
			
		||||
          gcc --version
 | 
			
		||||
 | 
			
		||||
          gcc --version > CACHE_KEY.txt
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										9
									
								
								.github/workflows/mac.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.github/workflows/mac.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -42,18 +42,13 @@ jobs:
 | 
			
		|||
        run: echo ::set-env name=REPO_NAME::${GITHUB_REPOSITORY##*/}
 | 
			
		||||
 | 
			
		||||
      - name: Clone.
 | 
			
		||||
        uses: actions/checkout@v1
 | 
			
		||||
        uses: actions/checkout@v2
 | 
			
		||||
        with:
 | 
			
		||||
          submodules: recursive
 | 
			
		||||
          path: ${{ env.REPO_NAME }}
 | 
			
		||||
 | 
			
		||||
      - name: First set up.
 | 
			
		||||
        run: |
 | 
			
		||||
          cd ..
 | 
			
		||||
          mv $REPO_NAME temp
 | 
			
		||||
          mkdir $REPO_NAME
 | 
			
		||||
          mv temp $REPO_NAME/$REPO_NAME
 | 
			
		||||
          cd $REPO_NAME
 | 
			
		||||
 | 
			
		||||
          brew install automake fdk-aac lame libass libtool libvorbis libvpx \
 | 
			
		||||
          ninja opus sdl shtool texi2html theora x264 xvid yasm pkg-config
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								.github/workflows/snap.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/snap.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -23,7 +23,7 @@ jobs:
 | 
			
		|||
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Clone.
 | 
			
		||||
        uses: actions/checkout@v1
 | 
			
		||||
        uses: actions/checkout@v2
 | 
			
		||||
        with:
 | 
			
		||||
          submodules: recursive
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										9
									
								
								.github/workflows/win.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.github/workflows/win.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -38,19 +38,14 @@ jobs:
 | 
			
		|||
        run: echo ::set-env name=REPO_NAME::${GITHUB_REPOSITORY##*/}
 | 
			
		||||
 | 
			
		||||
      - name: Clone.
 | 
			
		||||
        uses: actions/checkout@v1
 | 
			
		||||
        uses: actions/checkout@v2
 | 
			
		||||
        with:
 | 
			
		||||
          submodules: recursive
 | 
			
		||||
          path: ${{ env.REPO_NAME }}
 | 
			
		||||
 | 
			
		||||
      - name: Set up environment variables.
 | 
			
		||||
        shell: cmd
 | 
			
		||||
        run: |
 | 
			
		||||
          cd ..
 | 
			
		||||
          move %REPO_NAME% temp
 | 
			
		||||
          mkdir %REPO_NAME%
 | 
			
		||||
          move temp %REPO_NAME%/%REPO_NAME%
 | 
			
		||||
          cd %REPO_NAME%
 | 
			
		||||
 | 
			
		||||
          echo ::add-path::C:\Strawberry\perl\bin\
 | 
			
		||||
          echo ::add-path::"%programfiles%\NASM"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue