pub struct GithubRunnerConfigInput {
pub runner: Option<GithubRunner>,
pub host: Option<TripleName>,
pub container: Option<StringLikeOr<ContainerImage, ContainerConfigInput>>,
}Expand description
The version of GithubRunnerConfig that’s deserialized from the config file: it
has optional fields that are computed later.
Fields§
§runner: Option<GithubRunner>GHA’s runs-on key: Github Runner image to use, see https://github.com/actions/runner-images
and https://docs.github.com/en/actions/writing-workflows/choosing-where-your-workflow-runs/choosing-the-runner-for-a-job
This is not necessarily a well-known runner, it could be something self-hosted, it could be from BuildJet, Namespace, etc.
If not specified, container has to be set.
host: Option<TripleName>Host triple of the runner (well-known, custom, or best guess).
If the runner is one of GitHub’s official runner images, the platform
is hardcoded. If it’s custom, then we have a target_triple => runner in the config
container: Option<StringLikeOr<ContainerImage, ContainerConfigInput>>Container image to run the job in, using GitHub’s builtin container support, see https://docs.github.com/en/actions/writing-workflows/choosing-where-your-workflow-runs/running-jobs-in-a-container
This doesn’t allow mounting volumes, or anything, because we’re only able
to set the container key to something stringy
If not specified, runner has to be set.
Trait Implementations§
Source§impl Clone for GithubRunnerConfigInput
impl Clone for GithubRunnerConfigInput
Source§fn clone(&self) -> GithubRunnerConfigInput
fn clone(&self) -> GithubRunnerConfigInput
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GithubRunnerConfigInput
impl Debug for GithubRunnerConfigInput
Source§impl<'de> Deserialize<'de> for GithubRunnerConfigInput
impl<'de> Deserialize<'de> for GithubRunnerConfigInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for GithubRunnerConfigInput
impl JsonSchema for GithubRunnerConfigInput
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for GithubRunnerConfigInput
impl RefUnwindSafe for GithubRunnerConfigInput
impl Send for GithubRunnerConfigInput
impl Sync for GithubRunnerConfigInput
impl Unpin for GithubRunnerConfigInput
impl UnwindSafe for GithubRunnerConfigInput
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)