]> granicus.if.org Git - libevent/commitdiff
ci: fix upload-artifacts for linux dist build
authorAzat Khuzhin <azat@libevent.org>
Tue, 23 Mar 2021 06:40:30 +0000 (09:40 +0300)
committerAzat Khuzhin <azat@libevent.org>
Tue, 23 Mar 2021 06:44:49 +0000 (09:44 +0300)
Fixes [1]:

    Run actions/upload-artifact@v1
    Error: Path does not exist /home/runner/work/libevent/libevent/build
    Error: Exit code 1 returned from process: file name '/home/runner/runners/2.277.1/bin/Runner.PluginHost', arguments 'action "GitHub.Runner.Plugins.Artifact.PublishArtifact, Runner.Plugins"'.

  [1]: https://github.com/libevent/libevent/runs/2172680722?check_suite_focus=true

.github/workflows/linux.yml

index 12bc67cc2cc69850d7286a57e41c3d8a967e8e94..db4a3036bcc77db386713e7f882ee5788b669f5b 100644 (file)
@@ -122,7 +122,7 @@ jobs:
           fi
 
       - uses: actions/upload-artifact@v1
-        if: failure()
+        if: failure() && matrix.EVENT_MATRIX != 'DIST'
         with:
           name: ${{ matrix.os }}-cmake-${{ matrix.EVENT_MATRIX }}-build
           path: build
@@ -155,7 +155,7 @@ jobs:
         uses: actions/cache@v2
         with:
           path: build
-          key: ${{ matrix.os }}-autotools-${{ matrix.EVENT_MATRIX }}-v2
+          key: ${{ matrix.os }}-autotools-${{ matrix.EVENT_MATRIX }}-v3
       - name: Cache Dist Build
         uses: actions/cache@v2
         with:
@@ -216,7 +216,7 @@ jobs:
           make -j $JOBS verify
 
       - uses: actions/upload-artifact@v1
-        if: failure()
+        if: failure() && matrix.EVENT_MATRIX != 'DIST'
         with:
           name: ${{ matrix.os }}-autotools-${{ matrix.EVENT_MATRIX }}-build
           path: build