mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-30 22:05:45 -05:00
* Print checksums in log * Log if tests were skipped * Switch to gh-release action version 1
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
name: 'Package plugin'
|
|
description: 'Packages the plugin for specified architecture and build config.'
|
|
inputs:
|
|
target:
|
|
description: 'Build target'
|
|
required: true
|
|
workingDirectory:
|
|
description: 'Working directory'
|
|
required: false
|
|
default: ${{ github.workspace }}
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- name: Run macOS tests
|
|
if: ${{ runner.os == 'macOS' }}
|
|
shell: zsh {0}
|
|
run: |
|
|
if [[ '${{ inputs.target }}' != 'x86_64' ]]; then
|
|
echo tests skipped!
|
|
exit 0
|
|
fi
|
|
${{ inputs.workingDirectory }}/build_x86_64/tests/advanced-scene-switcher-tests
|
|
|
|
- name: Run Linux packaging
|
|
if: ${{ runner.os == 'Linux' }}
|
|
shell: bash
|
|
run: |
|
|
if [[ '${{ inputs.target }}' != 'x86_64' ]]; then
|
|
exit 0
|
|
fi
|
|
${{ inputs.workingDirectory }}/build_x86_64/tests/advanced-scene-switcher-tests
|
|
|
|
- name: Run Windows packaging
|
|
if: ${{ runner.os == 'Windows' }}
|
|
shell: pwsh
|
|
run: |
|
|
${{ inputs.workingDirectory }}/build_x64/tests/RelWithDebInfo/advanced-scene-switcher-tests.exe
|