Jelajahi Sumber

CI: Update GitHub Actions

Update all of our GitHub Actions to the latest versions. Notably, the
update to actions/cache gives support for the 10GB GitHub Actions cache,
and the updates for the other first-party actions are required for
future M1 runner support.
Ryan Foster 3 tahun lalu
induk
melakukan
2f974da551

+ 1 - 1
.github/workflows/clang-format.yml

@@ -13,7 +13,7 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - name: Checkout
-        uses: actions/checkout@v2
+        uses: actions/checkout@v3
         with:
           submodules: 'recursive'
 

+ 2 - 2
.github/workflows/crowdin-sync-download.yml

@@ -7,12 +7,12 @@ jobs:
     env:
       CROWDIN_PAT: ${{ secrets.CROWDIN_SYNC_CROWDIN_PAT }}
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
         with:
           submodules: recursive
           fetch-depth: 0
           token: ${{ secrets.CROWDIN_SYNC_GITHUB_PAT }}
-      - uses: actions/setup-node@v2
+      - uses: actions/setup-node@v3
         with:
           node-version: 16
       - name: Download Script

+ 2 - 2
.github/workflows/crowdin-sync-upload.yml

@@ -13,11 +13,11 @@ jobs:
       CROWDIN_PAT: ${{ secrets.CROWDIN_SYNC_CROWDIN_PAT }}
       GITHUB_EVENT_BEFORE: ${{ github.event.before }}
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
         with:
           submodules: recursive
           fetch-depth: 100
-      - uses: actions/setup-node@v2
+      - uses: actions/setup-node@v3
         with:
           node-version: 16
       - name: Download Script

+ 2 - 2
.github/workflows/docs.yml

@@ -13,7 +13,7 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - name: Checkout
-        uses: actions/checkout@v2
+        uses: actions/checkout@v3
       - name: Bump Version Number
         shell: bash
         if: github.event_name == 'push'
@@ -39,7 +39,7 @@ jobs:
       - uses: ammaraskar/sphinx-action@master
         with:
           docs-folder: "docs/sphinx/"
-      - uses: actions/upload-artifact@v1
+      - uses: actions/upload-artifact@v3
         with:
           name: OBS Studio Documentation (HTML)
           path: docs/sphinx/_build/html/

+ 1 - 1
.github/workflows/flatpak.yml

@@ -32,7 +32,7 @@ jobs:
         branch: [stable, beta]
     steps:
       - name: Checkout
-        uses: actions/checkout@v2.3.3
+        uses: actions/checkout@v3
         with:
           submodules: 'recursive'
 

+ 25 - 25
.github/workflows/main.yml

@@ -44,7 +44,7 @@ jobs:
     runs-on: [ubuntu-latest]
     steps:
       - name: 'Checkout'
-        uses: actions/checkout@v2.3.3
+        uses: actions/checkout@v3
         with:
           submodules: 'recursive'
 
@@ -85,7 +85,7 @@ jobs:
         working-directory: 'obs-studio'
     steps:
       - name: 'Checkout'
-        uses: actions/checkout@v2.3.3
+        uses: actions/checkout@v3
         with:
           submodules: 'recursive'
           path: 'obs-studio'
@@ -104,7 +104,7 @@ jobs:
 
       - name: 'Restore ccache from cache'
         id: ccache-cache
-        uses: actions/[email protected].2
+        uses: actions/[email protected].7
         env:
           CACHE_NAME: 'ccache-cache'
         with:
@@ -113,7 +113,7 @@ jobs:
 
       - name: 'Restore Chromium Embedded Framework from cache'
         id: cef-cache
-        uses: actions/[email protected].2
+        uses: actions/[email protected].7
         env:
           CACHE_NAME: 'cef-cache'
         with:
@@ -122,7 +122,7 @@ jobs:
 
       - name: 'Restore VLC dependency from cache'
         id: vlc-cache
-        uses: actions/[email protected].2
+        uses: actions/[email protected].7
         env:
           CACHE_NAME: 'vlc-cache'
         with:
@@ -131,7 +131,7 @@ jobs:
 
       - name: 'Restore Sparkle dependency from cache'
         id: sparkle-cache
-        uses: actions/[email protected].2
+        uses: actions/[email protected].7
         env:
           CACHE_NAME: 'sparkle-cache'
         with:
@@ -187,7 +187,7 @@ jobs:
 
       - name: 'Upload build Artifact'
         if: ${{ success() && (github.event_name != 'pull_request' || env.SEEKING_TESTERS == '1') }}
-        uses: actions/upload-artifact@v2
+        uses: actions/upload-artifact@v3
         with:
           name: 'obs-macos-${{ matrix.arch }}'
           path: '${{ github.workspace }}/obs-studio/build/${{ env.FILE_NAME }}'
