Compiling Dart to Native Executables for Windows, Linux and macOS with GitHub Actions

1 · Danny Tuppeny · Nov. 17, 2019, 4:18 p.m.
Compiling Dart to Native Executables for Windows, Linux and macOS using GitHub Actions Dart v2.6 includes dart2native - a new tool for compiling Dart scripts to native executables for Windows, Linux and macOS. Currently there’s no cross-compilation support (see dart-lang/sdk#28617) so each binary needs to be compiled from the correct OS. Cloud services like GitHub Actions make it very easy to run code on different OSes so I created a sample repo that compiles a simple Dart script to native execu...