CI: update actions (#2943)
This commit is contained in:
		
							parent
							
								
									c4ec8682d5
								
							
						
					
					
						commit
						67ed0fdca5
					
				| 
						 | 
					@ -25,7 +25,7 @@ jobs:
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v3
 | 
					      - uses: actions/checkout@v4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: "Determine modified files (pull_request)"
 | 
					      - name: "Determine modified files (pull_request)"
 | 
				
			||||||
        if: github.event_name == 'pull_request'
 | 
					        if: github.event_name == 'pull_request'
 | 
				
			||||||
| 
						 | 
					@ -50,7 +50,7 @@ jobs:
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          echo "diff=." >> $GITHUB_ENV
 | 
					          echo "diff=." >> $GITHUB_ENV
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - uses: actions/setup-python@v4
 | 
					      - uses: actions/setup-python@v5
 | 
				
			||||||
        if: env.diff != ''
 | 
					        if: env.diff != ''
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          python-version: 3.8
 | 
					          python-version: 3.8
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -76,14 +76,14 @@ jobs:
 | 
				
			||||||
    runs-on: ubuntu-20.04
 | 
					    runs-on: ubuntu-20.04
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      # - copy code below to release.yml -
 | 
					      # - copy code below to release.yml -
 | 
				
			||||||
      - uses: actions/checkout@v3
 | 
					      - uses: actions/checkout@v4
 | 
				
			||||||
      - name: Install base dependencies
 | 
					      - name: Install base dependencies
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          sudo apt update
 | 
					          sudo apt update
 | 
				
			||||||
          sudo apt -y install build-essential p7zip xz-utils wget libglib2.0-0
 | 
					          sudo apt -y install build-essential p7zip xz-utils wget libglib2.0-0
 | 
				
			||||||
          sudo apt -y install python3-gi libgirepository1.0-dev  # should pull dependencies for gi installation below
 | 
					          sudo apt -y install python3-gi libgirepository1.0-dev  # should pull dependencies for gi installation below
 | 
				
			||||||
      - name: Get a recent python
 | 
					      - name: Get a recent python
 | 
				
			||||||
        uses: actions/setup-python@v4
 | 
					        uses: actions/setup-python@v5
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          python-version: '3.11'
 | 
					          python-version: '3.11'
 | 
				
			||||||
      - name: Install build-time dependencies
 | 
					      - name: Install build-time dependencies
 | 
				
			||||||
| 
						 | 
					@ -119,13 +119,13 @@ jobs:
 | 
				
			||||||
          source venv/bin/activate
 | 
					          source venv/bin/activate
 | 
				
			||||||
          python setup.py build_exe --yes
 | 
					          python setup.py build_exe --yes
 | 
				
			||||||
      - name: Store AppImage
 | 
					      - name: Store AppImage
 | 
				
			||||||
        uses: actions/upload-artifact@v3
 | 
					        uses: actions/upload-artifact@v4
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          name: ${{ env.APPIMAGE_NAME }}
 | 
					          name: ${{ env.APPIMAGE_NAME }}
 | 
				
			||||||
          path: dist/${{ env.APPIMAGE_NAME }}
 | 
					          path: dist/${{ env.APPIMAGE_NAME }}
 | 
				
			||||||
          retention-days: 7
 | 
					          retention-days: 7
 | 
				
			||||||
      - name: Store .tar.gz
 | 
					      - name: Store .tar.gz
 | 
				
			||||||
        uses: actions/upload-artifact@v3
 | 
					        uses: actions/upload-artifact@v4
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          name: ${{ env.TAR_NAME }}
 | 
					          name: ${{ env.TAR_NAME }}
 | 
				
			||||||
          path: dist/${{ env.TAR_NAME }}
 | 
					          path: dist/${{ env.TAR_NAME }}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -43,7 +43,7 @@ jobs:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
    - name: Checkout repository
 | 
					    - name: Checkout repository
 | 
				
			||||||
      uses: actions/checkout@v3
 | 
					      uses: actions/checkout@v4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Initializes the CodeQL tools for scanning.
 | 
					    # Initializes the CodeQL tools for scanning.
 | 
				
			||||||
    - name: Initialize CodeQL
 | 
					    - name: Initialize CodeQL
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -18,7 +18,7 @@ jobs:
 | 
				
			||||||
      - name: Set env
 | 
					      - name: Set env
 | 
				
			||||||
        run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV  # tag x.y.z will become "Archipelago x.y.z"
 | 
					        run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV  # tag x.y.z will become "Archipelago x.y.z"
 | 
				
			||||||
      - name: Create Release
 | 
					      - name: Create Release
 | 
				
			||||||
        uses: softprops/action-gh-release@b7e450da2a4b4cb4bfbae528f788167786cfcedf
 | 
					        uses: softprops/action-gh-release@975c1b265e11dd76618af1c374e7981f9a6ff44a
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          draft: true  # don't publish right away, especially since windows build is added by hand
 | 
					          draft: true  # don't publish right away, especially since windows build is added by hand
 | 
				
			||||||
          prerelease: false
 | 
					          prerelease: false
 | 
				
			||||||
| 
						 | 
					@ -35,14 +35,14 @@ jobs:
 | 
				
			||||||
      - name: Set env
 | 
					      - name: Set env
 | 
				
			||||||
        run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
 | 
					        run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
 | 
				
			||||||
      # - code below copied from build.yml -
 | 
					      # - code below copied from build.yml -
 | 
				
			||||||
      - uses: actions/checkout@v3
 | 
					      - uses: actions/checkout@v4
 | 
				
			||||||
      - name: Install base dependencies
 | 
					      - name: Install base dependencies
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          sudo apt update
 | 
					          sudo apt update
 | 
				
			||||||
          sudo apt -y install build-essential p7zip xz-utils wget libglib2.0-0
 | 
					          sudo apt -y install build-essential p7zip xz-utils wget libglib2.0-0
 | 
				
			||||||
          sudo apt -y install python3-gi libgirepository1.0-dev  # should pull dependencies for gi installation below
 | 
					          sudo apt -y install python3-gi libgirepository1.0-dev  # should pull dependencies for gi installation below
 | 
				
			||||||
      - name: Get a recent python
 | 
					      - name: Get a recent python
 | 
				
			||||||
        uses: actions/setup-python@v4
 | 
					        uses: actions/setup-python@v5
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          python-version: '3.11'
 | 
					          python-version: '3.11'
 | 
				
			||||||
      - name: Install build-time dependencies
 | 
					      - name: Install build-time dependencies
 | 
				
			||||||
| 
						 | 
					@ -74,7 +74,7 @@ jobs:
 | 
				
			||||||
          echo "TAR_NAME=$TAR_NAME" >> $GITHUB_ENV
 | 
					          echo "TAR_NAME=$TAR_NAME" >> $GITHUB_ENV
 | 
				
			||||||
      # - code above copied from build.yml -
 | 
					      # - code above copied from build.yml -
 | 
				
			||||||
      - name: Add to Release
 | 
					      - name: Add to Release
 | 
				
			||||||
        uses: softprops/action-gh-release@b7e450da2a4b4cb4bfbae528f788167786cfcedf
 | 
					        uses: softprops/action-gh-release@975c1b265e11dd76618af1c374e7981f9a6ff44a
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          draft: true  # see above
 | 
					          draft: true  # see above
 | 
				
			||||||
          prerelease: false
 | 
					          prerelease: false
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -46,9 +46,9 @@ jobs:
 | 
				
			||||||
            os: macos-latest
 | 
					            os: macos-latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
    - uses: actions/checkout@v3
 | 
					    - uses: actions/checkout@v4
 | 
				
			||||||
    - name: Set up Python ${{ matrix.python.version }}
 | 
					    - name: Set up Python ${{ matrix.python.version }}
 | 
				
			||||||
      uses: actions/setup-python@v4
 | 
					      uses: actions/setup-python@v5
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        python-version: ${{ matrix.python.version }}
 | 
					        python-version: ${{ matrix.python.version }}
 | 
				
			||||||
    - name: Install dependencies
 | 
					    - name: Install dependencies
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue