Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Nov 22, 2023
1 parent d68aeb9 commit c6ceb31
Showing 1 changed file with 18 additions and 49 deletions.
67 changes: 18 additions & 49 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
check:
name: Neqo Build and Test
strategy:
fail-fast: false
# fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest] # windows-latest,
rust-toolchain: [stable] # , 1.65.0
Expand All @@ -18,36 +18,9 @@ jobs:
if: runner.os == 'Linux'
env:
DEBIAN_FRONTEND: noninteractive
llvm_version: 14
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
clang \
coreutils \
curl \
git \
gyp \
libclang-dev \
libssl-dev \
lld \
llvm-"$llvm_version" \
llvm-"$llvm_version"-runtime \
make \
mercurial \
ninja-build \
pkg-config \
ssh \
zlib1g-dev \
--no-install-recommends
[ -d "/usr/lib/llvm-$llvm_version/lib" ]
echo "LIBCLANG_DIR=/usr/lib/llvm-$llvm_version/lib" >> "$GITHUB_ENV" # run: |
# # sudo apt-get update
# sudo apt-get install -y --no-install-recommends gyp mercurial ninja-build
# - name: Install Dependencies (Windows)
# if: runner.os == 'Windows'
# run: |
# echo TBD
sudo apt-get install -y --no-install-recommends gyp mercurial ninja-build
- name: Install Dependencies (MacOS)
if: runner.os == 'MacOS'
run: |
Expand All @@ -60,37 +33,33 @@ jobs:
with:
toolchain: ${{ matrix.rust-toolchain }}
components: rustfmt, clippy
cache: false

- name: Checkout
uses: actions/checkout@v4

# This step might be removed if the distro included a recent enough
# version of NSS. Ubuntu 20.04 only has 3.49, which is far too old.
# (neqo-crypto/build.rs would also need to query pkg-config to get the
# right build flags rather than building NSS.)
- name: Fetch NSS and NSPR
run: |
hg clone https://hg.mozilla.org/projects/nspr "$NSPR_DIR"
git clone --depth=1 https://github.com/nss-dev/nss "$NSS_DIR"
echo "NSS_DIR=$NSS_DIR" >> "$GITHUB_ENV"
echo "NSPR_DIR=$NSPR_DIR" >> "$GITHUB_ENV"
env:
NSS_DIR: ${{ github.workspace }}/nss
NSPR_DIR: ${{ github.workspace }}/nspr
# # This step might be removed if the distro included a recent enough
# # version of NSS. Ubuntu 20.04 only has 3.49, which is far too old.
# # (neqo-crypto/build.rs would also need to query pkg-config to get the
# # right build flags rather than building NSS.)
# - name: Fetch NSS and NSPR
# run: |
# hg clone https://hg.mozilla.org/projects/nspr "$NSPR_DIR"
# git clone --depth=1 https://github.com/nss-dev/nss "$NSS_DIR"
# echo "NSS_DIR=$NSS_DIR" >> "$GITHUB_ENV"
# echo "NSPR_DIR=$NSPR_DIR" >> "$GITHUB_ENV"
# env:
# NSS_DIR: ${{ github.workspace }}/nss
# NSPR_DIR: ${{ github.workspace }}/nspr

- name: Build
run: cargo +${{ matrix.rust-toolchain }} build -v --tests
env:
DYLD_LIBRARY_PATH: ${{ github.workspace }}/dist/Debug/lib
LD_LIBRARY_PATH: ${{ github.workspace }}/dist/Debug/lib
RUST_BACKTRACE: 1
RUST_LOG: neqo=debug

- name: Run Tests
run: cargo +${{ matrix.rust-toolchain }} test -v
env:
DYLD_LIBRARY_PATH: ${{ github.workspace }}/dist/Debug/lib
LD_LIBRARY_PATH: ${{ github.workspace }}/dist/Debug/lib
# DYLD_LIBRARY_PATH: ${{ github.workspace }}/dist/Debug/lib
# LD_LIBRARY_PATH: ${{ github.workspace }}/dist/Debug/lib
RUST_BACKTRACE: 1
RUST_LOG: neqo=debug

Expand Down

0 comments on commit c6ceb31

Please sign in to comment.