#github action not creating x64 dmg

22 messages · Page 1 of 1 (latest)

storm monolith
#

what am I doing wrong to only get aarch64 and not x64 .dmgs via github actions?

      matrix:
        settings:
          - platform: "macos-latest"
            args: "--target aarch64-apple-darwin"
          - platform: "macos-latest"
            args: "--target x86_64-apple-darwin"
          - platform: "ubuntu-22.04"
            args: ""
          - platform: "windows-latest"
            args: ""
"targets": "all"
storm monolith
#

I did look at some other repos and tried to adapt their workflow

name: 'publish'

on:
  workflow_dispatch:
  push:
    branches:
      - release

env:
  TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
  TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}

jobs:
  publish-tauri:
    permissions:
      contents: write
    strategy:
      fail-fast: false
      matrix:
        settings:
          - platform: "macos-latest"
            args: "--target aarch64-apple-darwin"
          - platform: "macos-latest"
            args: "--target x86_64-apple-darwin"
          - platform: "ubuntu-22.04"
            args: ""
          - platform: "windows-latest"
            args: ""

    runs-on: ${{ matrix.settings.platform }}
    steps:
      - uses: actions/checkout@v4

      - name: setup node
        uses: actions/setup-node@v4

      - name: Install pnpm
        uses: pnpm/action-setup@v4
        with:
          version: 8
          run_install: false

      - name: install Rust stable
        uses: dtolnay/rust-toolchain@stable
        with:
          targets: ${{ matrix.settings.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}

      - name: install dependencies (ubuntu only)
        if: matrix.platform == 'ubuntu-22.04'
        run: |
          sudo apt-get update
          sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf

      - name: install frontend dependencies
        run: pnpm install
#
      - uses: tauri-apps/tauri-action@v0
        env:
          CI: true
          GITHUB_TOKEN: ${{ secrets.RELEASE_REPO_KEY }}
          APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
          APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
          APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
          APPLE_ID: ${{ secrets.APPLE_ID }}
          APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
          APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
          APPLE_PROVIDER_SHORT_NAME: ${{ secrets.APPLE_PROVIDER_SHORT_NAME }}
          ENABLE_CODE_SIGNING: ${{ secrets.APPLE_CERTIFICATE }}
        with:
          tagName: app-v__VERSION__
          releaseName: 'App v__VERSION__'
          releaseBody: 'See the assets to download this version and install.'
          releaseDraft: false
          args: ${{matrix.target}}
          prerelease: false
          owner: verbcode
          repo: verbcode-release
          releaseCommitish: main
storm monolith
#

ubuntu just fails
Package gdk-3.0 was not found in the pkg-config search path.

amber ledge
#

You specify the matrix with matrix.settings.platform / matrix.settings.args but use matrix.target at the bottom in tauri-action. Basically you're not telling tauri anything about the target flag then which makes it build for the currently running arch (macos-latest = aarch64)

storm monolith
#
  --- stderr
  `PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" "pkg-config" "--libs" "--cflags" "gdk-3.0" "gdk-3.0 >= 3.22"` did not exit successfully: exit status: 1
  error: could not find system library 'gdk-3.0' required by the 'gdk-sys' crate

  --- stderr
  Package gdk-3.0 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `gdk-3.0.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'gdk-3.0' found
  Package gdk-3.0 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `gdk-3.0.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'gdk-3.0' found

warning: build failed, waiting for other jobs to finish...
       Error failed to build app: failed to build app
 ELIFECYCLE  Command failed with exit code 1.
Error: Command failed with exit code 1: pnpm tauri build
#

abandoning a project for 3 months and coming back to is not a good idea 😦

#

was working fine for a year and suddenly things change

amber ledge
#

probably same issue on second glance

#

you're also using matrix.platform in the ubuntu install step

storm monolith
#

huh interesting. Ill let it run again. I am confident I copied a whole config before from someone in #1047149172144492604 and I had the same issue

amber ledge
#

maybe you replace everything but the matrix part?

storm monolith
#

seems i mixed 3 configs at some point

amber ledge
#

cause we used to show the matrix.settings.x stuff ourselves and recently-ish switched to matrix.x config

amber ledge
storm monolith
#

another had used the include instead of settings

amber ledge
#

yeah, that's the new one i meant

#

include is a special keyword

#

so you end up with matrix.platform, not matrix.include.platform

storm monolith
#

all that stress because github decided to use m chip machines

#

it was going fine before with simons config