Skip to content

Add CI workflow to build Tauri app artifact for PRs and master - #266

Merged
OJFord merged 12 commits into
masterfrom
copilot/add-build-workflow-for-tauri-app
Aug 21, 2026
Merged

Add CI workflow to build Tauri app artifact for PRs and master#266
OJFord merged 12 commits into
masterfrom
copilot/add-build-workflow-for-tauri-app

Conversation

Copilot AI commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

This adds a dedicated GitHub Actions build workflow for the Tauri desktop app so PRs and master produce a reusable build artifact. It sets up the Linux build environment, uses the existing repo build entrypoint, and uploads the built app binary for later release automation.

  • Workflow scope

    • Adds .github/workflows/build.yml
    • Triggers on all pull requests and pushes to master
    • Keeps permissions minimal with read-only contents access
  • Build job

    • Checks out the repo with submodules
    • Sets up Node with Yarn cache and stable Rust
    • Installs just, tauri-cli, the repo-specific libnotmuch-dev, and the Tauri Linux prerequisite packages from the upstream docs
  • Artifact output

    • Builds the app from the repo root using the existing just build-debug command
    • Uploads the confirmed built desktop binary as a named workflow artifact from target/debug/amail
  • Build invocation

    - name: Build Tauri app
      run: just build-debug

@OJFord OJFord left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread .github/workflows/build.yml Outdated
Comment thread .github/workflows/build.yml Outdated
Comment thread .github/workflows/build.yml
Copilot AI changed the title Add CI workflow to build and publish Tauri artifacts for PRs and master Add CI workflow to build Tauri app artifact for PRs and master Jun 7, 2026
Copilot finished work on behalf of OJFord June 7, 2026 21:35
Copilot AI requested a review from OJFord June 7, 2026 21:35

@OJFord OJFord left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread .github/workflows/build.yml Outdated
Comment thread .github/workflows/build.yml

Copilot AI commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

@copilot

Addressed in 9bb403c: the workflow now uses the Tauri Linux prerequisite list with an inline source comment, keeps just/libnotmuch-dev as repo-specific extras, and drops JUST_UNSTABLE from the build step.

Copilot AI and others added 6 commits August 11, 2026 20:34
@OJFord
OJFord force-pushed the copilot/add-build-workflow-for-tauri-app branch from c89f97e to a6cee66 Compare August 11, 2026 20:34

@OJFord OJFord left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot address comments

Comment thread .github/workflows/build.yml Outdated
Comment thread .github/workflows/build.yml Outdated
Comment thread justfile Outdated
Co-authored-by: OJFord <3946014+OJFord@users.noreply.github.com>
…cking

Co-authored-by: OJFord <3946014+OJFord@users.noreply.github.com>
Co-authored-by: OJFord <3946014+OJFord@users.noreply.github.com>
Co-authored-by: OJFord <3946014+OJFord@users.noreply.github.com>
@OJFord
OJFord marked this pull request as ready for review August 21, 2026 16:30
Copilot AI lite review requested due to automatic review settings August 21, 2026 16:30
Comment thread .github/workflows/build.yml Outdated
cache: yarn
cache-dependency-path: eml-client/yarn.lock

- uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # v1 (stable)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot this is failing with 'toolchain is a required input' - it was ok with @stable before we pinned

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a dedicated GitHub Actions workflow to build the Tauri desktop app on PRs and pushes to master, producing a reusable Linux build artifact for downstream automation.

Changes:

  • Added a new CI workflow to set up Node + Rust, install Tauri prerequisites, build via just build-debug, and upload the built binary as an artifact.
  • Added eml-client/.node-version to drive the Node version used by the workflow.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
eml-client/.node-version Defines the Node version for CI (setup-node via node-version-file).
.github/workflows/build.yml New build workflow for the Linux Tauri artifact on PRs and master.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/build.yml
Comment thread .github/workflows/build.yml
Comment thread .github/workflows/build.yml
Co-authored-by: OJFord <3946014+OJFord@users.noreply.github.com>

Copilot AI commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

@copilot address comments

Addressed in 9e931ae: the pinned Rust toolchain step now passes toolchain: stable, and the Tauri pre-build cleanup now tolerates a missing dist/ directory in clean CI checkouts.

Copilot AI requested a review from OJFord August 21, 2026 16:37
Comment thread eml-client/src-tauri/tauri.conf.json Outdated
},
"build": {
"beforeBuildCommand": "rm -r dist; yarn; yarn run vite:build:debug-${TAURI_ENV_DEBUG}",
"beforeBuildCommand": "rm -rf dist; yarn; yarn run vite:build:debug-${TAURI_ENV_DEBUG}",

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot no, check if dist exists and rm -r only if it does instead

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 6e4f7b9.

Co-authored-by: OJFord <3946014+OJFord@users.noreply.github.com>
Copilot AI requested a review from OJFord August 21, 2026 16:40
@OJFord
OJFord enabled auto-merge (squash) August 21, 2026 16:42
@OJFord
OJFord disabled auto-merge August 21, 2026 16:43
@OJFord
OJFord enabled auto-merge (squash) August 21, 2026 16:44
@OJFord
OJFord merged commit 54b970e into master Aug 21, 2026
6 checks passed
@OJFord
OJFord deleted the copilot/add-build-workflow-for-tauri-app branch August 21, 2026 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants