Merge pull request #60 from netty/build-fixes
Make the build use less space on the CI host
This commit is contained in:
commit
83643a5dc9
5
.github/workflows/ci-workflow.yml
vendored
5
.github/workflows/ci-workflow.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
|||||||
- name: Create Cache Key
|
- name: Create Cache Key
|
||||||
id: cache-key
|
id: cache-key
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=key::$(/bin/date -u "+%Y%U")"
|
echo "::set-output name=key::$(/bin/date -u "+%Y%U-2")"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
@ -57,3 +57,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: artifacts
|
name: artifacts
|
||||||
path: target/
|
path: target/
|
||||||
|
# Make room for the docker layer caching to package up layers
|
||||||
|
- name: Cleanup
|
||||||
|
run: rm -fr *
|
||||||
|
@ -22,10 +22,11 @@ RUN curl https://downloads.apache.org/maven/maven-3/3.6.3/binaries/apache-maven-
|
|||||||
ENV PATH=/home/build/apache-maven-3.6.3/bin:$PATH
|
ENV PATH=/home/build/apache-maven-3.6.3/bin:$PATH
|
||||||
|
|
||||||
# Prepare a snapshot of Netty 5
|
# Prepare a snapshot of Netty 5
|
||||||
RUN git clone -b master https://github.com/netty/netty.git netty
|
RUN git clone --depth 1 -b master https://github.com/netty/netty.git netty \
|
||||||
WORKDIR /home/build/netty
|
&& cd netty \
|
||||||
RUN mvn install -DskipTests -T1C -B -am
|
&& mvn install -DskipTests -T1C -B -am \
|
||||||
WORKDIR /home/build
|
&& cd .. \
|
||||||
|
&& rm -fr netty
|
||||||
|
|
||||||
# Prepare our own build
|
# Prepare our own build
|
||||||
COPY pom.xml pom.xml
|
COPY pom.xml pom.xml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user