Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
ngtcp2
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kashyap Thimmaraju
ngtcp2
Commits
460b9f17
There was an error fetching the commit references. Please try again later.
Commit
460b9f17
authored
4 years ago
by
Tatsuhiro Tsujikawa
Browse files
Options
Downloads
Patches
Plain Diff
Add github actions build workflow
parent
00881d1e
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/build.yml
+77
-0
77 additions, 0 deletions
.github/workflows/build.yml
with
77 additions
and
0 deletions
.github/workflows/build.yml
0 → 100644
+
77
−
0
View file @
460b9f17
name
:
build
on
:
push
jobs
:
build
:
runs-on
:
${{ matrix.os }}
strategy
:
matrix
:
os
:
[
ubuntu-18.04
,
macos-10.15
]
compiler
:
[
gcc
,
clang
]
buildtool
:
[
autotools
,
cmake
]
steps
:
-
uses
:
actions/checkout@v1
-
name
:
Linux setup
if
:
runner.os == 'Linux'
run
:
|
sudo apt install \
g++-8 \
autoconf \
automake \
autotools-dev \
libtool \
pkg-config \
libcunit1-dev \
libssl-dev \
libev-dev \
cmake \
cmake-data
-
name
:
MacOS setup
if
:
runner.os == 'macOS'
run
:
|
brew install libev cunit autoconf automake pkg-config libtool
-
name
:
Setup clang
if
:
matrix.compiler == 'clang'
run
:
|
echo '::set-env name=CC::clang'
echo '::set-env name=CXX::clang++'
-
name
:
Setup gcc
if
:
runner.os == 'Linux' && matrix.compiler == 'gcc'
run
:
|
echo '::set-env name=CC::gcc-8'
echo '::set-env name=CXX::g++-8'
-
name
:
Build OpenSSL
run
:
|
./ci/build_openssl.sh
-
name
:
Build nghttp3
run
:
|
./ci/build_nghttp3.sh
-
name
:
Setup environment variables
run
:
|
PKG_CONFIG_PATH="$PWD/../openssl/build/lib/pkgconfig:$PWD/../nghttp3/build/lib/pkgconfig"
LDFLAGS="$EXTRA_LDFLAGS -Wl,-rpath,$PWD/../openssl/build/lib"
echo '::set-env name=PKG_CONFIG_PATH::'"$PKG_CONFIG_PATH"
echo '::set-env name=LDFLAGS::'"$LDFLAGS"
-
name
:
Configure autotools
if
:
matrix.buildtool == 'autotools'
run
:
|
autoreconf -i && ./configure --enable-werror $AUTOTOOLS_OPTS
-
name
:
Configure cmake
if
:
matrix.buildtool == 'cmake'
# Set CMAKE_LIBRARY_ARCHITECTURE to workaround failure to parse
# implicit link information from GCC 5
run
:
|
cmake $CMAKE_OPTS -DCMAKE_LIBRARY_ARCHITECTURE=x86_64-linux-gnu
-
name
:
Build ngtcp2
run
:
|
make
make check
-
name
:
Integration test
run
:
|
./ci/gen-certificate.sh
./examples/server localhost 4433 cert/server.key cert/server.crt &
./examples/client localhost 4433 https://localhost/
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment