diff --git a/.github/workflows/compat.yaml b/.github/workflows/compat.yaml index f73e001..c979975 100644 --- a/.github/workflows/compat.yaml +++ b/.github/workflows/compat.yaml @@ -40,6 +40,11 @@ jobs: with: files: release/gh/* token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} + - name: Upload lib + uses: actions/upload-artifact@v4 + with: + name: mingw ${{ matrix.coin }} + path: release/gh/* android: strategy: matrix: @@ -81,6 +86,11 @@ jobs: with: files: release/gh/* token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} + - name: Upload lib + uses: actions/upload-artifact@v4 + with: + name: android ${{ matrix.coin }} + path: release/gh/* linux: strategy: matrix: @@ -122,6 +132,11 @@ jobs: with: files: release/gh/* token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} + - name: Upload lib + uses: actions/upload-artifact@v4 + with: + name: linux ${{ matrix.coin }} + path: release/gh/* sailfishos_aarch64: strategy: matrix: @@ -156,6 +171,11 @@ jobs: with: files: release/gh/* token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} + - name: Upload lib + uses: actions/upload-artifact@v4 + with: + name: sfos aarch64 ${{ matrix.coin }} + path: release/gh/* sailfishos_i486: strategy: matrix: @@ -188,6 +208,11 @@ jobs: with: files: release/gh/* token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} + - name: Upload lib + uses: actions/upload-artifact@v4 + with: + name: sfos_i486 ${{ matrix.coin }} + path: release/gh/* darwin: strategy: matrix: @@ -227,4 +252,99 @@ jobs: if: startsWith(github.ref, 'refs/tags/') with: files: release/gh/* - token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} \ No newline at end of file + token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} + - name: Upload lib + uses: actions/upload-artifact@v4 + with: + name: darwin ${{ matrix.coin }} + path: release/gh/* + macos: + strategy: + matrix: + coin: [monero, wownero] + name: macos build + runs-on: macos-14 + steps: + - name: Checkout monero_c repo + uses: actions/checkout@v4 + with: + repository: MrCyjaneK/monero_c + fetch-depth: 0 + submodules: recursive + - uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: '15.4' + - name: install dependencies + run: | + brew install ccache unbound boost@1.76 zmq autoconf automake libtool && brew link boost@1.76 + - name: Patch sources + run: | + git config --global --add safe.directory '*' + git config --global user.email "ci@mrcyjanek.net" + git config --global user.name "CI mrcyjanek.net" + ./apply_patches.sh ${{ matrix.coin }} + - name: build + run: | + ./build_single.sh ${{ matrix.coin }} aarch64-host-apple-darwin -j$(sysctl -n hw.logicalcpu) + - name: rename artifacts + run: | + mkdir release/gh/ + for i in release/${{ matrix.coin }}/* + do + mv "$i" "release/gh/${{ matrix.coin }}_$(basename $i)" + done + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + files: release/gh/* + - name: Upload lib + uses: actions/upload-artifact@v4 + with: + name: macos ${{ matrix.coin }} + path: release/gh/* + ios: + strategy: + matrix: + coin: [monero, wownero] + name: ios build + runs-on: macos-14 + steps: + - name: Checkout monero_c repo + uses: actions/checkout@v4 + with: + repository: MrCyjaneK/monero_c + fetch-depth: 0 + submodules: recursive + - uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: '15.4' + - name: install dependencies + run: | + brew install ccache unbound boost@1.76 zmq autoconf automake libtool && brew link boost@1.76 + - name: Patch sources + run: | + git config --global --add safe.directory '*' + git config --global user.email "ci@mrcyjanek.net" + git config --global user.name "CI mrcyjanek.net" + ./apply_patches.sh ${{ matrix.coin }} + - name: build + run: | + ./build_single.sh ${{ matrix.coin }} host-apple-ios -j$(sysctl -n hw.logicalcpu) + - name: rename artifacts + run: | + mkdir release/gh/ + for i in release/${{ matrix.coin }}/* + do + mv "$i" "release/gh/${{ matrix.coin }}_$(basename $i)" + done + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + files: release/gh/* + - name: Upload lib + uses: actions/upload-artifact@v4 + with: + name: ios ${{ matrix.coin }} + path: release/gh/* \ No newline at end of file diff --git a/.github/workflows/xmruw.yaml b/.github/workflows/xmruw.yaml index a3eae38..41ccacf 100644 --- a/.github/workflows/xmruw.yaml +++ b/.github/workflows/xmruw.yaml @@ -3,18 +3,11 @@ run-name: Building xmruw for supported targets on: [push] jobs: android: + strategy: + matrix: + coin: [monero, wownero] runs-on: ubuntu-latest steps: - - name: Free Disk Space (Ubuntu) - uses: insightsengineering/disk-space-reclaimer@v1 - with: - tools-cache: true - android: false - dotnet: true - haskell: true - large-packages: true - swap-storage: true - docker-images: true - name: Install dependencies run: | sudo apt update @@ -28,12 +21,9 @@ jobs: git config --global --add safe.directory '*' 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/aarch64-linux-android - run: ./build_single.sh monero aarch64-linux-android -j$(nproc) - - name: wownero/aarch64-linux-android - run: ./build_single.sh wownero aarch64-linux-android -j$(nproc) + ./apply_patches.sh ${{ matrix.coin }} + - name: ${{ matrix.coin }}/aarch64-linux-android + run: ./build_single.sh ${{ matrix.coin }} aarch64-linux-android -j$(nproc) - name: clone xmruw run: | git clone https://github.com/mrcyjanek/unnamed_monero_wallet @@ -49,26 +39,17 @@ jobs: with: distribution: 'zulu' java-version: '17' - - name: build xmruw (monero) + - name: build xmruw (${{ matrix.coin }}) run: | cd unnamed_monero_wallet - ./codegen.sh -DCOIN_MONERO -DLIBSTEALTH_DISABLED + if [[ "${{ matrix.coin }}" == "monero" ]]; then ./codegen.sh -DCOIN_MONERO -DLIBSTEALTH_DISABLED; fi + if [[ "${{ matrix.coin }}" == "wownero" ]]; then ./codegen.sh -DCOIN_WOWNERO -DLIBSTEALTH_DISABLED; fi flutter pub get make version ./build_changelog.sh - cp ../release/monero/aarch64-linux-android_libwallet2_api_c.so.xz android/app/src/main/jniLibs/arm64-v8a/libmonero_libwallet2_api_c.so.xz + cp ../release/${{ matrix.coin }}/aarch64-linux-android_libwallet2_api_c.so.xz android/app/src/main/jniLibs/arm64-v8a/lib${{ matrix.coin }}_libwallet2_api_c.so.xz unxz -f android/app/src/main/jniLibs/arm64-v8a/*.xz - flutter build apk --debug --flavor clean_monero - - name: build xmruw (wownero) - run: | - cd unnamed_monero_wallet - ./codegen.sh -DCOIN_WOWNERO -DLIBSTEALTH_DISABLED - flutter pub get - make version - ./build_changelog.sh - cp ../release/wownero/aarch64-linux-android_libwallet2_api_c.so.xz android/app/src/main/jniLibs/arm64-v8a/libwownero_libwallet2_api_c.so.xz - unxz -f android/app/src/main/jniLibs/arm64-v8a/*.xz - flutter build apk --debug --flavor clean_wownero + flutter build apk --debug --flavor clean_${{ matrix.coin }} - name: Upload APK uses: actions/upload-artifact@v4 with: