Build CI: Specify branch #808
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build CI - Runs on demand and requires some inputs | |
name: Build | |
on: | |
workflow_dispatch: | |
inputs: | |
swift-version: | |
type: string | |
required: true | |
description: The version to use for the Swift package | |
kotlin-version: | |
type: string | |
required: true | |
description: The version to use for the Kotlin & Android packages | |
python-version: | |
type: string | |
required: true | |
description: The version to use for the Python package | |
cs-version: | |
type: string | |
required: true | |
description: The version to use for the C# package | |
ref: | |
type: string | |
default: "main" | |
description: The branch, tag, or sha to checkout - default to "main". | |
push: | |
# TODO: Remove! | |
# Temporary due to workflow dispatch restrictions | |
env: | |
CARGO_TERM_COLOR: always | |
# TODO: Remove! | |
# Temporary due to workflow dispatch restrictions | |
INPUT_REF: main | |
jobs: | |
build-schemas-and-test-kit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: $INPUT_REF | |
- name: Install Rust Toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2023-11-24 | |
override: true | |
profile: minimal | |
- name: Run sccache-cache | |
uses: mozilla-actions/[email protected] | |
- name: Generate Test Kit | |
run: cargo run | |
env: | |
# Enable sccache | |
SCCACHE_GHA_ENABLED: "true" | |
RUSTC_WRAPPER: "sccache" | |
working-directory: crates/generator | |
- name: Upload Generated Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: "schemas-and-test-kit" | |
path: "crates/generator/output" |