Debian Codegraph @

monero/.github/workflows/depends.yml

raw symbols SCIP
1 name: ci/gh-actions/depends
2
3 on:
4 push:
5 pull_request:
6 paths-ignore:
7 - 'docs/**'
8 - '**/README.md'
9
10 env:
11 APT_SET_CONF: |
12 tee -a /etc/apt/apt.conf.d/80-custom << EOF
13 Acquire::Retries "3";
14 Acquire::http::Timeout "120";
15 Acquire::ftp::Timeout "120";
16 EOF
17 CCACHE_SETTINGS: |
18 ccache --max-size=150M
19 ccache --set-config=compression=true
20
21 jobs:
22 build-cross:
23 runs-on: ubuntu-latest
24 container:
25 image: ubuntu:20.04
26 env:
27 DEBIAN_FRONTEND: noninteractive
28 CCACHE_TEMPDIR: /tmp/.ccache-temp
29 strategy:
30 fail-fast: false
31 matrix:
32 toolchain:
33 - name: "RISCV 64bit"
34 host: "riscv64-linux-gnu"
35 packages: "python3 gperf g++-riscv64-linux-gnu"
36 - name: "ARM v7"
37 host: "arm-linux-gnueabihf"
38 packages: "python3 gperf g++-arm-linux-gnueabihf"
39 - name: "ARM v8"
40 host: "aarch64-linux-gnu"
41 packages: "python3 gperf g++-aarch64-linux-gnu"
42 - name: "i686 Win"
43 host: "i686-w64-mingw32"
44 packages: "python3 g++-mingw-w64-i686"
45 - name: "i686 Linux"
46 host: "i686-pc-linux-gnu"
47 packages: "gperf cmake g++-multilib python3-zmq"
48 - name: "Win64"
49 host: "x86_64-w64-mingw32"
50 packages: "cmake python3 g++-mingw-w64-x86-64"
51 - name: "x86_64 Linux"
52 host: "x86_64-unknown-linux-gnu"
53 packages: "gperf cmake python3-zmq libdbus-1-dev libharfbuzz-dev"
54 - name: "Cross-Mac x86_64"
55 host: "x86_64-apple-darwin11"
56 packages: "cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python-dev python3-setuptools-git libtinfo5"
57 - name: "Cross-Mac aarch64"
58 host: "aarch64-apple-darwin11"
59 packages: "cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python-dev python3-setuptools-git libtinfo5"
60 - name: "x86_64 Freebsd"
61 host: "x86_64-unknown-freebsd"
62 packages: "clang-8 gperf cmake python3-zmq libdbus-1-dev libharfbuzz-dev"
63 name: ${{ matrix.toolchain.name }}
64 steps:
65 - name: set apt conf
66 run: ${{env.APT_SET_CONF}}
67 - name: install dependencies
68 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 }}
69 - name: configure git
70 run: git config --global --add safe.directory '*'
71 - uses: actions/checkout@v4
72 with:
73 fetch-depth: 0
74 submodules: recursive
75 # Most volatile cache
76 - name: ccache
77 uses: actions/cache@v4
78 with:
79 path: ~/.ccache
80 key: ccache-${{ matrix.toolchain.host }}-${{ github.sha }}
81 restore-keys: ccache-${{ matrix.toolchain.host }}-
82 # Less volatile cache
83 - name: depends cache
84 uses: actions/cache@v4
85 with:
86 path: contrib/depends/built
87 key: depends-${{ matrix.toolchain.host }}-${{ hashFiles('contrib/depends/packages/*') }}
88 restore-keys: |
89 depends-${{ matrix.toolchain.host }}-${{ hashFiles('contrib/depends/packages/*') }}
90 depends-${{ matrix.toolchain.host }}-
91 # Static cache
92 - name: OSX SDK cache
93 uses: actions/cache@v4
94 with:
95 path: contrib/depends/sdk-sources
96 key: sdk-${{ matrix.toolchain.host }}-${{ matrix.toolchain.osx_sdk }}
97 restore-keys: sdk-${{ matrix.toolchain.host }}-${{ matrix.toolchain.osx_sdk }}
98 - name: prepare w64-mingw32
99 if: ${{ matrix.toolchain.host == 'x86_64-w64-mingw32' || matrix.toolchain.host == 'i686-w64-mingw32' }}
100 run: |
101 update-alternatives --set ${{ matrix.toolchain.host }}-g++ $(which ${{ matrix.toolchain.host }}-g++-posix)
102 update-alternatives --set ${{ matrix.toolchain.host }}-gcc $(which ${{ matrix.toolchain.host }}-gcc-posix)
103 - name: build
104 run: |
105 ${{env.CCACHE_SETTINGS}}
106 make depends target=${{ matrix.toolchain.host }} -j4
107 - uses: actions/upload-artifact@v4
108 if: ${{ matrix.toolchain.host == 'x86_64-w64-mingw32' || matrix.toolchain.host == 'x86_64-apple-darwin11' || matrix.toolchain.host == 'x86_64-unknown-linux-gnu' }}
109 with:
110 name: ${{ matrix.toolchain.name }}
111 path: |
112 build/${{ matrix.toolchain.host }}/release/bin/monero-wallet-cli*
113 build/${{ matrix.toolchain.host }}/release/bin/monerod*