Merge pull request #9481

64bb031 ci: run job for oldest supported Debian version (tobtoht)
This commit is contained in:
luigi1111 2024-12-23 10:37:59 -05:00
commit 51d0a25c7c
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -14,12 +14,14 @@ on:
env: env:
REMOVE_BUNDLED_PACKAGES : sudo rm -rf /usr/local REMOVE_BUNDLED_PACKAGES : sudo rm -rf /usr/local
BUILD_DEFAULT_LINUX: | BUILD_DEFAULT_LINUX: |
cmake -S . -B build -D ARCH="default" -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=Release && cmake --build build -j3 cmake -S . -B build -D ARCH="default" -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=Release && cmake --build build --parallel 3
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' 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: | APT_SET_CONF: |
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom tee -a /etc/apt/apt.conf.d/80-custom << EOF
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom Acquire::Retries "3";
echo "Acquire::ftp::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom Acquire::http::Timeout "120";
Acquire::ftp::Timeout "120";
EOF
CCACHE_SETTINGS: | CCACHE_SETTINGS: |
ccache --max-size=150M ccache --max-size=150M
ccache --set-config=compression=true ccache --set-config=compression=true
@ -74,6 +76,28 @@ jobs:
${{env.CCACHE_SETTINGS}} ${{env.CCACHE_SETTINGS}}
make release-static-win64 -j2 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: # 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 # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
@ -96,11 +120,11 @@ jobs:
- name: remove bundled packages - name: remove bundled packages
run: ${{env.REMOVE_BUNDLED_PACKAGES}} run: ${{env.REMOVE_BUNDLED_PACKAGES}}
- name: set apt conf - name: set apt conf
run: ${{env.APT_SET_CONF}} run: sudo ${{env.APT_SET_CONF}}
- name: update apt - name: update apt
run: sudo apt update run: sudo apt update
- name: install monero dependencies - name: install monero dependencies
run: ${{env.APT_INSTALL_LINUX}} run: sudo ${{env.APT_INSTALL_LINUX}}
- name: build - name: build
run: | run: |
${{env.CCACHE_SETTINGS}} ${{env.CCACHE_SETTINGS}}
@ -122,11 +146,11 @@ jobs:
- name: remove bundled packages - name: remove bundled packages
run: ${{env.REMOVE_BUNDLED_PACKAGES}} run: ${{env.REMOVE_BUNDLED_PACKAGES}}
- name: set apt conf - name: set apt conf
run: ${{env.APT_SET_CONF}} run: sudo ${{env.APT_SET_CONF}}
- name: update apt - name: update apt
run: sudo apt update run: sudo apt update
- name: install monero dependencies - name: install monero dependencies
run: ${{env.APT_INSTALL_LINUX}} run: sudo ${{env.APT_INSTALL_LINUX}}
- name: build - name: build
run: | run: |
${{env.CCACHE_SETTINGS}} ${{env.CCACHE_SETTINGS}}
@ -151,11 +175,11 @@ jobs:
- name: remove bundled packages - name: remove bundled packages
run: ${{env.REMOVE_BUNDLED_PACKAGES}} run: ${{env.REMOVE_BUNDLED_PACKAGES}}
- name: set apt conf - name: set apt conf
run: ${{env.APT_SET_CONF}} run: sudo ${{env.APT_SET_CONF}}
- name: update apt - name: update apt
run: sudo apt update run: sudo apt update
- name: install monero dependencies - name: install monero dependencies
run: ${{env.APT_INSTALL_LINUX}} run: sudo ${{env.APT_INSTALL_LINUX}}
- name: install Python dependencies - name: install Python dependencies
run: pip install requests psutil monotonic zmq deepdiff run: pip install requests psutil monotonic zmq deepdiff
- name: tests - name: tests