Skip to content

Commit

Permalink
ensure omicron-common can be built outside of omicron (#5795)
Browse files Browse the repository at this point in the history
  • Loading branch information
iliana authored May 20, 2024
1 parent 13b56f9 commit b79c1f8
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/buildomat/jobs/omicron-common.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
#:
#: name = "omicron-common (helios)"
#: variety = "basic"
#: target = "helios-2.0"
#: rust_toolchain = "1.77.2"
#: output_rules = []
#: skip_clone = true

# Verify that omicron-common builds successfully when used as a dependency
# in an external project. It must not leak anything that requires an external
# dependency (apart from OpenSSL/pkg-config).

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

cargo --version
rustc --version

cargo new --lib test-project
cd test-project
cargo add omicron-common \
--git https://github.com/oxidecomputer/omicron.git \
--rev "$GITHUB_SHA"
cargo check
cargo build --release

0 comments on commit b79c1f8

Please sign in to comment.