add caching to github builds
This commit is contained in:
65
.github/workflows/compat.yaml
vendored
65
.github/workflows/compat.yaml
vendored
@@ -23,6 +23,13 @@ jobs:
|
||||
git config --global user.email "ci@mrcyjanek.net"
|
||||
git config --global user.name "CI mrcyjanek.net"
|
||||
./apply_patches.sh ${{ matrix.coin }}
|
||||
- name: Cache Externals
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
${{ matrix.coin }}/contrib/depends/sources
|
||||
${{ matrix.coin }}/contrib/depends/built
|
||||
key: depends-${{ github.job }}-${{ matrix.coin }}-${{ hashFiles('patches/*/*.patch') }}
|
||||
- name: ${{ matrix.coin }}/x86_64-w64-mingw32
|
||||
run: ./build_single.sh ${{ matrix.coin }} x86_64-w64-mingw32 -j$(nproc)
|
||||
- name: ${{ matrix.coin }}/i686-w64-mingw32
|
||||
@@ -67,6 +74,13 @@ jobs:
|
||||
git config --global user.email "ci@mrcyjanek.net"
|
||||
git config --global user.name "CI mrcyjanek.net"
|
||||
./apply_patches.sh ${{ matrix.coin }}
|
||||
- name: Cache Externals
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
${{ matrix.coin }}/contrib/depends/sources
|
||||
${{ matrix.coin }}/contrib/depends/built
|
||||
key: depends-${{ github.job }}-${{ matrix.coin }}-${{ hashFiles('patches/*/*.patch') }}
|
||||
- name: ${{ matrix.coin }}/x86_64-linux-android
|
||||
run: ./build_single.sh ${{ matrix.coin }} x86_64-linux-android -j$(nproc)
|
||||
- name: ${{ matrix.coin }}/aarch64-linux-android
|
||||
@@ -113,6 +127,13 @@ jobs:
|
||||
git config --global user.email "ci@mrcyjanek.net"
|
||||
git config --global user.name "CI mrcyjanek.net"
|
||||
./apply_patches.sh ${{ matrix.coin }}
|
||||
- name: Cache Externals
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
${{ matrix.coin }}/contrib/depends/sources
|
||||
${{ matrix.coin }}/contrib/depends/built
|
||||
key: depends-${{ github.job }}-${{ matrix.coin }}-${{ hashFiles('patches/*/*.patch') }}
|
||||
- name: ${{ matrix.coin }}/x86_64-linux-gnu
|
||||
run: ./build_single.sh ${{ matrix.coin }} x86_64-linux-gnu -j$(nproc)
|
||||
- name: ${{ matrix.coin }}/aarch64-linux-gnu
|
||||
@@ -141,7 +162,7 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
coin: [monero, wownero]
|
||||
runs-on: buildjet-4vcpu-ubuntu-2204-arm
|
||||
runs-on: buildjet-8vcpu-ubuntu-2204-arm
|
||||
steps:
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
@@ -155,6 +176,20 @@ jobs:
|
||||
git config --global user.email "ci@mrcyjanek.net"
|
||||
git config --global user.name "CI mrcyjanek.net"
|
||||
./apply_patches.sh ${{ matrix.coin }}
|
||||
- name: Cache Externals
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
${{ matrix.coin }}/contrib/depends/sources
|
||||
${{ matrix.coin }}/contrib/depends/built
|
||||
key: depends-${{ github.job }}-${{ matrix.coin }}-${{ hashFiles('patches/*/*.patch') }}
|
||||
- name: Cache Externals
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
${{ matrix.coin }}/contrib/depends/sources
|
||||
${{ matrix.coin }}/contrib/depends/built
|
||||
key: depends-${{ github.job }}-${{ matrix.coin }}-${{ hashFiles('patches/*/*.patch') }}
|
||||
- name: ${{ matrix.coin }}/aarch64-meego-linux-gnu
|
||||
run: |
|
||||
docker run --rm -v $PWD:$PWD -w $PWD ghcr.io/mrcyjanek/sailfishos:4.6.0.11_target_aarch64 bash -c 'zypper in -f -y perl-IPC-Cmd curl ccache gperf cmake ffmpeg-tools git clang libxkbcommon-devel wayland-protocols-devel wayland-client wayland-egl-devel make glibc-static && git config --global --add safe.directory "*" && for i in gcc g++ ar ranlib; do ln -s /usr/bin/$i /usr/bin/aarch64-meego-linux-gnu-$i; ln -s /usr/bin/$i /usr/bin/aarch64-linux-gnu-$i; done && ./build_single.sh ${{ matrix.coin }} aarch64-meego-linux-gnu -j$(nproc)'
|
||||
@@ -192,6 +227,13 @@ jobs:
|
||||
git config --global user.email "ci@mrcyjanek.net"
|
||||
git config --global user.name "CI mrcyjanek.net"
|
||||
./apply_patches.sh ${{ matrix.coin }}
|
||||
- name: Cache Externals
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
${{ matrix.coin }}/contrib/depends/sources
|
||||
${{ matrix.coin }}/contrib/depends/built
|
||||
key: depends-${{ github.job }}-${{ matrix.coin }}-${{ hashFiles('patches/*/*.patch') }}
|
||||
- name: ${{ matrix.coin }}/aarch64-meego-linux-gnu
|
||||
run: |
|
||||
docker run --rm -v $PWD:$PWD -w $PWD ghcr.io/mrcyjanek/sailfishos:4.6.0.11_target_i486 bash -c 'zypper in -f -y perl-IPC-Cmd curl ccache gperf cmake ffmpeg-tools git clang libxkbcommon-devel wayland-protocols-devel wayland-client wayland-egl-devel make glibc-static && git config --global --add safe.directory "*" && for i in gcc g++ ar ranlib; do ln -s /usr/bin/$i /usr/bin/i686-linux-gnu-$i; ln -s /usr/bin/$i /usr/bin/i686-meego-linux-gnu-$i; done && ./build_single.sh ${{ matrix.coin }} i686-meego-linux-gnu -j$(nproc)'
|
||||
@@ -236,6 +278,13 @@ jobs:
|
||||
git config --global user.name "CI mrcyjanek.net"
|
||||
./apply_patches.sh monero
|
||||
./apply_patches.sh wownero
|
||||
- name: Cache Externals
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
${{ matrix.coin }}/contrib/depends/sources
|
||||
${{ matrix.coin }}/contrib/depends/built
|
||||
key: depends-${{ github.job }}-${{ matrix.coin }}-${{ hashFiles('patches/*/*.patch') }}
|
||||
- name: ${{ matrix.coin }}/x86_64-apple-darwin11
|
||||
run: ./build_single.sh ${{ matrix.coin }} x86_64-apple-darwin11 -j$(nproc)
|
||||
- name: ${{ matrix.coin }}/aarch64-apple-darwin11
|
||||
@@ -283,6 +332,13 @@ jobs:
|
||||
git config --global user.email "ci@mrcyjanek.net"
|
||||
git config --global user.name "CI mrcyjanek.net"
|
||||
./apply_patches.sh ${{ matrix.coin }}
|
||||
- name: Cache Externals
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
${{ matrix.coin }}/contrib/depends/sources
|
||||
${{ matrix.coin }}/contrib/depends/built
|
||||
key: depends-${{ github.job }}-${{ matrix.coin }}-${{ hashFiles('patches/*/*.patch') }}
|
||||
- name: build
|
||||
run: |
|
||||
./build_single.sh ${{ matrix.coin }} aarch64-host-apple-darwin -j$(sysctl -n hw.logicalcpu)
|
||||
@@ -329,6 +385,13 @@ jobs:
|
||||
git config --global user.email "ci@mrcyjanek.net"
|
||||
git config --global user.name "CI mrcyjanek.net"
|
||||
./apply_patches.sh ${{ matrix.coin }}
|
||||
- name: Cache Externals
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
${{ matrix.coin }}/contrib/depends/sources
|
||||
${{ matrix.coin }}/contrib/depends/built
|
||||
key: depends-${{ github.job }}-${{ matrix.coin }}-${{ hashFiles('patches/*/*.patch') }}
|
||||
- name: build
|
||||
run: |
|
||||
./build_single.sh ${{ matrix.coin }} host-apple-ios -j$(sysctl -n hw.logicalcpu)
|
||||
|
||||
Reference in New Issue
Block a user