From 64bb031d5ffc613d639b02958031c03516ea07c3 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Fri, 13 Sep 2024 18:11:02 +0200 Subject: [PATCH] ci: run job for oldest supported Debian version --- .github/workflows/build.yml | 46 ++++++++++++++++++++++++++++--------- 1 file changed, 35 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 89c86af2e..0e68e8cfe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,12 +14,14 @@ on: env: REMOVE_BUNDLED_PACKAGES : sudo rm -rf /usr/local BUILD_DEFAULT_LINUX: | - cmake -S . -B build -D ARCH="default" -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=Release && cmake --build build -j3 - APT_INSTALL_LINUX: 'sudo apt -y install build-essential cmake libboost-all-dev miniupnpc libunbound-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libzmq3-dev libsodium-dev libhidapi-dev libnorm-dev libusb-1.0-0-dev libpgm-dev libprotobuf-dev protobuf-compiler ccache' + cmake -S . -B build -D ARCH="default" -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=Release && cmake --build build --parallel 3 + APT_INSTALL_LINUX: 'apt -y install build-essential cmake libboost-all-dev miniupnpc libunbound-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libzmq3-dev libsodium-dev libhidapi-dev libnorm-dev libusb-1.0-0-dev libpgm-dev libprotobuf-dev protobuf-compiler ccache git' APT_SET_CONF: | - echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom - echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom - echo "Acquire::ftp::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom + tee -a /etc/apt/apt.conf.d/80-custom << EOF + Acquire::Retries "3"; + Acquire::http::Timeout "120"; + Acquire::ftp::Timeout "120"; + EOF CCACHE_SETTINGS: | ccache --max-size=150M ccache --set-config=compression=true @@ -79,6 +81,28 @@ jobs: ${{env.CCACHE_SETTINGS}} make release-static-win64 -j2 + build-debian: + name: 'build-debian (debian-10)' + runs-on: ubuntu-latest + container: + image: debian:10 + env: + DEBIAN_FRONTEND: noninteractive + steps: + - name: set apt conf + run: ${{env.APT_SET_CONF}} + - name: update apt + run: apt update + - name: install monero dependencies + run: ${{env.APT_INSTALL_LINUX}} + - name: configure git + run: git config --global --add safe.directory '*' + - uses: actions/checkout@v4 + with: + submodules: recursive + - name: build + run: ${{env.BUILD_DEFAULT_LINUX}} + # See the OS labels and monitor deprecations here: # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources @@ -101,11 +125,11 @@ jobs: - name: remove bundled packages run: ${{env.REMOVE_BUNDLED_PACKAGES}} - name: set apt conf - run: ${{env.APT_SET_CONF}} + run: sudo ${{env.APT_SET_CONF}} - name: update apt run: sudo apt update - name: install monero dependencies - run: ${{env.APT_INSTALL_LINUX}} + run: sudo ${{env.APT_INSTALL_LINUX}} - name: build run: | ${{env.CCACHE_SETTINGS}} @@ -127,11 +151,11 @@ jobs: - name: remove bundled packages run: ${{env.REMOVE_BUNDLED_PACKAGES}} - name: set apt conf - run: ${{env.APT_SET_CONF}} + run: sudo ${{env.APT_SET_CONF}} - name: update apt run: sudo apt update - name: install monero dependencies - run: ${{env.APT_INSTALL_LINUX}} + run: sudo ${{env.APT_INSTALL_LINUX}} - name: build run: | ${{env.CCACHE_SETTINGS}} @@ -156,11 +180,11 @@ jobs: - name: remove bundled packages run: ${{env.REMOVE_BUNDLED_PACKAGES}} - name: set apt conf - run: ${{env.APT_SET_CONF}} + run: sudo ${{env.APT_SET_CONF}} - name: update apt run: sudo apt update - name: install monero dependencies - run: ${{env.APT_INSTALL_LINUX}} + run: sudo ${{env.APT_INSTALL_LINUX}} - name: install Python dependencies run: pip install requests psutil monotonic zmq deepdiff - name: tests