Skip to content

illumos: add CI using Buildomat #4010

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
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
5 changes: 5 additions & 0 deletions .github/buildomat/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Buildomat CI

For builds on illumos, we use Oxide Computer's [Buildomat CI](https://github.com/oxidecomputer/buildomat).

Compute resources for CI are provided by Oxide Computer.
20 changes: 20 additions & 0 deletions .github/buildomat/build-and-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/env bash

set -o errexit
set -o pipefail
set -o xtrace

# Enable ANSI colors in Cargo output.
export CARGO_TERM_COLOR=always

cargo --version
rustc --version

banner libc
ptime -m cargo build --verbose

banner test
ptime -m cargo test --verbose

banner libctest
ptime -m cargo test --verbose --manifest-path libc-test/Cargo.toml
7 changes: 7 additions & 0 deletions .github/buildomat/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Configuration for buildomat. See
# https://github.com/oxidecomputer/buildomat?tab=readme-ov-file#per-repository-configuration.

enable = true
# The buildomat jobs don't have access to any secrets, so it's okay for GitHub
# users to create them.
org_only = false
8 changes: 8 additions & 0 deletions .github/buildomat/jobs/x86_64-unknown-illumos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/env bash
#:
#: name = "x86_64-unknown-illumos"
#: variety = "basic"
#: target = "helios-latest"
#: rust_toolchain = "stable"

exec .github/buildomat/build-and-test.sh illumos