Skip to content

Conversation

timokoesters
Copy link
Collaborator

@timokoesters timokoesters commented Sep 23, 2025

TODOs:

  • Test all lints and checks by hand
  • Fix reset-dev
  • Make sure we upload SQLX_OFFLINE files
  • Update readme to recommend the new justfile commands:
    • $ just will list all commands
    • $ just ci for all checks and tests or others like $ just check-rust,$ just test or even $ just test-flutter
    • $ just run-client and $ just run-client-cached
    • $ just run-server
    • $ just regenerate for frb, l10n and sqlx

I don't know how I can test these:

  • Test the ci that would run after the merge to main
  • Make sure debug build work without signing, but published releases are signed.

@timokoesters timokoesters marked this pull request as draft September 23, 2025 14:24
@timokoesters timokoesters force-pushed the timo/justfile branch 5 times, most recently from a5b884e to 0a61855 Compare September 24, 2025 14:29
@timokoesters timokoesters force-pushed the timo/justfile branch 3 times, most recently from 68a3a68 to f51d646 Compare September 30, 2025 13:28
@timokoesters timokoesters force-pushed the timo/justfile branch 2 times, most recently from cd18fe9 to 06eeff5 Compare September 30, 2025 14:14
@timokoesters timokoesters force-pushed the timo/justfile branch 2 times, most recently from 7b01427 to 3e464b3 Compare October 1, 2025 11:29
- name: Set up Rust toolchain
uses: dtolnay/[email protected]
- uses: Swatinem/rust-cache@v2
- run: cargo build --verbose
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I removed cargo build, because everything it does should be covered by other tests.

CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = 7QXP938FNA;
DEVELOPMENT_TEAM = "";
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I removed the signing key from debug builds. I hope that CI builds are still signed correctly.

#
# SPDX-License-Identifier: AGPL-3.0-or-later

DATABASE_URL=sqlite:coreclient/client.db
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I checked in this file, because my IDE needs this. I think it's useful to have this as the default.

cargo sqlx prepare --database-url sqlite://{{justfile_directory()}}/coreclient/client.db

# This task will run the command and hide stdout. If git diff then reports unstaged changes, the task will fail.
_check-unstaged-changes command:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I like to disable stdout, so it's cleaner when used as a CLI. I can enable all logs in CI if we want.

@timokoesters timokoesters marked this pull request as ready for review October 1, 2025 13:26
@timokoesters timokoesters changed the title Draft: CI changes Justfile overhaul and CI changes Oct 1, 2025
@timokoesters timokoesters changed the title Justfile overhaul and CI changes Justfile and CI changes Oct 1, 2025
Copy link
Member

@kkohbrok kkohbrok left a comment

Choose a reason for hiding this comment

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

Looks good! I'd say we merge this for now and adjust what doesn't work in the next weeks.

@raphaelrobert
Copy link
Contributor

One of the TODOs is still marked as not done, has that been addressed?

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