name: Build TDLib on: push: pull_request: schedule: - cron: '0 0 * * 0' # weekly jobs: build: runs-on: ubuntu-18.04 strategy: matrix: arch: [linux/386, linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64, linux/ppc64le] steps: - name: Install sudo package run: | (apt-get update || true) 2>/dev/null (apt-get install -y sudo) 2>/dev/null sudo apt update - uses: actions/checkout@v2 with: submodules: "recursive" - name: Cache ccache id: cache-primes uses: actions/cache@v2 with: path: ~/.ccache key: ${{ runner.os }}-ccache-all restore-keys: | ${{ runner.os }}-ccache- - name: Install build tools run: sudo apt-get install -y make git zlib1g-dev libssl-dev gperf php-cli cmake clang-6.0 libc++-dev libc++abi-dev ccache - name: Build run: | mkdir build cd build CXXFLAGS="-stdlib=libc++" CC=/usr/bin/clang-6.0 CXX=/usr/bin/clang++-6.0 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=../tdlib .. cmake --build . --target install -- -j4 - uses: actions/upload-artifact@v2 with: name: tdlight path: tdlib/libtdjson.so