Skip to content

add basic CI for generic tests#4

Merged
bratpiorka merged 2 commits into
oneapi-src:mainfrom
bratpiorka:rrudnick_basic_yml
Jul 16, 2026
Merged

add basic CI for generic tests#4
bratpiorka merged 2 commits into
oneapi-src:mainfrom
bratpiorka:rrudnick_basic_yml

Conversation

@bratpiorka

@bratpiorka bratpiorka commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

add basic CI for generic tests and docs generation
example of docs: https://bratpiorka.github.io/oneapi-rs

NOTE: Temporarily disable linking to libze_loader, as it is not installed on generic GitHub machines.

@bratpiorka
bratpiorka force-pushed the rrudnick_basic_yml branch 7 times, most recently from 9612a1f to c6925ed Compare July 14, 2026 16:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a basic GitHub Actions workflow to build/test the workspace on Linux and optionally generate & publish Rust docs to GitHub Pages, alongside a small cleanup in the oneapi-rs-sys build script.

Changes:

  • Introduces .github/workflows/basic.yml to install oneAPI, build, run tests, and (optionally) generate + deploy cargo doc output to GitHub Pages.
  • Adjusts oneapi-rs-sys/build.rs formatting and stops explicitly linking ze_loader (now commented out).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
oneapi-rs-sys/build.rs Minor build-script cleanup and link directive adjustment.
.github/workflows/basic.yml New CI workflow for build/test plus on-demand docs generation and Pages deployment.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/basic.yml
Comment thread .github/workflows/basic.yml Outdated

@szymon-zadworny szymon-zadworny left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow seems alright, although the final URL looks redundant because the website hosts the docs for two crates:

Image

Currently there's no way for end users to access oneapi-rs-sys docs apart from entering that URL manually. That crate doesn't have any custom docs either, just like other cxx -sys crates. Maybe we should only publish the oneapi-rs docs and ignore the sys crate? This would simplify the URL.

Comment thread .github/workflows/basic.yml Outdated
Comment on lines +67 to +82
- name: Add documentation landing page
if: github.event_name == 'workflow_dispatch' && inputs.generate_documentation
run: |
cat > target/doc/index.html <<'HTML'
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=oneapi_rs/">
<title>oneapi-rs documentation</title>
</head>
<body>
<p><a href="oneapi_rs/">oneapi-rs documentation</a></p>
</body>
</html>
HTML

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently there's no way to access oneapi-rs-sys docs.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now only documentation for oneapi-rs is generated

Comment thread oneapi-rs-sys/build.rs Outdated

println!("cargo::rustc-link-lib=sycl");
println!("cargo::rustc-link-lib=ze_loader");
// println!("cargo::rustc-link-lib=ze_loader");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment isn't necessary.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@bratpiorka
bratpiorka force-pushed the rrudnick_basic_yml branch 2 times, most recently from 431c59f to f1ff86c Compare July 16, 2026 08:12
@bratpiorka
bratpiorka requested a review from Copilot July 16, 2026 08:12
@bratpiorka
bratpiorka force-pushed the rrudnick_basic_yml branch from f1ff86c to 11e8a2c Compare July 16, 2026 08:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Comment thread oneapi-rs-sys/build.rs
Comment thread .github/workflows/basic.yml
Comment thread .github/workflows/basic.yml Outdated

@szymon-zadworny szymon-zadworny left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, we can merge this

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@bratpiorka
bratpiorka merged commit afa0453 into oneapi-src:main Jul 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants