GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add jobs for debian and cross compiling (#599) · netty/netty-tcnative@08cc804

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • ci-build.yml
    • ci-deploy.yml
  • docker
    • Dockerfile.cross_compile_aarch64
    • Dockerfile.debian
    • docker-compose.arch.yaml
    • docker-compose.centos-7.yaml
    • docker-compose.debian-7.18.yaml
    • docker-compose.debian.yaml
    • docker-compose.opensuse.yaml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/ci-build.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/ci-build.yml
+51Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,54 @@ jobs:
3737
with:
3838
name: target
3939
path: target/ # or path/to/artifact
40+
41+
build-debian7-x86_64:
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@v2
45+
46+
# Enable caching of Docker layers
47+
- uses: satackey/[email protected]
48+
continue-on-error: true
49+
with:
50+
key: build-debian7-x86_64-docker-cache-{hash}
51+
restore-keys: |
52+
build-debian7-x86_64-docker-cache-
53+
54+
- name: Build docker image
55+
run: docker-compose -f docker/docker-compose.debian.yaml -f docker/docker-compose.debian-7.18.yaml build
56+
57+
- name: Build project
58+
run: docker-compose -f docker/docker-compose.debian.yaml -f docker/docker-compose.debian-7.18.yaml run build-dynamic-only
59+
60+
- uses: actions/upload-artifact@v2
61+
if: ${{ failure() }}
62+
with:
63+
name: target
64+
path: target/ # or path/to/artifact
65+
66+
build-centos7-aarch64:
67+
runs-on: ubuntu-latest
68+
steps:
69+
- uses: actions/checkout@v2
70+
71+
# Enable caching of Docker layers
72+
- uses: satackey/[email protected]
73+
continue-on-error: true
74+
with:
75+
key: build-centos7-aarch64-docker-cache-{hash}
76+
restore-keys: |
77+
build-centos7-aarch64-docker-cache-
78+
79+
- name: Build docker image
80+
run: docker-compose -f docker/docker-compose.centos-7.yaml build
81+
82+
- name: Build project
83+
run: docker-compose -f docker/docker-compose.centos-7.yaml run cross-compile-aarch64-build
84+
85+
- uses: actions/upload-artifact@v2
86+
if: ${{ failure() }}
87+
with:
88+
name: target_aarch64
89+
path: target/ # or path/to/artifact
90+
Collapse file

‎.github/workflows/ci-deploy.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/ci-deploy.yml
+69Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,72 @@ jobs:
4444
with:
4545
name: target
4646
path: target/ # or path/to/artifact
47+
48+
deploy-debian7-x86_64:
49+
runs-on: ubuntu-latest
50+
steps:
51+
- uses: s4u/[email protected]
52+
with:
53+
servers: |
54+
[{
55+
"id": "sonatype-nexus-snapshots",
56+
"username": "${{ secrets.SONATYPE_USERNAME }}",
57+
"password": "${{ secrets.SONATYPE_PASSWORD }}"
58+
}]
59+
60+
- uses: actions/checkout@v2
61+
62+
# Enable caching of Docker layers
63+
- uses: satackey/[email protected]
64+
continue-on-error: true
65+
with:
66+
key: deploy-debian7-x86_64-docker-cache-{hash}
67+
restore-keys: |
68+
deploy-debian7-x86_64-docker-cache-
69+
70+
- name: Build docker image
71+
run: docker-compose -f docker/docker-compose.debian.yaml -f docker/docker-compose.debian-7.18.yaml build
72+
73+
# only deploy the dynamic artifact as the static is deployed via centos.
74+
- name: Deploy project snapshot to sonatype
75+
run: docker-compose -f docker/docker-compose.debian.yaml -f docker/docker-compose.debian-7.18.yaml run deploy-dynamic-only
76+
77+
- uses: actions/upload-artifact@v2
78+
if: ${{ failure() }}
79+
with:
80+
name: target
81+
path: target/ # or path/to/artifact
82+
83+
deploy-centos7-aarch64:
84+
runs-on: ubuntu-latest
85+
steps:
86+
- uses: s4u/[email protected]
87+
with:
88+
servers: |
89+
[{
90+
"id": "sonatype-nexus-snapshots",
91+
"username": "${{ secrets.SONATYPE_USERNAME }}",
92+
"password": "${{ secrets.SONATYPE_PASSWORD }}"
93+
}]
94+
95+
- uses: actions/checkout@v2
96+
97+
# Enable caching of Docker layers
98+
- uses: satackey/[email protected]
99+
continue-on-error: true
100+
with:
101+
key: deploy-centos7-aarch64-docker-cache-{hash}
102+
restore-keys: |
103+
deploy-centos7-aarch64-docker-cache-
104+
105+
- name: Build docker image
106+
run: docker-compose -f docker/docker-compose.centos-7.yaml build
107+
108+
- name: Deploy project snapshot to sonatype
109+
run: docker-compose -f docker/docker-compose.centos-7.yaml run cross-compile-aarch64-deploy
110+
111+
- uses: actions/upload-artifact@v2
112+
if: ${{ failure() }}
113+
with:
114+
name: target_aarch64
115+
path: target/ # or path/to/artifact
Collapse file

‎docker/Dockerfile.cross_compile_aarch64‎

Copy file name to clipboardExpand all lines: docker/Dockerfile.cross_compile_aarch64
+27Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ ARG gcc_version=4.9-2016.02
44
ARG openssl_version=1_1_1d
55
ARG apr_version=1.6.5
66

7+
ENV SOURCE_DIR /root/source
8+
ENV WORKSPACE_DIR /root/workspace
9+
ENV PROJECT_DIR /root/workspace/project
710
ENV GCC_VERSION $gcc_version
811
ENV OPENSSL_VERSION $openssl_version
912
ENV APR_VERSION $apr_version
@@ -63,3 +66,27 @@ RUN set -x && \
6366
./Configure linux-aarch64 --cross-compile-prefix=aarch64-linux-gnu- --prefix=/opt/openssl-$OPENSSL_VERSION-share shared && \
6467
make && make install && \
6568
popd
69+
70+
WORKDIR /opt
71+
RUN curl https://downloads.apache.org/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz | tar -xz
72+
RUN echo 'PATH=/opt/apache-maven-3.6.3/bin/:$PATH' >> ~/.bashrc
73+
74+
# Prepare our own build
75+
ENV PATH /opt/apache-maven-3.6.3/bin/:$PATH
76+
77+
RUN mkdir $WORKSPACE_DIR
78+
RUN mkdir $PROJECT_DIR
79+
WORKDIR $PROJECT_DIR
80+
81+
# Copy all the pom.xml files so we can download dependencies etc.
82+
COPY ./boringssl-static/pom.xml $PROJECT_DIR/boringssl-static/pom.xml
83+
COPY ./libressl-static/pom.xml $PROJECT_DIR/libressl-static/pom.xml
84+
COPY ./openssl-dynamic/pom.xml $PROJECT_DIR/openssl-dynamic/pom.xml
85+
COPY ./openssl-static/pom.xml $PROJECT_DIR/openssl-static/pom.xml
86+
COPY ./pom.xml $PROJECT_DIR/pom.xml
87+
88+
# Download dependencies
89+
RUN /bin/bash -c 'source $HOME/.bashrc && mvn dependency:go-offline checkstyle:check animal-sniffer:check surefire:test -ntp'
90+
91+
# Pre-build boringssl
92+
RUN /bin/bash -c 'source $HOME/.bashrc && mvn -Plinux-aarch64 -pl boringssl-static scm:checkout@get-boringssl antrun:run@build-boringssl -DboringsslSourceDir=$WORKSPACE_DIR/boringssl-source -DboringsslHome=$WORKSPACE_DIR/boringssl -DlinkStatic=true'
Collapse file

‎docker/Dockerfile.debian‎

Copy file name to clipboardExpand all lines: docker/Dockerfile.debian
+25Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ FROM debian:$debian_version
44
ARG debian_version
55

66
ENV SOURCE_DIR /root/source
7+
ENV WORKSPACE_DIR /root/workspace
8+
ENV PROJECT_DIR /root/workspace/project
79
ENV CMAKE_VERSION_BASE 3.8
810
ENV CMAKE_VERSION $CMAKE_VERSION_BASE.2
911
ENV NINJA_VERSION 1.7.2
@@ -61,3 +63,26 @@ RUN curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | JABBA_COMMA
6163

6264
RUN echo 'export JAVA_HOME="/jdk"' >> ~/.bashrc
6365
RUN echo 'PATH=/jdk/bin:$PATH' >> ~/.bashrc
66+
67+
68+
WORKDIR /opt
69+
RUN curl https://downloads.apache.org/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz | tar -xz
70+
RUN echo 'PATH=/opt/apache-maven-3.6.3/bin/:$PATH' >> ~/.bashrc
71+
72+
# Prepare our own build
73+
ENV PATH /opt/apache-maven-3.6.3/bin/:$PATH
74+
ENV JAVA_HOME /jdk/
75+
76+
RUN mkdir $WORKSPACE_DIR
77+
RUN mkdir $PROJECT_DIR
78+
WORKDIR $PROJECT_DIR
79+
80+
# Copy all the pom.xml files so we can download dependencies etc.
81+
COPY ./boringssl-static/pom.xml $PROJECT_DIR/boringssl-static/pom.xml
82+
COPY ./libressl-static/pom.xml $PROJECT_DIR/libressl-static/pom.xml
83+
COPY ./openssl-dynamic/pom.xml $PROJECT_DIR/openssl-dynamic/pom.xml
84+
COPY ./openssl-static/pom.xml $PROJECT_DIR/openssl-static/pom.xml
85+
COPY ./pom.xml $PROJECT_DIR/pom.xml
86+
87+
# Download dependencies
88+
RUN /bin/bash -c 'source $HOME/.bashrc && mvn dependency:go-offline checkstyle:check animal-sniffer:check surefire:test -ntp'
Collapse file

‎docker/docker-compose.arch.yaml‎

Copy file name to clipboardExpand all lines: docker/docker-compose.arch.yaml
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ services:
55
runtime-setup:
66
image: netty-tcnative-arch:default
77
build:
8-
context: .
9-
dockerfile: Dockerfile.arch
8+
context: ../
9+
dockerfile: docker/Dockerfile.arch
1010

1111
common: &common
1212
image: netty-tcnative-arch:default
Collapse file

‎docker/docker-compose.centos-7.yaml‎

Copy file name to clipboardExpand all lines: docker/docker-compose.centos-7.yaml
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,8 @@ services:
3636

3737
cross-compile-aarch64-build:
3838
<<: *cross-compile-aarch64-common
39-
command: /bin/bash -cl "pushd ./openssl-dynamic && ../mvnw clean install -Plinux-aarch64 -DaprArmHome=/opt/apr-$$APR_VERSION-share -DopensslArmHome=/opt/openssl-$$OPENSSL_VERSION-share -DskipTests && popd && pushd ./boringssl-static && ../mvnw clean install -Plinux-aarch64 -DaprArmHome=/opt/apr-$$APR_VERSION-static -DskipTests && popd"
39+
command: /bin/bash -cl "pushd ./openssl-dynamic && mvn clean package -Plinux-aarch64 -DaprArmHome=/opt/apr-$$APR_VERSION-share -DopensslArmHome=/opt/openssl-$$OPENSSL_VERSION-share -DskipTests && popd && pushd ./boringssl-static && mvn clean package -Plinux-aarch64 -DaprArmHome=/opt/apr-$$APR_VERSION-static -DboringsslSourceDir=/root/workspace/boringssl-source -DboringsslHome=/root/workspace/boringssl -DskipTests && popd"
40+
41+
cross-compile-aarch64-deploy:
42+
<<: *cross-compile-aarch64-common
43+
command: /bin/bash -cl "pushd ./openssl-dynamic && mvn clean deploy -Plinux-aarch64 -DaprArmHome=/opt/apr-$$APR_VERSION-share -DopensslArmHome=/opt/openssl-$$OPENSSL_VERSION-share -DskipTests && popd && pushd ./boringssl-static && mvn clean deploy -Plinux-aarch64 -DaprArmHome=/opt/apr-$$APR_VERSION-static -DboringsslSourceDir=/root/workspace/boringssl-source -DboringsslHome=/root/workspace/boringssl -DskipTests && popd"
Collapse file

‎docker/docker-compose.debian-7.18.yaml‎

Copy file name to clipboardExpand all lines: docker/docker-compose.debian-7.18.yaml
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ services:
99
debian_version : "7"
1010
java_version : "[email protected]"
1111

12+
deploy-dynamic-only:
13+
image: netty-tcnative-debian:debian-7-1.8
14+
15+
build-dynamic-only:
16+
image: netty-tcnative-debian:debian-7-1.8
17+
1218
build:
1319
image: netty-tcnative-debian:debian-7-1.8
1420

Collapse file

‎docker/docker-compose.debian.yaml‎

Copy file name to clipboardExpand all lines: docker/docker-compose.debian.yaml
+11-3Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ services:
55
runtime-setup:
66
image: netty-tcnative-debian:default
77
build:
8-
context: .
9-
dockerfile: Dockerfile.debian
8+
context: ..
9+
dockerfile: docker/Dockerfile.debian
1010

1111
common: &common
1212
image: netty-tcnative-debian:default
@@ -19,7 +19,15 @@ services:
1919

2020
build:
2121
<<: *common
22-
command: /bin/bash -cl "./mvnw clean package"
22+
command: /bin/bash -cl "mvn clean package"
23+
24+
deploy-dynamic-only:
25+
<<: *common
26+
command: /bin/bash -cl "mvn -pl openssl-dynamic clean deploy -DskipTests=true"
27+
28+
build-dynamic-only:
29+
<<: *common
30+
command: /bin/bash -cl "mvn -pl openssl-dynamic clean package"
2331

2432
shell:
2533
<<: *common
Collapse file

‎docker/docker-compose.opensuse.yaml‎

Copy file name to clipboardExpand all lines: docker/docker-compose.opensuse.yaml
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ services:
55
runtime-setup:
66
image: netty-tcnative-opensuse:default
77
build:
8-
context: .
9-
dockerfile: Dockerfile.opensuse
8+
context: ../
9+
dockerfile: docker/Dockerfile.opensuse
1010

1111
common: &common
1212
image: netty-tcnative-opensuse:default

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.