diff --git a/.github/workflows/build-deb-package.yml b/.github/workflows/build-deb-package.yml new file mode 100644 index 0000000..0e55ff0 --- /dev/null +++ b/.github/workflows/build-deb-package.yml @@ -0,0 +1,123 @@ +name: Build Deb Package + +on: [push, pull_request] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-20.04] + steps: + - uses: actions/checkout@v2 + with: + submodules: true + + - name: Get time + run: | + date +'%Y-%m' > snapshot.txt + + - name: Cache for cccahe + uses: actions/cache@v2 + with: + path: /home/runner/.ccache + key: ${{ runner.os }}-deb-ccache-${{ hashFiles('**/snapshot.txt') }} + restore-keys: | + ${{ runner.os }}-deb-ccache- + + - name: Install dependencies for Linux + if: runner.os == 'Linux' + run: | + sudo apt update -y + sudo apt install -y ca-certificates \ + ccache \ + cmake \ + debhelper \ + devscripts \ + libboost-all-dev \ + libcpprest-dev \ + libcurl4-openssl-dev \ + libssl-dev \ + libz-dev \ + lsb-release \ + openssl \ + screenfetch \ + wget + + - name: Install grpc for Ubuntu 20.04 + if: matrix.os == 'ubuntu-20.04' + run: | + sudo apt install -y libcurl4-openssl-dev \ + libprotobuf-dev \ + libprotoc-dev \ + libgrpc-dev \ + libgrpc++-dev \ + protobuf-compiler-grpc + + - name: Screen fetch + run: | + screenfetch + + - name: Setup tmate session + if: false + uses: mxschmitt/action-tmate@v2 + + - name: Prepare gpg environment + run: | + cat > gpg-script <