mirror of
https://github.com/monero-project/monero.git
synced 2025-08-19 02:27:50 -04:00
ci: containerize depends jobs [0.18]
This commit is contained in:
parent
e01d08b706
commit
a615aa763f
1 changed files with 23 additions and 16 deletions
39
.github/workflows/depends.yml
vendored
39
.github/workflows/depends.yml
vendored
|
@ -9,18 +9,23 @@ on:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
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
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-cross:
|
build-cross:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
env:
|
container:
|
||||||
CCACHE_TEMPDIR: /tmp/.ccache-temp
|
image: ubuntu:20.04
|
||||||
|
env:
|
||||||
|
DEBIAN_FRONTEND: noninteractive
|
||||||
|
CCACHE_TEMPDIR: /tmp/.ccache-temp
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -48,15 +53,21 @@ jobs:
|
||||||
packages: "gperf cmake python3-zmq libdbus-1-dev libharfbuzz-dev"
|
packages: "gperf cmake python3-zmq libdbus-1-dev libharfbuzz-dev"
|
||||||
- name: "Cross-Mac x86_64"
|
- name: "Cross-Mac x86_64"
|
||||||
host: "x86_64-apple-darwin11"
|
host: "x86_64-apple-darwin11"
|
||||||
packages: "cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python-dev python3-setuptools-git"
|
packages: "cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python-dev python3-setuptools-git libtinfo5"
|
||||||
- name: "Cross-Mac aarch64"
|
- name: "Cross-Mac aarch64"
|
||||||
host: "aarch64-apple-darwin11"
|
host: "aarch64-apple-darwin11"
|
||||||
packages: "cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python-dev python3-setuptools-git"
|
packages: "cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python-dev python3-setuptools-git libtinfo5"
|
||||||
- name: "x86_64 Freebsd"
|
- name: "x86_64 Freebsd"
|
||||||
host: "x86_64-unknown-freebsd"
|
host: "x86_64-unknown-freebsd"
|
||||||
packages: "clang-8 gperf cmake python3-zmq libdbus-1-dev libharfbuzz-dev"
|
packages: "clang-8 gperf cmake python3-zmq libdbus-1-dev libharfbuzz-dev"
|
||||||
name: ${{ matrix.toolchain.name }}
|
name: ${{ matrix.toolchain.name }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: set apt conf
|
||||||
|
run: ${{env.APT_SET_CONF}}
|
||||||
|
- name: install dependencies
|
||||||
|
run: apt update; apt -y install build-essential libtool cmake autotools-dev automake pkg-config python3 gperf bsdmainutils curl git ca-certificates unzip ccache ${{ matrix.toolchain.packages }}
|
||||||
|
- name: configure git
|
||||||
|
run: git config --global --add safe.directory '*'
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
@ -84,15 +95,11 @@ jobs:
|
||||||
path: contrib/depends/sdk-sources
|
path: contrib/depends/sdk-sources
|
||||||
key: sdk-${{ matrix.toolchain.host }}-${{ matrix.toolchain.osx_sdk }}
|
key: sdk-${{ matrix.toolchain.host }}-${{ matrix.toolchain.osx_sdk }}
|
||||||
restore-keys: sdk-${{ matrix.toolchain.host }}-${{ matrix.toolchain.osx_sdk }}
|
restore-keys: sdk-${{ matrix.toolchain.host }}-${{ matrix.toolchain.osx_sdk }}
|
||||||
- name: set apt conf
|
|
||||||
run: ${{env.APT_SET_CONF}}
|
|
||||||
- name: install dependencies
|
|
||||||
run: sudo apt update; sudo apt -y install build-essential libtool cmake autotools-dev automake pkg-config bsdmainutils curl git ca-certificates ccache ${{ matrix.toolchain.packages }}
|
|
||||||
- name: prepare w64-mingw32
|
- name: prepare w64-mingw32
|
||||||
if: ${{ matrix.toolchain.host == 'x86_64-w64-mingw32' || matrix.toolchain.host == 'i686-w64-mingw32' }}
|
if: ${{ matrix.toolchain.host == 'x86_64-w64-mingw32' || matrix.toolchain.host == 'i686-w64-mingw32' }}
|
||||||
run: |
|
run: |
|
||||||
sudo update-alternatives --set ${{ matrix.toolchain.host }}-g++ $(which ${{ matrix.toolchain.host }}-g++-posix)
|
update-alternatives --set ${{ matrix.toolchain.host }}-g++ $(which ${{ matrix.toolchain.host }}-g++-posix)
|
||||||
sudo update-alternatives --set ${{ matrix.toolchain.host }}-gcc $(which ${{ matrix.toolchain.host }}-gcc-posix)
|
update-alternatives --set ${{ matrix.toolchain.host }}-gcc $(which ${{ matrix.toolchain.host }}-gcc-posix)
|
||||||
- name: build
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
${{env.CCACHE_SETTINGS}}
|
${{env.CCACHE_SETTINGS}}
|
||||||
|
@ -102,5 +109,5 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.toolchain.name }}
|
name: ${{ matrix.toolchain.name }}
|
||||||
path: |
|
path: |
|
||||||
/home/runner/work/monero/monero/build/${{ matrix.toolchain.host }}/release/bin/monero-wallet-cli*
|
build/${{ matrix.toolchain.host }}/release/bin/monero-wallet-cli*
|
||||||
/home/runner/work/monero/monero/build/${{ matrix.toolchain.host }}/release/bin/monerod*
|
build/${{ matrix.toolchain.host }}/release/bin/monerod*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue