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 build for windows (#615) · netty/netty-tcnative@6d13a9e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • ci-build.yml
    • ci-deploy.yml
    • ci-pr.yml
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
+33Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,36 @@ jobs:
5353
name: build-${{ matrix.setup }}-target
5454
path: "**/target/"
5555

56+
57+
build-windows:
58+
runs-on: windows-2016
59+
name: windows-86_64
60+
steps:
61+
- uses: actions/checkout@v2
62+
63+
- name: Set up JDK 8
64+
uses: actions/setup-java@v1
65+
with:
66+
java-version: 8
67+
68+
- name: Add msbuild to PATH
69+
uses: microsoft/[email protected]
70+
71+
- name: Configuring Developer Command Prompt
72+
uses: ilammy/msvc-dev-cmd@v1
73+
with:
74+
arch: x86_amd64
75+
76+
- name: Install tools
77+
uses: crazy-max/ghaction-chocolatey@v1
78+
with:
79+
args: install ninja nasm
80+
81+
- name: Build netty-tcnative-boringssl-static
82+
run: mvn --file pom.xml -pl boringssl-static clean package
83+
84+
- uses: actions/upload-artifact@v2
85+
if: ${{ failure() }}
86+
with:
87+
name: build-windows-target
88+
path: "**/target/"
Collapse file

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

Copy file name to clipboardExpand all lines: .github/workflows/ci-deploy.yml
+48-2Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,48 @@ jobs:
5757
path: ~/local-staging
5858
if-no-files-found: error
5959

60+
61+
stage-snapshot-windows:
62+
runs-on: windows-2016
63+
name: windows-86_64
64+
steps:
65+
- uses: actions/checkout@v2
66+
67+
- name: Create local staging directory
68+
run: mkdir local-staging
69+
70+
- name: Set up JDK 8
71+
uses: actions/setup-java@v1
72+
with:
73+
java-version: 8
74+
75+
- name: Add msbuild to PATH
76+
uses: microsoft/[email protected]
77+
78+
- name: Configuring Developer Command Prompt
79+
uses: ilammy/msvc-dev-cmd@v1
80+
with:
81+
arch: x86_amd64
82+
83+
- name: Install tools
84+
uses: crazy-max/ghaction-chocolatey@v1
85+
with:
86+
args: install ninja nasm
87+
88+
- name: Build netty-tcnative-boringssl-static
89+
run: mvn --file pom.xml -pl boringssl-static clean package org.sonatype.plugins:nexus-staging-maven-plugin:deploy -DaltStagingDirectory=local-staging -DskipRemoteStaging=true -DskipTests=true
90+
91+
- name: Upload local staging directory
92+
uses: actions/upload-artifact@v2
93+
with:
94+
name: windows-x86_64-local-staging
95+
path: local-staging
96+
if-no-files-found: error
97+
6098
deploy-staged-snapshots:
6199
runs-on: ubuntu-18.04
62100
# Wait until we have staged everything
63-
needs: stage-snapshot
101+
needs: [stage-snapshot, stage-snapshot-windows]
64102
steps:
65103
- uses: actions/checkout@v2
66104

@@ -86,7 +124,13 @@ jobs:
86124
echo "LOCAL_STAGING_DIR=$HOME/local-staging" >> $GITHUB_ENV
87125
88126
# Hardcode the staging artifacts that need to be downloaded.
89-
# These must match the matrix setups. There is currently no way to pull this out of the config.
127+
# These must match the matrix setups and windows build. There is currently no way to pull this out of the config.
128+
- name: Download windows_x86_64 staging directory
129+
uses: actions/download-artifact@v2
130+
with:
131+
name: windows-x86_64-local-staging
132+
path: ~/windows-x86_64-local-staging
133+
90134
- name: Download centos7-aarch64 staging directory
91135
uses: actions/download-artifact@v2
92136
with:
@@ -108,6 +152,8 @@ jobs:
108152
- name: Merge staging repositories
109153
run: |
110154
mkdir -p ~/local-staging/deferred
155+
cat ~/windows-x86_64-local-staging/deferred/.index >> ~/local-staging/deferred/.index
156+
cp -r ~/windows-x86_64-local-staging/deferred/* ~/local-staging/deferred/
111157
cat ~/centos7-aarch64-local-staging/deferred/.index >> ~/local-staging/deferred/.index
112158
cp -r ~/centos7-aarch64-local-staging/deferred/* ~/local-staging/deferred/
113159
cat ~/debian7-x86_64-local-staging/deferred/.index >> ~/local-staging/deferred/.index
Collapse file

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

Copy file name to clipboardExpand all lines: .github/workflows/ci-pr.yml
+34-1Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,38 @@ jobs:
4747
- uses: actions/upload-artifact@v2
4848
if: ${{ failure() }}
4949
with:
50-
name: pr-${{ matrix.setup }}-target
50+
name: build-pr-${{ matrix.setup }}-target
51+
path: "**/target/"
52+
53+
build-pr-windows:
54+
runs-on: windows-2016
55+
name: windows-86_64
56+
steps:
57+
- uses: actions/checkout@v2
58+
59+
- name: Set up JDK 8
60+
uses: actions/setup-java@v1
61+
with:
62+
java-version: 8
63+
64+
- name: Add msbuild to PATH
65+
uses: microsoft/[email protected]
66+
67+
- name: Configuring Developer Command Prompt
68+
uses: ilammy/msvc-dev-cmd@v1
69+
with:
70+
arch: x86_amd64
71+
72+
- name: Install tools
73+
uses: crazy-max/ghaction-chocolatey@v1
74+
with:
75+
args: install ninja nasm
76+
77+
- name: Build netty-tcnative-boringssl-static
78+
run: mvn --file pom.xml -pl boringssl-static clean package
79+
80+
- uses: actions/upload-artifact@v2
81+
if: ${{ failure() }}
82+
with:
83+
name: build-pr-windows-target
5184
path: "**/target/"

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.