Skip to content
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

Replace Acton.toml with build.act #1841

Open
plajjan opened this issue Aug 15, 2024 · 1 comment
Open

Replace Acton.toml with build.act #1841

plajjan opened this issue Aug 15, 2024 · 1 comment

Comments

@plajjan
Copy link
Contributor

plajjan commented Aug 15, 2024

We should do the zig trick and have a build.act. It should be an Acton source file that is compiled and then in turn gets to build the project. We should have a standard function in our stdlib to build a vanilla Acton project.

so build.act itself marks the root of an Acton project. We can start with this step, ie. build.act can be empty and everying will work like today (where we have an empty Acton.toml).

The second step is to actually compile the build.act file and thus allow customizations.

Longer term, I'm not sure if an empty build.act should be a shorthand for letting acton build do a standard vanilla project build or if we should require some basic skeleton in build.act even for the most basic of builds.

import build

def build(env):
    build.build()

Although just after writing this.. once more I'm inclined to walk in the steps of zig. Maybe this should be a pure function, pureish at least and just return a build graph that is later executed?or something like that

@plajjan
Copy link
Contributor Author

plajjan commented Aug 15, 2024

Hmm, or maybe we should do the zig trick with a build.act instead?

@plajjan plajjan changed the title Replace Acton.toml with Acton.json Replace Acton.toml with build.act (or Acton.json?) Aug 15, 2024
@plajjan plajjan changed the title Replace Acton.toml with build.act (or Acton.json?) Replace Acton.toml with build.act Aug 18, 2024
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

No branches or pull requests

1 participant