-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve CI/CD with check fmt and clippy #74
Comments
Lol I completely forgot about the Hacktoberfest thing, this tag has inspired me to register for it 😂 - mind if I tackle this one next? |
Sure! :) Ideally we would add this before the build https://github.com/cohstats/coh3-stats-desktop-app/blob/master/.github/workflows/tests.yaml#L84 because the build will fail in forks due to missing dependencies. |
Btw @HeyZoos I am not sure if you are familiar with Rust - I have personally done only stuff with Copilot in it :D https://github.com/cohstats/coh3-stats-desktop-app/actions/runs/11159161292/job/31016994798 Also I am not sure about this error:
This is just bonus stuff in case you would know how it can be fixed. Thanks a lot for looking into this 🙏 |
No worries, I'm not sure I understand the behavior either. I've gotten a bit busy with work but just wanted to let you know I'm still looking into this. 👍 |
Hey so unfortunately it seems like the checks need to happen after the build. Compiling coh3-stats-desktop-app v1.5.3 (D:\a\coh3-stats-desktop-app\coh3-stats-desktop-app\src-tauri)
error: proc macro panicked
--> src/main.rs:76:14
|
76 | .run(tauri::generate_context!())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: message: The `distDir` configuration is set to `"../dist"` but this path doesn't exist
error: could not compile `coh3-stats-desktop-app` (bin "coh3-stats-desktop-app") due to 1 previous error
Error: Process completed with exit code 1. This |
How do you feel about removing the In the name: "publish"
on:
push:
tags:
- "*" - name: "Full Bundle Tauri Release"
run: |
rm ./src-tauri/tauri.conf.json
mv ./src-tauri/full-bundle-tauri.conf.json ./src-tauri/tauri.conf.json
- name: "Build and release the app"
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
with:
tagName: __VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: "__VERSION__"
releaseBody: "See the assets to download this version and install."
releaseDraft: true
prerelease: false
includeUpdaterJson: false |
For the |
Actually, it's transitively pulling in a template folder through one of the dependencies, this might be easy to fix
|
Yeah setting all the |
For this, I've noticed the builds are mixing the compilation modes, I wonder if that's causing cache misses. For example, these are all logs from the same build
|
I'd recommend adding check, fmt, and clippy here as well for some general linting of the Rust code. There's an example of the setup here: https://github.com/ryantaylor/vault/blob/master/.github/workflows/checks.yml
The text was updated successfully, but these errors were encountered: