]> granicus.if.org Git - libevent/commitdiff
fix CI:Update cache version and replace setup-msys2
authoryuangongji <yuangongji@foxmail.com>
Wed, 5 Aug 2020 04:12:08 +0000 (12:12 +0800)
committeryuangongji <yuangongji@foxmail.com>
Wed, 5 Aug 2020 07:47:03 +0000 (15:47 +0800)
.github/workflows/linux.yml
.github/workflows/macos.yml
.github/workflows/mingw.yml

index 129eb8e9e0fb22f3af6c81dce683f1d1a46e0657..c88346231c98543d3d13deb9c8f8c5a777dcb6ac 100644 (file)
@@ -43,15 +43,15 @@ jobs:
     steps:
       - uses: actions/checkout@v2.0.0
       - name: Cache Build
-        uses: actions/cache@v1.1.0
+        uses: actions/cache@v2
         with:
           path: build
-          key: ${{ matrix.os }}-cmake-${{ matrix.EVENT_MATRIX }}-v2
+          key: ${{ matrix.os }}-cmake-${{ matrix.EVENT_MATRIX }}-v3
       - name: Cache Dist Build
-        uses: actions/cache@v1.1.0
+        uses: actions/cache@v2
         with:
           path: dist
-          key: ${{ matrix.os }}-cmake-dist-${{ matrix.EVENT_MATRIX }}-v2
+          key: ${{ matrix.os }}-cmake-dist-${{ matrix.EVENT_MATRIX }}-v3
 
       - name: Install Depends
         run: |
@@ -148,15 +148,15 @@ jobs:
     steps:
       - uses: actions/checkout@v2.0.0
       - name: Cache Build
-        uses: actions/cache@v1.1.0
+        uses: actions/cache@v2
         with:
           path: build
           key: ${{ matrix.os }}-autotools-${{ matrix.EVENT_MATRIX }}-v2
       - name: Cache Dist Build
-        uses: actions/cache@v1.1.0
+        uses: actions/cache@v2
         with:
           path: dist
-          key: ${{ matrix.os }}-autotools-dist-${{ matrix.EVENT_MATRIX }}-v2
+          key: ${{ matrix.os }}-autotools-dist-${{ matrix.EVENT_MATRIX }}-v3
 
       - name: Install Depends
         run: |
index 84b4c9ec006ea61ef3a313bd0c03c55fe793cab7..ec7c9cf63eb1a92dc46e1bb8f31ab496ff4c834b 100644 (file)
@@ -40,10 +40,10 @@ jobs:
       - uses: actions/checkout@v2.0.0
 
       - name: Cache Build
-        uses: actions/cache@v1.1.0
+        uses: actions/cache@v2
         with:
           path: build
-          key: macos-10.15-cmake-${{ matrix.EVENT_MATRIX }}-v2
+          key: macos-10.15-cmake-${{ matrix.EVENT_MATRIX }}-v3
 
       - name: Install Depends
         run: brew install mbedtls
@@ -121,10 +121,10 @@ jobs:
       - uses: actions/checkout@v2.0.0
 
       - name: Cache Build
-        uses: actions/cache@v1.1.0
+        uses: actions/cache@v2
         with:
           path: build
-          key: ${{ matrix.os }}-autotools-${{ matrix.EVENT_MATRIX }}-v2
+          key: ${{ matrix.os }}-autotools-${{ matrix.EVENT_MATRIX }}-v3
 
       - name: Install Depends
         run: brew install autoconf automake libtool pkg-config mbedtls
index d0f2af85385ef57c65be24250cd803fb7e10e6c9..16e673d02d6ec9f54db42a73828be117494a2d8e 100644 (file)
@@ -34,29 +34,17 @@ jobs:
 
     steps:
       - uses: actions/checkout@v2.0.0
-
-      - name: Cache MinGW
-        id: cache-mingw
-        uses: actions/cache@v1.1.2
-        with:
-          path: D:\a\_temp\msys
-          key: windows-mingw
-
       - name: Cache Build
-        uses: actions/cache@v1.1.2
+        uses: actions/cache@v2
         with:
           path: build
-          key: mingw-autotools-${{ matrix.EVENT_MATRIX }}-v3
-
-      - uses: numworks/setup-msys2@v1
-        if: steps.cache-mingw.outputs.cache-hit != 'true'
+          key: mingw-autotools-${{ matrix.EVENT_MATRIX }}-v4
+      - name: Setup MSYS2
+        uses: msys2/setup-msys2@v2
         with:
           msystem: MINGW64
-
-      - name: Install Dependes
-        if: steps.cache-mingw.outputs.cache-hit != 'true'
-        run: |
-          msys2do pacman -S --noconfirm mingw-w64-x86_64-gcc autoconf automake libtool mingw-w64-x86_64-openssl mingw-w64-x86_64-mbedtls
+          update: true
+          install: mingw-w64-x86_64-gcc autoconf automake libtool mingw-w64-x86_64-openssl mingw-w64-x86_64-mbedtls
 
       - name: Build And Test
         shell: powershell
@@ -103,29 +91,18 @@ jobs:
 
     steps:
       - uses: actions/checkout@v2.0.0
-
-      - name: Cache MinGW
-        id: cache-mingw-cmake
-        uses: actions/cache@v1.1.2
-        with:
-          path: D:\a\_temp\msys
-          key: windows-mingw-cmake
-
       - name: Cache Build
-        uses: actions/cache@v1.1.2
+        uses: actions/cache@v2
         with:
           path: build
-          key: mingw-cmake-${{ matrix.EVENT_MATRIX }}-v3
+          key: mingw-cmake-${{ matrix.EVENT_MATRIX }}-v4
 
-      - uses: numworks/setup-msys2@v1
-        if: steps.cache-mingw-cmake.outputs.cache-hit != 'true'
+      - name: Setup MSYS2
+        uses: msys2/setup-msys2@v2
         with:
           msystem: MINGW64
-
-      - name: Install Dependes
-        if: steps.cache-mingw-cmake.outputs.cache-hit != 'true'
-        run: |
-          msys2do pacman -S --noconfirm mingw-w64-x86_64-gcc mingw-w64-x86_64-openssl mingw-w64-x86_64-mbedtls
+          update: true
+          install: mingw-w64-x86_64-gcc mingw-w64-x86_64-openssl mingw-w64-x86_64-mbedtls  
 
       - name: Build And Test
         shell: powershell