Merge pull request #7 from netty/over-eager-cleaner
@chrisvest Capture build artifacts for failed builds
This commit is contained in:
commit
fcd97af4f9
6
.github/workflows/ci-workflow.yml
vendored
6
.github/workflows/ci-workflow.yml
vendored
@ -43,3 +43,9 @@ jobs:
|
||||
# Run the make script
|
||||
- name: Make build
|
||||
run: make build
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
if: ${{ failure() }}
|
||||
with:
|
||||
name: target
|
||||
path: target/ # or path/to/artifact
|
||||
|
4
Makefile
4
Makefile
@ -17,7 +17,7 @@ clean:
|
||||
|
||||
build: image
|
||||
docker create --name build-container netty-incubator-buffer:build
|
||||
docker start -a build-container
|
||||
docker wait build-container
|
||||
docker start -a build-container || (docker cp build-container:/home/build/target . && false)
|
||||
docker wait build-container || (docker cp build-container:/home/build/target . && false)
|
||||
docker cp build-container:/home/build/target .
|
||||
docker rm build-container
|
||||
|
@ -27,8 +27,7 @@ final class CompositeBuf extends RcSupport<Buf, CompositeBuf> implements Buf {
|
||||
* non-composite copy of the buffer.
|
||||
*/
|
||||
private static final int MAX_CAPACITY = Integer.MAX_VALUE - 8;
|
||||
private static final Drop<CompositeBuf>
|
||||
COMPOSITE_DROP = new Drop<CompositeBuf>() {
|
||||
private static final Drop<CompositeBuf> COMPOSITE_DROP = new Drop<CompositeBuf>() {
|
||||
@Override
|
||||
public void drop(CompositeBuf obj) {
|
||||
for (Buf buf : obj.bufs) {
|
||||
|
Loading…
Reference in New Issue
Block a user