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
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
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:
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