From 2df97d7297eb8a0bef3cce2b2400b08b683eb4bf Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Thu, 9 Jan 2025 14:09:05 +0100 Subject: [PATCH] CI: Drop broken template building We don't use the template and its `wry` feature in this fork. Remove it now that `ubuntu-latest` no longer has the necessary packages which requires a tedious and complicated upgrade of the `wry` "nonsense". This is attempted upstream at: https://togithub.com/rust-mobile/xbuild/pull/210 --- .github/workflows/ci.yml | 71 ---------------------------------------- 1 file changed, 71 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7651701f..70138369 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,74 +31,3 @@ jobs: with: name: ${{ matrix.host }}-x path: bin/x${{ matrix.host == 'windows-latest' && '.exe' || '' }} - - build-template: - strategy: - fail-fast: false - matrix: - host: - - ubuntu-latest - - macos-latest - - windows-latest - opt: - - debug - - release - target: - - platform: linux - arch: x64 - - platform: macos - arch: x64 - - platform: windows - arch: x64 - - platform: android - arch: arm64 - - platform: ios - arch: arm64 - - runs-on: ${{ matrix.host }} - needs: build - steps: - - name: install rust - uses: hecrj/setup-rust-action@v1 - with: - rust-version: stable - - - name: install x - uses: actions/download-artifact@v3 - with: - name: ${{ matrix.host }}-x - - run: chmod +x ./x - if: ${{ matrix.host == 'ubuntu-latest' || matrix.host == 'macos-latest' }} - - - name: install llvm ubuntu - if: ${{ matrix.host == 'ubuntu-latest' }} - run: sudo apt-get update && sudo apt-get install llvm - - - name: install llvm macos - if: ${{ matrix.host == 'macos-latest' }} - run: | - brew install llvm - echo "/usr/local/opt/llvm/bin" >> $GITHUB_PATH - - - name: install java - uses: actions/setup-java@v2 - with: - distribution: temurin - java-version: 11 - - - name: install linux dependencies - if: ${{ matrix.host == 'ubuntu-latest' }} - run: sudo apt-get update && sudo apt-get install libwebkit2gtk-4.0-dev libgtk-3-dev squashfs-tools - - - name: create project - run: ./x new template - - # only linux can target linux as it is not clear what that even is exactly - # glibc/musl gtk/qt x11/wayland - # windows doesn't support posix symlinks so can't cross compile to macos/ios - - name: build project - if: > - !(matrix.host == 'macos-latest' && matrix.target.platform == 'linux' || - matrix.host == 'windows-latest' && contains(fromJson('["linux", "macos", "ios"]'), matrix.target.platform)) - run: ../x build --platform ${{ matrix.target.platform }} --arch ${{ matrix.target.arch }} --${{ matrix.opt }} - working-directory: template