-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat(ci/cachix): add cachix as garnix fallback #36
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: kaeeraa <[email protected]>
Signed-off-by: kaeeraa <[email protected]>
Signed-off-by: kaeeraa <[email protected]>
Signed-off-by: kaeeraa <[email protected]>
Signed-off-by: kaeeraa <[email protected]>
Signed-off-by: kaeeraa <[email protected]>
Signed-off-by: kaeeraa <[email protected]>
Signed-off-by: kaeeraa <[email protected]>
Signed-off-by: kaeeraa <[email protected]>
Signed-off-by: kaeeraa <[email protected]>
Signed-off-by: kaeeraa <[email protected]>
kaeeraa
added
[0] : 3-rd Party
Libs and other stuff
[2] : Feature
A new functionality for Freesm Launcher.
[2] : Documentation
Updates or additions to documentation.
[3] : Priority: Medium
Medium-priority task.
[4] : Complexity: Medium
A moderately challenging task.
[5] : Status: Ready for Review
[6] : Platform: Linux
Tasks related to Linux platform.
[6] : Platform: macOS
Tasks related to macOS platform.
[8] : User: Developers
Tasks aimed at developers.
[8] : User: End-Users
Tasks aimed at end-users.
labels
Jan 24, 2025
skip all test; merge |
s0me1newithhand7s
approved these changes
Jan 24, 2025
Signed-off-by: kaeeraa <[email protected]>
s0me1newithhand7s
approved these changes
Jan 24, 2025
notwindstone
approved these changes
Jan 24, 2025
Signed-off-by: kaeeraa <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
[0] : 3-rd Party
Libs and other stuff
[2] : Documentation
Updates or additions to documentation.
[2] : Feature
A new functionality for Freesm Launcher.
[3] : Priority: Medium
Medium-priority task.
[4] : Complexity: Medium
A moderately challenging task.
[6] : Platform: Linux
Tasks related to Linux platform.
[6] : Platform: macOS
Tasks related to macOS platform.
[8] : User: Developers
Tasks aimed at developers.
[8] : User: End-Users
Tasks aimed at end-users.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New GitHub Actions Workflow (
cachix.yml
):A new GitHub Actions workflow has been introduced to automate the build process and caching mechanism using Cachix. This workflow is triggered when the Garnix check
Evaluate flake.nix
fails, acting as a fallback to ensure a smooth build process. When triggered, it automatically builds the project withnix-build
and pushes the build outputs to Cachix, enabling caching to speed up future builds and avoid redundant processing.This improvement significantly reduces the overhead of rebuilding unchanged components and optimizes the overall CI/CD pipeline by utilizing caching as a strategy for efficient build management.
Key Highlights:
Evaluate flake.nix
fails, indicating the need for a rebuild and cache.nix-build
to perform the actual build.Changes
Implement Cachix Workflow
The main addition in this PR is the implementation of the Cachix workflow in the GitHub Actions configuration:
nix-build
command is used to automatically rebuild the project, ensuring that the latest changes are applied.This mechanism ensures that failed builds don't require manual intervention and that caching provides an efficient solution to repetitive build processes.
Update Nix Documentation
nix/README.md
:This update provides more comprehensive guidance for developers using NixOS, helping them take full advantage of both binary caching systems.
Refactor of Documentation:
README.md
:README.md
file has undergone minor cosmetic changes, including the addition of blank lines to improve the document's readability. These small improvements make the structure of the file cleaner and easier to navigate, especially in the sections related to language selection.PR Description:
New GitHub Actions Workflow (
cachix.yml
): A new workflow has been introduced to automate builds and caching using Cachix. The workflow is triggered when theEvaluate flake.nix
check fails, acting as a fallback mechanism to rebuild the project and push the build outputs to Cachix for efficient caching. This improves the CI/CD pipeline by reducing unnecessary rebuilds and speeding up the build process.Update Nix Documentation:
nix/README.md
: Added details on using Cachix as a fallback for binary caching alongside Garnix CI. Updated instructions for setting up FreesmLauncher on NixOS, making the setup process clearer and more efficient.Refactor of Documentation:
README.md
: Cosmetic changes were made, particularly around the language selection section, to improve readability and structure. These minor updates enhance the visual flow of the documentation and make it easier to read.This PR brings improvements to the build process through Cachix integration, alongside refinements in the documentation to make setup and configuration clearer for users.
Note
I can't test it, because this: