mirror of
https://github.com/ivabus/pantry
synced 2024-11-15 13:05:08 +03:00
40 lines
971 B
YAML
40 lines
971 B
YAML
|
name: tea/pantry/get-platform
|
||
|
description: Outputs the platform spec we need for builds
|
||
|
|
||
|
inputs:
|
||
|
platform:
|
||
|
description: >
|
||
|
The platform+arch to get specs for
|
||
|
required: true
|
||
|
|
||
|
outputs:
|
||
|
os:
|
||
|
description: the OS for general tasks
|
||
|
value: ${{ steps.platform.outputs.os }}
|
||
|
build-os:
|
||
|
description: the OS for build tasks
|
||
|
value: ${{ steps.platform.outputs.build-os }}
|
||
|
container:
|
||
|
description: the container for build tasks
|
||
|
value: ${{ steps.platform.outputs.container }}
|
||
|
test-matrix:
|
||
|
description: the matrix of os/containers for test tasks
|
||
|
value: ${{ steps.platform.outputs.test-matrix }}
|
||
|
|
||
|
runs:
|
||
|
using: composite
|
||
|
steps:
|
||
|
- uses: teaxyz/setup@v0
|
||
|
with:
|
||
|
srcroot: null
|
||
|
|
||
|
- uses: teaxyz/pantry.core/.github/actions/cache@main
|
||
|
with:
|
||
|
cache-name: get-platform
|
||
|
|
||
|
- run: ${{github.action_path}}/get-platform.ts
|
||
|
shell: sh
|
||
|
id: platform
|
||
|
env:
|
||
|
PLATFORM: ${{ inputs.platform }}
|