Force gzip/deflate compression binance common api as the result is compressed #1955
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ubuntu | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
ubuntu-build: | |
name: Build on Ubuntu | |
runs-on: ubuntu-24.04 | |
strategy: | |
matrix: | |
compiler: [g++-13, clang++-18] | |
buildmode: [Debug, Release] | |
steps: | |
- name: Checkout repository code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install cmake libssl-dev libcurl4-openssl-dev ninja-build -y --no-install-recommends | |
echo "CC=$(echo ${{matrix.compiler}} | sed -e 's/^g++/gcc/' | sed 's/+//g')" >> $GITHUB_ENV | |
- name: Install clang | |
run: | | |
CLANG_VERSION=$(echo ${{matrix.compiler}} | cut -d- -f2) | |
wget https://apt.llvm.org/llvm.sh | |
chmod +x llvm.sh | |
sudo ./llvm.sh ${CLANG_VERSION} | |
if: startsWith(matrix.compiler, 'clang') | |
- name: Configure CMake | |
run: cmake -S . -B build -GNinja | |
env: | |
CXX: ${{matrix.compiler}} | |
CMAKE_BUILD_TYPE: ${{matrix.buildmode}} | |
- name: Build | |
run: cmake --build build | |
- name: Tests | |
working-directory: ${{github.workspace}}/build | |
run: ctest -j 2 -C ${{matrix.buildmode}} --output-on-failure --repeat until-pass:5 | |
- name: Sanity check main executable | |
working-directory: ${{github.workspace}}/build | |
run: ./coincenter --help |