ci: run job for oldest supported Debian version

This commit is contained in:
tobtoht 2024-09-13 18:11:02 +02:00
parent a1dc85c537
commit 64bb031d5f
No known key found for this signature in database
GPG Key ID: E45B10DD027D2472

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
@ -79,6 +81,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
@ -101,11 +125,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}}
@ -127,11 +151,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}}
@ -156,11 +180,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