Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ runs:
- name: Setup | Trunk
shell: bash
run: cargo binstall trunk --no-confirm --force

- name: Setup | Cargo llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
16 changes: 12 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,19 @@ jobs:
run: RUSTDOCFLAGS="--deny warnings" cargo make doc-wasm

- name: Build | Example (Native)
run: cargo make build -p native_example
run: cargo make build -p native_example && cargo clean -p native_example

- name: Build | Example (WASM)
working-directory: ./examples/wasm
run: trunk build
run: trunk build && cargo clean --target wasm32-unknown-unknown

- name: Run | Tests
run: cargo make test
- name: Run | Test
run: cargo make coverage --lcov --output-path lcov.info

- name: Upload | Coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }} # required for private repos or protected branches
slug: Xila-Project/Core
files: lcov.info
fail_ci_if_error: true
7 changes: 7 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[config]
default_to_workspace = false
init_task = "generate-fonts"
skip_core_tasks = true

[tasks.install-tools]
command = "npm"
Expand Down Expand Up @@ -125,5 +126,11 @@ toolchain = "stable"
command = "cargo"
args = ["build", "${@}"]

[tasks.coverage]
install_crate = "cargo-llvm-cov"
toolchain = "stable"
command = "cargo"
args = ["llvm-cov", "--workspace", "${@}"]

[tasks.before-commit]
dependencies = ["format", "check", "doc", "clippy"]
4 changes: 2 additions & 2 deletions modules/task/src/manager/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,8 @@ async fn test_get_children() {
.await
.unwrap();

// Check that root task has exactly 2 more children
// Check that root task contains both children
let children = manager.get_children(root_task).await.unwrap();
assert_eq!(children.len(), initial_count + 2);
assert!(children.contains(&child1_task));
assert!(children.contains(&child2_task));

Expand Down Expand Up @@ -620,6 +619,7 @@ async fn test_multiple_generation_relationships() {
get_instance().get_parent(level3_task).await.unwrap(),
level2_task
);
crate::sleep(Duration::from_millis(50)).await;
},
)
.await
Expand Down
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<h1 align="center">Xila core</h1>

[![codecov](https://codecov.io/github/Xila-Project/Core/graph/badge.svg?token=01M6GQFBEC)](https://codecov.io/github/Xila-Project/Core)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

## 📝 Description

This repository contains the core of Xila. It contains the code for xila's core functionalities like task management, file system, virtual machine, graphics, drivers, etc.
Expand Down