Commit 8019c4de authored by Sophie Wenzel-Teuber's avatar Sophie Wenzel-Teuber
Browse files

external/fizz: Update Fizz to v2021.10.11.00

parents cfbe41db 9ffa84de
on:
push:
tags:
# Only match TagIt tags, which always start with this prefix
- 'v20*'
name: TagIt
jobs:
build:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Archive project
id: archive_project
run: |
FILE_NAME=${GITHUB_REPOSITORY#*/}-${GITHUB_REF##*/}
git archive ${{ github.ref }} -o ${FILE_NAME}.zip
git archive ${{ github.ref }} -o ${FILE_NAME}.tar.gz
echo "::set-output name=file_name::${FILE_NAME}"
- name: Compute digests
id: compute_digests
run: |
echo "::set-output name=tgz_256::$(openssl dgst -sha256 ${{ steps.archive_project.outputs.file_name }}.tar.gz)"
echo "::set-output name=tgz_512::$(openssl dgst -sha512 ${{ steps.archive_project.outputs.file_name }}.tar.gz)"
echo "::set-output name=zip_256::$(openssl dgst -sha256 ${{ steps.archive_project.outputs.file_name }}.zip)"
echo "::set-output name=zip_512::$(openssl dgst -sha512 ${{ steps.archive_project.outputs.file_name }}.zip)"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: |
Automated release from TagIt
<details>
<summary>File Hashes</summary>
<ul>
<li>${{ steps.compute_digests.outputs.zip_256 }}</li>
<li>${{ steps.compute_digests.outputs.zip_512 }}</li>
<li>${{ steps.compute_digests.outputs.tgz_256 }}</li>
<li>${{ steps.compute_digests.outputs.tgz_512 }}</li>
</ul>
</details>
draft: false
prerelease: false
- name: Upload zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./${{ steps.archive_project.outputs.file_name }}.zip
asset_name: ${{ steps.archive_project.outputs.file_name }}.zip
asset_content_type: application/zip
- name: Upload tar.gz
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./${{ steps.archive_project.outputs.file_name }}.tar.gz
asset_name: ${{ steps.archive_project.outputs.file_name }}.tar.gz
asset_content_type: application/gzip
......@@ -15,79 +15,81 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Install system deps
run: sudo python3 build/fbcode_builder/getdeps.py --allow-system-packages install-system-deps --recursive fizz
- name: Fetch boost
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests boost
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests boost
- name: Fetch ninja
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests ninja
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests ninja
- name: Fetch cmake
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests cmake
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests cmake
- name: Fetch zstd
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests zstd
- name: Fetch double-conversion
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests double-conversion
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests double-conversion
- name: Fetch fmt
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests fmt
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests fmt
- name: Fetch gflags
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests gflags
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests gflags
- name: Fetch glog
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests glog
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests glog
- name: Fetch googletest
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests googletest
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests googletest
- name: Fetch libevent
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests libevent
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests libevent
- name: Fetch lz4
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests lz4
- name: Fetch snappy
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests snappy
- name: Fetch zstd
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests zstd
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests snappy
- name: Fetch folly
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests folly
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests folly
- name: Fetch autoconf
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests autoconf
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests autoconf
- name: Fetch automake
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests automake
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests automake
- name: Fetch libtool
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests libtool
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests libtool
- name: Fetch libsodium
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests libsodium
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests libsodium
- name: Build boost
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests boost
run: python3 build/fbcode_builder/getdeps.py build --no-tests boost
- name: Build ninja
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests ninja
run: python3 build/fbcode_builder/getdeps.py build --no-tests ninja
- name: Build cmake
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests cmake
run: python3 build/fbcode_builder/getdeps.py build --no-tests cmake
- name: Build zstd
run: python3 build/fbcode_builder/getdeps.py build --no-tests zstd
- name: Build double-conversion
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests double-conversion
run: python3 build/fbcode_builder/getdeps.py build --no-tests double-conversion
- name: Build fmt
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests fmt
run: python3 build/fbcode_builder/getdeps.py build --no-tests fmt
- name: Build gflags
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests gflags
run: python3 build/fbcode_builder/getdeps.py build --no-tests gflags
- name: Build glog
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests glog
run: python3 build/fbcode_builder/getdeps.py build --no-tests glog
- name: Build googletest
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests googletest
run: python3 build/fbcode_builder/getdeps.py build --no-tests googletest
- name: Build libevent
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests libevent
run: python3 build/fbcode_builder/getdeps.py build --no-tests libevent
- name: Build lz4
run: python3 build/fbcode_builder/getdeps.py build --no-tests lz4
- name: Build snappy
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests snappy
- name: Build zstd
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests zstd
run: python3 build/fbcode_builder/getdeps.py build --no-tests snappy
- name: Build folly
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests folly
run: python3 build/fbcode_builder/getdeps.py build --no-tests folly
- name: Build autoconf
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests autoconf
run: python3 build/fbcode_builder/getdeps.py build --no-tests autoconf
- name: Build automake
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests automake
run: python3 build/fbcode_builder/getdeps.py build --no-tests automake
- name: Build libtool
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests libtool
run: python3 build/fbcode_builder/getdeps.py build --no-tests libtool
- name: Build libsodium
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests libsodium
run: python3 build/fbcode_builder/getdeps.py build --no-tests libsodium
- name: Build fizz
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --src-dir=. fizz --project-install-prefix fizz:/usr/local
run: python3 build/fbcode_builder/getdeps.py build --src-dir=. fizz --project-install-prefix fizz:/usr/local
- name: Copy artifacts
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fixup-dyn-deps --strip --src-dir=. fizz _artifacts/linux --project-install-prefix fizz:/usr/local --final-install-prefix /usr/local
run: python3 build/fbcode_builder/getdeps.py fixup-dyn-deps --strip --src-dir=. fizz _artifacts/linux --project-install-prefix fizz:/usr/local --final-install-prefix /usr/local
- uses: actions/upload-artifact@master
with:
name: fizz
path: _artifacts
- name: Test fizz
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages test --src-dir=. fizz --project-install-prefix fizz:/usr/local
run: python3 build/fbcode_builder/getdeps.py test --src-dir=. fizz --project-install-prefix fizz:/usr/local
......@@ -15,83 +15,85 @@ jobs:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: Install system deps
run: sudo python3 build/fbcode_builder/getdeps.py --allow-system-packages install-system-deps --recursive fizz
- name: Fetch boost
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests boost
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests boost
- name: Fetch openssl
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests openssl
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests openssl
- name: Fetch ninja
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests ninja
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests ninja
- name: Fetch cmake
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests cmake
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests cmake
- name: Fetch zstd
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests zstd
- name: Fetch double-conversion
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests double-conversion
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests double-conversion
- name: Fetch fmt
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests fmt
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests fmt
- name: Fetch gflags
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests gflags
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests gflags
- name: Fetch glog
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests glog
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests glog
- name: Fetch googletest
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests googletest
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests googletest
- name: Fetch libevent
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests libevent
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests libevent
- name: Fetch lz4
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests lz4
- name: Fetch snappy
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests snappy
- name: Fetch zstd
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests zstd
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests snappy
- name: Fetch folly
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests folly
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests folly
- name: Fetch autoconf
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests autoconf
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests autoconf
- name: Fetch automake
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests automake
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests automake
- name: Fetch libtool
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests libtool
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests libtool
- name: Fetch libsodium
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests libsodium
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests libsodium
- name: Build boost
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests boost
run: python3 build/fbcode_builder/getdeps.py build --no-tests boost
- name: Build openssl
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests openssl
run: python3 build/fbcode_builder/getdeps.py build --no-tests openssl
- name: Build ninja
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests ninja
run: python3 build/fbcode_builder/getdeps.py build --no-tests ninja
- name: Build cmake
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests cmake
run: python3 build/fbcode_builder/getdeps.py build --no-tests cmake
- name: Build zstd
run: python3 build/fbcode_builder/getdeps.py build --no-tests zstd
- name: Build double-conversion
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests double-conversion
run: python3 build/fbcode_builder/getdeps.py build --no-tests double-conversion
- name: Build fmt
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests fmt
run: python3 build/fbcode_builder/getdeps.py build --no-tests fmt
- name: Build gflags
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests gflags
run: python3 build/fbcode_builder/getdeps.py build --no-tests gflags
- name: Build glog
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests glog
run: python3 build/fbcode_builder/getdeps.py build --no-tests glog
- name: Build googletest
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests googletest
run: python3 build/fbcode_builder/getdeps.py build --no-tests googletest
- name: Build libevent
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests libevent
run: python3 build/fbcode_builder/getdeps.py build --no-tests libevent
- name: Build lz4
run: python3 build/fbcode_builder/getdeps.py build --no-tests lz4
- name: Build snappy
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests snappy
- name: Build zstd
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests zstd
run: python3 build/fbcode_builder/getdeps.py build --no-tests snappy
- name: Build folly
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests folly
run: python3 build/fbcode_builder/getdeps.py build --no-tests folly
- name: Build autoconf
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests autoconf
run: python3 build/fbcode_builder/getdeps.py build --no-tests autoconf
- name: Build automake
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests automake
run: python3 build/fbcode_builder/getdeps.py build --no-tests automake
- name: Build libtool
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests libtool
run: python3 build/fbcode_builder/getdeps.py build --no-tests libtool
- name: Build libsodium
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests libsodium
run: python3 build/fbcode_builder/getdeps.py build --no-tests libsodium
- name: Build fizz
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --src-dir=. fizz --project-install-prefix fizz:/usr/local
run: python3 build/fbcode_builder/getdeps.py build --src-dir=. fizz --project-install-prefix fizz:/usr/local
- name: Copy artifacts
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fixup-dyn-deps --src-dir=. fizz _artifacts/mac --project-install-prefix fizz:/usr/local --final-install-prefix /usr/local
run: python3 build/fbcode_builder/getdeps.py fixup-dyn-deps --src-dir=. fizz _artifacts/mac --project-install-prefix fizz:/usr/local --final-install-prefix /usr/local
- uses: actions/upload-artifact@master
with:
name: fizz
path: _artifacts
- name: Test fizz
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages test --src-dir=. fizz --project-install-prefix fizz:/usr/local
run: python3 build/fbcode_builder/getdeps.py test --src-dir=. fizz --project-install-prefix fizz:/usr/local
......@@ -16,81 +16,85 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Export boost environment
run: "echo ::set-env name=BOOST_ROOT::%BOOST_ROOT_1_69_0%"
run: "echo BOOST_ROOT=%BOOST_ROOT_1_69_0% >> %GITHUB_ENV%"
shell: cmd
- name: Fix Git config
run: git config --system core.longpaths true
- name: Fetch libsodium
run: python build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests libsodium
run: python build/fbcode_builder/getdeps.py fetch --no-tests libsodium
- name: Fetch boost
run: python build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests boost
run: python build/fbcode_builder/getdeps.py fetch --no-tests boost
- name: Fetch ninja
run: python build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests ninja
run: python build/fbcode_builder/getdeps.py fetch --no-tests ninja
- name: Fetch cmake
run: python build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests cmake
run: python build/fbcode_builder/getdeps.py fetch --no-tests cmake
- name: Fetch zstd
run: python build/fbcode_builder/getdeps.py fetch --no-tests zstd
- name: Fetch double-conversion
run: python build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests double-conversion
run: python build/fbcode_builder/getdeps.py fetch --no-tests double-conversion
- name: Fetch fmt
run: python build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests fmt
run: python build/fbcode_builder/getdeps.py fetch --no-tests fmt
- name: Fetch gflags
run: python build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests gflags
run: python build/fbcode_builder/getdeps.py fetch --no-tests gflags
- name: Fetch glog
run: python build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests glog
run: python build/fbcode_builder/getdeps.py fetch --no-tests glog
- name: Fetch googletest
run: python build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests googletest
run: python build/fbcode_builder/getdeps.py fetch --no-tests googletest
- name: Fetch lz4
run: python build/fbcode_builder/getdeps.py fetch --no-tests lz4
- name: Fetch perl
run: python build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests perl
run: python build/fbcode_builder/getdeps.py fetch --no-tests perl
- name: Fetch openssl
run: python build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests openssl
run: python build/fbcode_builder/getdeps.py fetch --no-tests openssl
- name: Fetch snappy
run: python build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests snappy
run: python build/fbcode_builder/getdeps.py fetch --no-tests snappy
- name: Fetch zlib
run: python build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests zlib
- name: Fetch zstd
run: python build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests zstd
run: python build/fbcode_builder/getdeps.py fetch --no-tests zlib
- name: Fetch libevent
run: python build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests libevent
run: python build/fbcode_builder/getdeps.py fetch --no-tests libevent
- name: Fetch folly
run: python build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests folly
run: python build/fbcode_builder/getdeps.py fetch --no-tests folly
- name: Build libsodium
run: python build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests libsodium
run: python build/fbcode_builder/getdeps.py build --no-tests libsodium
- name: Build boost
run: python build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests boost
run: python build/fbcode_builder/getdeps.py build --no-tests boost
- name: Build ninja
run: python build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests ninja
run: python build/fbcode_builder/getdeps.py build --no-tests ninja
- name: Build cmake
run: python build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests cmake
run: python build/fbcode_builder/getdeps.py build --no-tests cmake
- name: Build zstd
run: python build/fbcode_builder/getdeps.py build --no-tests zstd
- name: Build double-conversion
run: python build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests double-conversion
run: python build/fbcode_builder/getdeps.py build --no-tests double-conversion
- name: Build fmt
run: python build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests fmt
run: python build/fbcode_builder/getdeps.py build --no-tests fmt
- name: Build gflags
run: python build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests gflags
run: python build/fbcode_builder/getdeps.py build --no-tests gflags
- name: Build glog
run: python build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests glog
run: python build/fbcode_builder/getdeps.py build --no-tests glog
- name: Build googletest
run: python build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests googletest
run: python build/fbcode_builder/getdeps.py build --no-tests googletest
- name: Build lz4
run: python build/fbcode_builder/getdeps.py build --no-tests lz4
- name: Build perl
run: python build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests perl
run: python build/fbcode_builder/getdeps.py build --no-tests perl
- name: Build openssl
run: python build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests openssl
run: python build/fbcode_builder/getdeps.py build --no-tests openssl
- name: Build snappy
run: python build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests snappy
run: python build/fbcode_builder/getdeps.py build --no-tests snappy
- name: Build zlib
run: python build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests zlib
- name: Build zstd
run: python build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests zstd
run: python build/fbcode_builder/getdeps.py build --no-tests zlib
- name: Build libevent
run: python build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests libevent
run: python build/fbcode_builder/getdeps.py build --no-tests libevent
- name: Build folly
run: python build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests folly
run: python build/fbcode_builder/getdeps.py build --no-tests folly
- name: Build fizz
run: python build/fbcode_builder/getdeps.py --allow-system-packages build --src-dir=. fizz
run: python build/fbcode_builder/getdeps.py build --src-dir=. fizz
- name: Copy artifacts
run: python build/fbcode_builder/getdeps.py --allow-system-packages fixup-dyn-deps --src-dir=. fizz _artifacts/windows --final-install-prefix /usr/local
run: python build/fbcode_builder/getdeps.py fixup-dyn-deps --src-dir=. fizz _artifacts/windows --final-install-prefix /usr/local
- uses: actions/upload-artifact@master
with:
name: fizz
path: _artifacts
- name: Test fizz
run: python build/fbcode_builder/getdeps.py --allow-system-packages test --src-dir=. fizz
run: python build/fbcode_builder/getdeps.py test --src-dir=. fizz
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Facebook projects that use `fbcode_builder` for continuous integration
# share this Travis configuration to run builds via Docker.
......
......@@ -8,7 +8,7 @@ The code of conduct is described in [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md).
## Pull Requests
We actively welcome your pull requests.
1. Fork the repo and create your branch from `master`.
1. Fork the repo and create your branch from 'main`.
2. If you've added code that should be tested, add tests.
3. If you've changed APIs, update the documentation.
4. Ensure the test suite passes.
......
......@@ -2,8 +2,9 @@
<img width="500" height="216" alt="Fizz" src="logo2x.png">
</p>
[![Travis Build Status](https://api.travis-ci.org/facebookincubator/fizz.svg?branch=master)](https://travis-ci.org/facebookincubator/fizz)
[![CI Status](https://github.com/facebookincubator/fizz/workflows/CI/badge.svg?branch=master)](https://github.com/facebookincubator/fizz/actions?workflow=CI)
![linux](https://github.com/facebookincubator/fizz/workflows/linux/badge.svg?branch=main)
![mac](https://github.com/facebookincubator/fizz/workflows/mac/badge.svg?branch=main)
![windows](https://github.com/facebookincubator/fizz/workflows/windows/badge.svg?branch=main)
Fizz is a TLS 1.3 implementation.
......@@ -12,7 +13,7 @@ final specification), and 23. All major handshake modes are supported, including
PSK resumption, early data, client authentication, and HelloRetryRequest.
More background and details are available on the
[Facebook Code Blog](https://code.fb.com/networking-traffic/deploying-tls-1-3-at-scale-with-fizz-a-performant-open-source-tls-library/).
[Facebook Code Blog](https://engineering.fb.com/2018/08/06/security/fizz/).
## Dependencies
......@@ -82,13 +83,13 @@ supported by Fizz. The binary is called `fizz` and it has similar usage to the
`openssl` or `bssl` commands.
For example, to start a TLS server on port 443 with a specified cert:
```
```sh
fizz server -accept 443 -cert foo.pem -key foo.key
```
Then, on the same host, you can connect with:
```
```sh
fizz client -connect localhost:443
```
......@@ -105,7 +106,7 @@ To begin, you should install the dependencies we need for build. This largely
consists of [folly](https://github.com/facebook/folly)'s dependencies, as well as
[libsodium](https://github.com/jedisct1/libsodium).
```
```sh
sudo apt-get install \
g++ \
cmake \
......@@ -129,7 +130,7 @@ sudo apt-get install \
Then, build and install folly:
```
```sh
git clone https://github.com/facebook/folly
mkdir folly/build_ && cd folly/build_
cmake ..
......@@ -139,7 +140,7 @@ sudo make install
And lastly, build and install fizz.
```
```sh
cd ../..
git clone https://github.com/facebookincubator/fizz
mkdir fizz/build_ && cd fizz/build_
......@@ -161,7 +162,7 @@ the homebrew [website](https://brew.sh/).
It will install and link the required dependencies and also build folly.
This may take several minutes the first time.
```
```sh
cd fizz
./mac-build.sh
```
......@@ -173,7 +174,7 @@ Running it again will be faster and only rebuild `fizz`.
You can also install both `fizz` as well as `folly` to a custom directory
using the build script, by supplying an `INSTALL_PREFIX` env var.
```
```sh
INSTALL_PREFIX=/usr/local ./mac-build.sh
```
......@@ -197,5 +198,3 @@ https://www.facebook.com/whitehat
Facebook's security team will triage your report and determine whether or not is
it eligible for a bounty under our program.
Subproject commit 2c9b2aadbc0801ee3309934f9e37c8a01ed51d20
Subproject commit c47d0c778950043cbbc6af7fde616e9aeaf054ca
......@@ -6,6 +6,4 @@
# to these shared compiler settings in order to avoid accidentally
# breaking a build in another project!
set(CMAKE_CXX_FLAGS_COMMON "-g -Wall -Wextra -Wno-deprecated -Wno-deprecated-declarations")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${CMAKE_CXX_FLAGS_COMMON}")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${CMAKE_CXX_FLAGS_COMMON} -O3")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -Wextra -Wno-deprecated -Wno-deprecated-declarations")
......@@ -127,8 +127,14 @@ function(add_fbthrift_cpp_library LIB_NAME THRIFT_FILE)
)
# Now emit the library rule to compile the sources
if (BUILD_SHARED_LIBS)
set(LIB_TYPE SHARED)
else ()
set(LIB_TYPE STATIC)
endif ()
add_library(
"${LIB_NAME}" STATIC
"${LIB_NAME}" ${LIB_TYPE}
${generated_sources}
)
......
......@@ -41,6 +41,16 @@ if (gflags_FOUND)
# Re-export the config-specified libs with our local names
set(LIBGFLAGS_LIBRARY ${gflags_LIBRARIES})
set(LIBGFLAGS_INCLUDE_DIR ${gflags_INCLUDE_DIR})
if(NOT EXISTS "${gflags_INCLUDE_DIR}")
# The gflags-devel RPM on recent RedHat-based systems is somewhat broken.
# RedHat symlinks /lib64 to /usr/lib64, and this breaks some of the
# relative path computation performed in gflags-config.cmake. The package
# config file ends up being found via /lib64, but the relative path
# computation it does only works if it was found in /usr/lib64.
# If gflags_INCLUDE_DIR does not actually exist, simply default it to
# /usr/include on these systems.
set(LIBGFLAGS_INCLUDE_DIR "/usr/include")
endif()
set(LIBGFLAGS_FOUND ${gflags_FOUND})
# cmake module compat
set(GFLAGS_FOUND ${gflags_FOUND})
......@@ -76,6 +86,20 @@ endif()