clean up github workflow file and build rcbot plugin #4
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
name: Build Everything | |
description: A composite action to build all repositories. | |
inputs: | |
cmake-args: | |
description: cmake generate options | |
default: | |
required: false | |
cmd-shell: | |
description: shell to execute commands with | |
default: | |
required: true | |
runs: | |
using: "composite" | |
steps: | |
- name: Build server | |
shell: ${{ inputs.cmd-shell }} | |
run: | | |
mkdir build | |
cd build | |
cmake .. ${{ inputs.cmake-args }} -DBUILD_CLIENT=OFF -DBUILD_SERVER=ON -DBUILD_PLUGINS=OFF | |
cmake --build . --config Release | |
- name: Build plugins | |
shell: ${{ inputs.cmd-shell }} | |
run: | | |
cd build | |
cmake .. ${{ inputs.cmake-args }} -DBUILD_CLIENT=OFF -DBUILD_SERVER=ON -DBUILD_PLUGINS=ON | |
cmake --build . --config Release | |
- name: Build client | |
shell: ${{ inputs.cmd-shell }} | |
run: | | |
cd build | |
cmake .. ${{ inputs.cmake-args }} -DBUILD_CLIENT=ON -DBUILD_SERVER=OFF -DBUILD_PLUGINS=OFF | |
cmake --build . --config Release |