[PATCH] D152064: CI: run "apt update" before installing any packages

Charles the Thobe via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 3 06:47:23 PDT 2023


charlesthobe created this revision.
charlesthobe added a reviewer: tstellar.
Herald added a project: All.
charlesthobe requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Fixes failure of "Release Binaries" github workflow run.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D152064

Files:
  .github/workflows/libclang-abi-tests.yml
  .github/workflows/llvm-tests.yml
  .github/workflows/release-binaries.yml
  .github/workflows/release-tasks.yml


Index: .github/workflows/release-tasks.yml
===================================================================
--- .github/workflows/release-tasks.yml
+++ .github/workflows/release-tasks.yml
@@ -26,8 +26,8 @@
 
       - name: Install Dependencies
         run: |
-          sudo apt-get update
-          sudo apt-get install -y \
+          sudo apt update
+          sudo apt install -y \
               doxygen \
               graphviz \
               python3-github \
@@ -84,7 +84,9 @@
         uses: actions/checkout at v3
 
       - name: Install dependencies
-        run: apt-get install -y python3-setuptools
+        run: |
+          sudo apt update
+          sudo apt install -y python3-setuptools
 
       - name: Test lit
         run: |
Index: .github/workflows/release-binaries.yml
===================================================================
--- .github/workflows/release-binaries.yml
+++ .github/workflows/release-binaries.yml
@@ -87,7 +87,9 @@
 
     - name: Install Debian build dependencies
       if: matrix.target.debian-build-deps != ''
-      run: sudo apt install ${{ matrix.target.debian-build-deps }}
+      run: |
+        sudo apt update
+        sudo apt install ${{ matrix.target.debian-build-deps }}
 
     - name: Set macOS build env variables
       if: runner.os == 'macOS'
@@ -107,7 +109,7 @@
     - name: Upload binaries
       if: ${{ always() && needs.prepare.outputs.upload == 'true' }}
       run: |
-        sudo apt install python3-github
+        sudo sudo apt install python3-github
         ${{ needs.prepare.outputs.build-dir }}/llvm-project/llvm/utils/release/github-upload-release.py \
         --token ${{ github.token }} \
         --release ${{ needs.prepare.outputs.release-version }} \
Index: .github/workflows/llvm-tests.yml
===================================================================
--- .github/workflows/llvm-tests.yml
+++ .github/workflows/llvm-tests.yml
@@ -109,7 +109,8 @@
         uses: llvm/actions/install-ninja at main
       - name: Install abi-compliance-checker
         run: |
-          sudo apt-get install abi-dumper autoconf pkg-config
+          sudo apt update
+          sudo apt install abi-dumper autoconf pkg-config
       - name: Install universal-ctags
         run: |
           git clone https://github.com/universal-ctags/ctags.git
@@ -178,7 +179,9 @@
           name: symbol-list
 
       - name: Install abi-compliance-checker
-        run: sudo apt-get install abi-compliance-checker
+        run: |
+          sudo apt update
+          sudo apt install abi-compliance-checker
       - name: Compare ABI
         run: |
           if [ -s symbol-list/llvm.symbols ]; then
Index: .github/workflows/libclang-abi-tests.yml
===================================================================
--- .github/workflows/libclang-abi-tests.yml
+++ .github/workflows/libclang-abi-tests.yml
@@ -103,7 +103,8 @@
         uses: llvm/actions/install-ninja at main
       - name: Install abi-compliance-checker
         run: |
-          sudo apt-get install abi-dumper autoconf pkg-config
+          sudo apt update
+          sudo apt install abi-dumper autoconf pkg-config
       - name: Install universal-ctags
         run: |
           git clone https://github.com/universal-ctags/ctags.git
@@ -152,7 +153,9 @@
           name: build-latest
 
       - name: Install abi-compliance-checker
-        run: sudo apt-get install abi-compliance-checker
+        run: |
+          sudo apt update
+          sudo apt install abi-compliance-checker
       - name: Compare ABI
         run: |
           for lib in ${{ needs.abi-dump-setup.outputs.ABI_LIBS }}; do


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152064.528103.patch
Type: text/x-patch
Size: 3642 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230603/bdb0b373/attachment.bin>


More information about the llvm-commits mailing list