Acton Projects

Besides compiling individual .act files, it is possible to organize Acton source files into a an Acton Project, which simplifies many common tasks.

Use actonc to create a project called foo:

actonc new foo

Output:

Created project foo
Enter your new project directory with:
  cd foo
Compile:
  actonc build
Run:
  ./out/bin/foo

Description

Use actonc build to build a project. The current working directory must be the project directory or a sub-directory to the project directory. actonc will discover all source files and compile them according to dependency order.

Add a main actor to any source file directly under src/ to produce an executable binary. For example, if src/hello.act contains a main actor, it will produce out/bin/hello using main as the root actor.