mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
* bump action versions to fix build warnings * resolve warning on set-output * Replace replace toolchain action with rustup cmd * fix syntax * run apt-get update before installing * use apt-get
35 lines
701 B
YAML
35 lines
701 B
YAML
name: Reusable Workflow
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
build_command:
|
|
required: true
|
|
type: string
|
|
artifact_name:
|
|
required: true
|
|
type: string
|
|
artifact_path:
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
generic_build_job:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 60
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
- name: Build image
|
|
run: ${{ inputs.build_command }}
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: ${{ inputs.artifact_name }}
|
|
path: ${{ inputs.artifact_path }}
|