Merge pull request #7 from netty/over-eager-cleaner

@chrisvest Capture build artifacts for failed builds
This commit is contained in:
Chris Vest 2020-12-01 14:58:06 +01:00 committed by GitHub
commit fcd97af4f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 4 deletions

View File

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

View File

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

View File

@ -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) {