@@ -208,7 +208,7 @@ jobs:
       BUILD_FOR_DISTRIBUTION: ${{ startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request' }}
     steps:
       - name: 'Checkout'
-        uses: actions/checkout@v2.3.3
+        uses: actions/checkout@v3
         with:
           submodules: 'recursive'
           path: 'obs-studio'
@@ -227,7 +227,7 @@ jobs:
 
       - name: 'Restore ccache from cache'
         id: ccache-cache
-        uses: actions/[email protected].2
+        uses: actions/[email protected].7
         env:
           CACHE_NAME: 'ccache-cache'
         with:
@@ -236,7 +236,7 @@ jobs:
 
       - name: 'Restore Chromium Embedded Framework from cache'
         id: cef-cache
-        uses: actions/[email protected].2
+        uses: actions/[email protected].7
         env:
           CACHE_NAME: 'cef-cache'
         with:
@@ -264,7 +264,7 @@ jobs:
 
       - name: 'Upload build Artifact'
         if: ${{ success() && (github.event_name != 'pull_request' || env.SEEKING_TESTERS == '1') }}
-        uses: actions/upload-artifact@v2
+        uses: actions/upload-artifact@v3
         with:
           name: 'obs-linux-deb'
           path: '${{ github.workspace }}/obs-studio/build/${{ env.FILE_NAME }}'
@@ -287,14 +287,14 @@ jobs:
         working-directory: 'obs-studio'
     steps:
       - name: 'Checkout'
-        uses: actions/checkout@v2.3.3
+        uses: actions/checkout@v3
         with:
           submodules: 'recursive'
           path: 'obs-studio'
           fetch-depth: 0
 
       - name: 'Add msbuild to PATH'
-        uses: microsoft/setup-msbuild@v1.0.2
+        uses: microsoft/setup-msbuild@v1.1
 
       - name: 'Check for Github Labels'
         if: github.event_name == 'pull_request'
@@ -304,7 +304,7 @@ jobs:
 
       - name: 'Restore VLC dependency from cache'
         id: vlc-cache
-        uses: actions/[email protected].2
+        uses: actions/[email protected].7
         env:
           CACHE_NAME: 'vlc-cache'
         with:
@@ -313,7 +313,7 @@ jobs:
 
       - name: 'Restore Chromium Embedded Framework from cache'
         id: cef-cache
-        uses: actions/[email protected].2
+        uses: actions/[email protected].7
         env:
           CACHE_NAME: 'cef-cache'
         with:
@@ -338,7 +338,7 @@ jobs:
 
       - name: 'Upload build artifact'
         if: ${{ success() && (github.event_name != 'pull_request' || env.SEEKING_TESTERS == '1') }}
-        uses: actions/upload-artifact@v2
+        uses: actions/upload-artifact@v3
         with:
           name: 'obs-win${{ matrix.arch }}'
           path: '${{ env.FILE_NAME }}'
@@ -366,7 +366,7 @@ jobs:
           fi
 
       - name: 'Checkout'
-        uses: actions/checkout@v2.3.3
+        uses: actions/checkout@v3
         if: ${{ success() && (github.event_name != 'pull_request' || env.SEEKING_TESTERS == '1') }}
         with:
           submodules: 'recursive'
@@ -396,18 +396,18 @@ jobs:
       BUILD_FOR_DISTRIBUTION: 'ON'
     steps:
       - name: 'Checkout'
-        uses: actions/checkout@v2.3.3
+        uses: actions/checkout@v3
 
       - name: 'Add msbuild to PATH'
-        uses: microsoft/setup-msbuild@v1.0.2
+        uses: microsoft/setup-msbuild@v1.1
 
       - name: 'Download 64-bit artifact'
-        uses: actions/download-artifact@v2
+        uses: actions/download-artifact@v3
         with:
           name: 'obs-win64'
 
       - name: 'Download 32-bit artifact'
-        uses: actions/download-artifact@v2
+        uses: actions/download-artifact@v3
         with:
           name: 'obs-win32'
 
@@ -426,7 +426,7 @@ jobs:
           Write-Output "FILE_NAME=${ArtifactName}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
 
       - name: 'Upload build artifact'
-        uses: actions/upload-artifact@v2
+        uses: actions/upload-artifact@v3
         with:
           name: 'obs-windows'
           path: '${{ env.FILE_NAME }}'
@@ -448,11 +448,11 @@ jobs:
     steps:
       - name: 'Checkout'
         if: env.HAVE_CODESIGN_IDENTITY == 'true'
-        uses: actions/checkout@v2.3.3
+        uses: actions/checkout@v3
 
       - name: 'Download artifact'
         if: env.HAVE_CODESIGN_IDENTITY == 'true'
-        uses: actions/download-artifact@v2
+        uses: actions/download-artifact@v3
         with:
           name: 'obs-macos-${{ matrix.arch }}'
 
@@ -477,7 +477,7 @@ jobs:
 
       - name: 'Upload build Artifact'
         if: env.HAVE_CODESIGN_IDENTITY == 'true'
-        uses: actions/upload-artifact@v2
+        uses: actions/upload-artifact@v3
         with:
           name: 'obs-macos-${{ matrix.arch }}-notarized'
           path: '${{ github.workspace }}/${{ env.FILE_NAME }}'

+ 1 - 1
.github/workflows/qt-xml.yml

@@ -13,7 +13,7 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - name: Checkout
-        uses: actions/checkout@v2
+        uses: actions/checkout@v3
         with:
           submodules: 'recursive'