From 6db1806cedde61c0db254b72a491012b29ed2f52 Mon Sep 17 00:00:00 2001 From: Laky64 Date: Sun, 18 Feb 2024 21:36:29 +0100 Subject: [PATCH] Fixed Windows and other os build --- .github/workflows/build.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f7d8ffd5..82f9d9a5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,20 +53,20 @@ jobs: pip install setuptools - name: Build Debug Shared lib - run: | - if [[ ${{ matrix.cibw_archs }} != 'aarch64' ]]; then - python3 setup.py build_shared --no-preserve-cache --debug - else - docker run -v $(pwd):/app -w /app -it ghcr.io/pytgcalls/ntgcalls/arm64:latest python3 setup.py build_shared --no-preserve-cache --debug - fi + if: matrix.cibw_archs != 'aarch64' + run: python3 setup.py build_shared --no-preserve-cache --debug + + - name: Build Debug Shared lib (ARM64) + if: matrix.cibw_archs == 'aarch64' + run: docker run -it -v $(pwd):/app -w /app ghcr.io/pytgcalls/ntgcalls/arm64:latest python3 setup.py build_shared --no-preserve-cache --debug - name: Build Release Shared lib - run: | - if [[ ${{ matrix.cibw_archs }} != 'aarch64' ]]; then - python3 setup.py build_shared --no-preserve-cache - else - docker run -v $(pwd):/app -w /app -it ghcr.io/pytgcalls/ntgcalls/arm64:latest python3 setup.py build_shared --no-preserve-cache - fi + if: matrix.cibw_archs != 'aarch64' + run: python3 setup.py build_shared --no-preserve-cache + + - name: Build Release Shared lib (ARM64) + if: matrix.cibw_archs == 'aarch64' + run: docker run -it -v $(pwd):/app -w /app ghcr.io/pytgcalls/ntgcalls/arm64:latest python3 setup.py build_shared --no-preserve-cache - name: Upload Debug Shared lib for ${{ matrix.shared_name }} uses: actions/upload-artifact@v4