diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 760ca47..da289cf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -81,16 +81,24 @@ jobs: strategy: fail-fast: false matrix: - platform: [ macos-latest, ubuntu-22.04, windows-latest ] + include: + - 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.platform }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: "lts/*" @@ -99,6 +107,8 @@ jobs: - name: Install Rust stable uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} - name: Install dependencies (ubuntu only) if: matrix.platform == 'ubuntu-22.04' @@ -106,8 +116,8 @@ jobs: sudo apt-get update sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf - - name: Install dependencies - run: pnpm install && pnpm add -g @tauri-apps/cli + - name: Install frontend dependencies + run: cd frontend && pnpm install - name: Build Tauri uses: tauri-apps/tauri-action@v0 @@ -115,12 +125,13 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: projectPath: frontend + args: ${{ matrix.args }} - name: Upload Frontend Artifact uses: actions/upload-artifact@v3 with: name: frontend-artifact-${{ matrix.platform }} - path: frontend/src-tauri/target/bundle + path: frontend/src-tauri/target/release/bundle release: name: Create Release @@ -128,12 +139,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: "lts/*"