From 704f3e51af6faf30aec23dcd950e9500c96e23e6 Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Tue, 21 May 2024 09:06:37 +0200 Subject: [PATCH] initial gh actions --- .github/workflows/compat.yaml | 55 +++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/compat.yaml diff --git a/.github/workflows/compat.yaml b/.github/workflows/compat.yaml new file mode 100644 index 00000000..7e1115ac --- /dev/null +++ b/.github/workflows/compat.yaml @@ -0,0 +1,55 @@ +name: compatibility check +on: [push, pull_request] +jobs: + mingw: + runs-on: ubuntu-latest + container: + image: debian:buster + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Install dependencies + run: | + apt update + apt install -y build-essential pkg-config autoconf libtool ccache make cmake gcc g++ git curl lbzip2 gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 gcc-mingw-w64-i686 g++-mingw-w64-i686 + - name: Patch sources + run: | + git config --global user.email "ci@mrcyjanek.net" + git config --global user.name "CI mrcyjanek.net" + ./apply_patches.sh monero + ./apply_patches.sh wownero + - name: monero/x86_64-w64-mingw32 + run: ./build_single.sh monero x86_64-w64-mingw32 -j$(nproc) + - name: wownero/x86_64-w64-mingw32 + run: ./build_single.sh wownero x86_64-w64-mingw32 -j$(nproc) + - name: monero/i686-w64-mingw32 + run: ./build_single.sh monero i686-w64-mingw32 -j$(nproc) + - name: wownero/i686-w64-mingw32 + run: ./build_single.sh wownero i686-w64-mingw32 -j$(nproc) + mingw: + runs-on: ubuntu-latest + container: + image: debian:buster + steps: + - name: Install dependencies + run: | + apt update + apt install -y build-essential pkg-config autoconf libtool ccache make cmake gcc g++ git curl lbzip2 gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 gcc-mingw-w64-i686 g++-mingw-w64-i686 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Patch sources + run: | + git config --global user.email "ci@mrcyjanek.net" + git config --global user.name "CI mrcyjanek.net" + ./apply_patches.sh monero + ./apply_patches.sh wownero + - name: monero/x86_64-w64-mingw32 + run: ./build_single.sh monero x86_64-w64-mingw32 -j$(nproc) + - name: wownero/x86_64-w64-mingw32 + run: ./build_single.sh wownero x86_64-w64-mingw32 -j$(nproc) + - name: monero/i686-w64-mingw32 + run: ./build_single.sh monero i686-w64-mingw32 -j$(nproc) + - name: wownero/i686-w64-mingw32 + run: ./build_single.sh wownero i686-w64-mingw32 -j$(nproc) \ No newline at end of file