Skip to content

Commit 380f101

Browse files
authored
Merge pull request #222 from roc-lang/init-ci-check
init() ci check
2 parents f63d6e1 + 7f8d8a4 commit 380f101

4 files changed

Lines changed: 14 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
operating-system: [ubuntu-20.04, ubuntu-22.04]
1717
steps:
1818
- uses: actions/checkout@v3
19+
20+
- name: Does init() in platform/src/lib.rs contain all roc_fx functions? (Imperfect check)
21+
run: cat platform/src/lib.rs | grep -oP 'roc_fx_[^(\s]*' | sort | uniq -u | grep -q . && exit 1 || exit 0
1922

2023
- id: try_fetching_testing_release
2124
continue-on-error: true

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
rust-overlay = {
1111
url = "github:oxalica/rust-overlay";
1212
inputs.nixpkgs.follows = "nixpkgs";
13-
inputs.flake-utils.follows = "flake-utils";
1413
};
1514
# to easily make configs for multiple architectures
1615
flake-utils.url = "github:numtide/flake-utils";

platform/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,11 @@ pub fn init() {
273273
roc_fx_ttyModeRaw as _,
274274
roc_fx_fileWriteUtf8 as _,
275275
roc_fx_fileWriteBytes as _,
276+
roc_fx_pathType as _,
276277
roc_fx_fileReadBytes as _,
278+
roc_fx_fileReader as _,
279+
roc_fx_fileReadLine as _,
280+
roc_fx_closeFile as _,
277281
roc_fx_fileDelete as _,
278282
roc_fx_cwd as _,
279283
roc_fx_posixTime as _,
@@ -292,7 +296,7 @@ pub fn init() {
292296
roc_fx_dirCreateAll as _,
293297
roc_fx_dirDeleteEmpty as _,
294298
roc_fx_dirDeleteAll as _,
295-
roc_fx_pathType as _,
299+
roc_fx_currentArchOS as _,
296300
];
297301
#[allow(forgetting_references)]
298302
std::mem::forget(std::hint::black_box(funcs));

0 commit comments

Comments
 (0)