From 34a60c6f17fc11847ac85f8cc52b2ccd3d7dffe9 Mon Sep 17 00:00:00 2001 From: daniel Date: Thu, 9 Jan 2025 18:20:34 +0300 Subject: [PATCH] Disable intel-based mac build --- .github/workflows/desktop.yml | 49 +++++++++++++---------------------- 1 file changed, 18 insertions(+), 31 deletions(-) diff --git a/.github/workflows/desktop.yml b/.github/workflows/desktop.yml index 8cd4d47..f1c19ea 100644 --- a/.github/workflows/desktop.yml +++ b/.github/workflows/desktop.yml @@ -5,60 +5,47 @@ on: branches: - main +permissions: + contents: write + jobs: - publish-tauri: - permissions: - contents: write + build: strategy: - fail-fast: false matrix: - include: - - platform: 'macos-latest' # for Arm based macs (M1 and above). - args: '--target aarch64-apple-darwin' - - platform: 'macos-latest' # for Intel based macs. - args: '--target x86_64-apple-darwin' - - platform: 'ubuntu-22.04' - args: '' - - platform: 'windows-latest' - args: '' - - runs-on: ${{ matrix.platform }} + os: [ 'macos-latest', 'ubuntu-22.04', 'windows-latest' ] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - - name: install dependencies (ubuntu only) - if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above. + - name: Install dependencies (ubuntu only) + if: matrix.os == 'ubuntu-22.04' # This must match the platform value defined above. run: | sudo apt-get update sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf - - name: setup node + - name: Install Node uses: actions/setup-node@v4 with: node-version: lts/* - cache: 'npm' # Set this to npm, yarn or pnpm. + cache: 'npm' cache-dependency-path: ./package.json - - name: install Rust stable - uses: dtolnay/rust-toolchain@stable # Set this to dtolnay/rust-toolchain@nightly - with: - # Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds. - targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} + - name: Install Rust + uses: dtolnay/rust-toolchain@stable - - name: Rust cache + - name: Rust Cache uses: swatinem/rust-cache@v2 with: workspaces: './src-tauri -> target' - - name: install frontend dependencies - # If you don't have `beforeBuildCommand` configured you may want to build your frontend here too. - run: npm install # change this to npm or pnpm depending on which one you use. + - name: Install Frontend Dependencies + run: npm install - - uses: tauri-apps/tauri-action@v0.5.16 + - name: Build Desktop + uses: tauri-apps/tauri-action@v0.5.16 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tagName: foxogram-${{github.run_id}} # the action automatically replaces \_\_VERSION\_\_ with the app version. + tagName: foxogram-${{github.run_id}} releaseName: 'Foxogram ${{github.run_id}}' prerelease: false - args: ${{ matrix.args }}