# Runs a single command using the runners shell
- name: Build a release build
run: cmd.exe /c 'build.bat 1'
+
+ - name: Upload executable file
+ uses: actions/upload-artifact@v2
+ with:
+ name: executable
+ path: onyx.exe
// in anyway.
-// It is expected that a file will be included that will be part
-// of the system package
-
use package runtime as runtime
#if runtime.Runtime == runtime.Runtime_Custom {
#error "'stdio' can only be included in the 'wasi' or 'js' runtime."
for elem: slice do printf("%i ", elem);
print("\n");
- // Another equivalent way of writing lines 21 and 22 is to
+ // Another equivalent way of writing lines 22 and 23 is to
// use the array subscript notation, but provide a range for
// the index as so. This is generally called the slice literal
// notation.
bh_arr_push(elem_queue, ((PolySolveElem) {
.type_expr = (AstType*) ((AstArrayType *) elem.type_expr)->count_expr,
.kind = PSK_Value,
+
+ // CLEANUP: Making an integer literal every time is very very very gross. This should
+ // at least be cached or something.
.value = (AstTyped *) make_int_literal(context.ast_alloc, elem.actual->Array.count)
}));