Skip to content

Build CI: Specify branch #807

Build CI: Specify branch

Build CI: Specify branch #807

Workflow file for this run

# 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
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"