Skip to content

smissbot update

smissbot update #883

Workflow file for this run

name: Compile with SourceMod
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sm-version: [ '1.11.x' ]
# sm-version: [ '1.10.x', '1.10.6528', '1.11.x', '1.11.6467', '>= 1.11.6478']
include:
- sm-version: "1.11.x" # https://github.com/rumblefrog/setup-sp/issues/5
compiler-options: "-i=$includePath"
name: SM version ${{ matrix.sm-version }}
steps:
- uses: actions/checkout@v2
- name: Set environment variables
run: echo SCRIPTS_PATH=$(pwd) >> $GITHUB_ENV
- name: create folders
run: |
mkdir -p "./lib-include/stocksoup/tf/"
working-directory: ${{ env.SCRIPTS_PATH }}
- name: Setup SourcePawn Compiler ${{ matrix.SM_VERSION }}
id: Setup_SourcePawn
uses: rumblefrog/setup-sp@master
with:
version: ${{ matrix.sm-version }}
version-file: ./berobot_handler.sp
define-name: PLUGIN_VERSION
- name: diag for Setup_SourcePawn
run: |
echo outputs = ${{ join(steps.Setup_SourcePawn.outputs.*, ', ') }}
echo version = ${{ steps.Setup_SourcePawn.outputs.version }}
echo plugin-version = ${{ steps.Setup_SourcePawn.outputs.plugin-version }}
working-directory: ${{ env.SCRIPTS_PATH }}
# Dependecies
# nosoop/SM-TFUtils
- name: Download nosoop/SM-TFUtils
uses: Legion2/[email protected]
with:
repository: nosoop/SM-TFUtils
tag: '1.3.1.1'
path: './lib-include'
file: tf2utils.inc
# nosoop/tf2attributes
- name: Download nosoop/tf2attributes
uses: Legion2/[email protected]
with:
repository: nosoop/tf2attributes
tag: '1.7.1.1'
path: './lib-include'
file: tf2attributes.inc
# nosoop/SM-TFCustAttr
- name: Download nosoop/SM-TFCustAttr
uses: Legion2/[email protected]
with:
repository: nosoop/SM-TFCustAttr
tag: 'workflow-build8'
path: './lib-zips'
file: package.zip
- name: Unzip nosoop/SM-TFCustAttr
uses: montudor/action-zip@v1
with:
args: unzip -qq lib-zips/package.zip -d lib-zips/SM-TFCustAttr-workflow-build8
- name: copy nosoop/SM-TFCustAttr
uses: canastro/copy-file-action@master
with:
source: "lib-zips/SM-TFCustAttr-workflow-build8/scripting/include/tf_custom_attributes.inc"
target: "./lib-include/tf_custom_attributes.inc"
# nosoop/SM-TFOnTakeDamage
- name: Download nosoop/SM-TFOnTakeDamage
uses: Legion2/[email protected]
with:
repository: nosoop/SM-TFOnTakeDamage
tag: '1.2.0'
path: './lib-include'
file: tf_ontakedamage.inc
# morecolors.inc
- name: Download morecolors.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/JoinedSenses/SourceMod-IncludeLibrary/master/include/morecolors.inc'
location: './lib-include'
# peace-maker/DHooks2
- name: Download peace-maker/DHooks2
uses: Legion2/[email protected]
with:
repository: peace-maker/DHooks2
tag: 'v2.2.0-detours17'
path: './lib-zips'
file: dhooks-2.2.0-detours17-sm110.zip
- name: Unzip peace-maker/DHooks2
uses: montudor/action-zip@v1
with:
args: unzip -qq lib-zips/dhooks-2.2.0-detours17-sm110.zip -d lib-zips/dhooks-2.2.0-detours17-sm110
- name: copy peace-maker/DHooks2
uses: canastro/copy-file-action@master
with:
source: "lib-zips/dhooks-2.2.0-detours17-sm110/addons/sourcemod/scripting/include/dhooks.inc"
target: "./lib-include/dhooks.inc"
- name: Download particle.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/GIider/Upgrademod/master/third_party/sourcemod/scripting/include/particle.inc'
location: './lib-include'
# sm_logger.inc
- name: Download sm_logger.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/raziEiL/SM-Logger/master/scripting/include/sm_logger.inc'
location: './lib-include'
# tf2_isPlayerInSpawn.inc
- name: Download tf2_isPlayerInSpawn.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'http://ddhoward.com/sourcemod/updater/scripting/include/tf2_isPlayerInSpawn.inc'
location: './lib-include'
# stocksoup/client.inc
- name: Download stocksoup/client.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/client.inc'
location: './lib-include/stocksoup'
# stocksoup/tf/client.inc
- name: Download stocksoup/tf/client.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/tf/client.inc'
location: './lib-include/stocksoup/tf'
# stocksoup/tf/econ.inc
- name: Download econ.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/tf/econ.inc'
location: './lib-include/stocksoup/tf'
# stocksoup/tf/entity_prop_stocks.inc
- name: Download entity_prop_stocks.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/tf/entity_prop_stocks.inc'
location: './lib-include/stocksoup/tf'
# stocksoup/tf/teams.inc
- name: Download teams.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/tf/teams.inc'
location: './lib-include/stocksoup/tf'
# stocksoup/tf/tempents_stocks.inc
- name: Download tempents_stocks.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/tf/tempents_stocks.inc'
location: './lib-include/stocksoup/tf'
# stocksoup/string.inc
- name: Download string.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/string.inc'
location: './lib-include/stocksoup'
# stocksoup/var_strings.inc
- name: Download var_strings.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/var_strings.inc'
location: './lib-include/stocksoup'
# stocksoup/tf/entity_prefabs.inc
- name: Download tf entity_prefabs.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/tf/entity_prefabs.inc'
location: './lib-include/stocksoup/tf'
# stocksoup/tf/entity_prefabs.inc
- name: Download tf entity_prefabs.inc master
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/entity_prefabs.inc'
location: './lib-include/stocksoup'
- name: Download entity_prop_stocks.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/entity_prop_stocks.inc'
location: './lib-include/stocksoup'
# stocksoup/tf/entity_tools
- name: Download entity_tools.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/entity_tools.inc'
location: './lib-include/stocksoup'
# stocksoup/tf/entity_prefabs
- name: Download master entity_prefabs.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/entity_prefabs.inc'
location: './lib-include/stocksoup'
- name: Download master datapack.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/stocksoup/master/datapack.inc'
location: './lib-include/stocksoup'
# tf_cattr_buff_override.inc
- name: Download tf_cattr_buff_override.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/nosoop/SM-TFCustomAttributeStarterPack/master/scripting/include/tf_cattr_buff_override.inc'
location: './lib-include'
- name: Download tf2items.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/asherkin/TF2Items/master/pawn/tf2items.inc'
location: './lib-include'
# tf2wearables.inc
- name: Download tf2wearables.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/powerlord/sourcemod-tf2wearables/master/addons/sourcemod/scripting/include/tf2wearables.inc'
location: './lib-include'
# vphysics.inc
- name: Download vphysics.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/Alienmario/vphysics/patch-1/vphysics.inc'
location: './lib-include'
# smlib.inc & co
- name: Download smlib.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib.inc'
location: './lib-include'
- name: Download smlib/arrays.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/arrays.inc'
location: './lib-include/smlib'
- name: Download smlib/clients.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/clients.inc'
location: './lib-include/smlib'
- name: Download smlib/colors.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/colors.inc'
location: './lib-include/smlib'
- name: Download smlib/concommands.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/concommands.inc'
location: './lib-include/smlib'
- name: Download smlib/convars.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/convars.inc'
location: './lib-include/smlib'
- name: Download smlib/crypt.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/crypt.inc'
location: './lib-include/smlib'
- name: Download smlib/debug.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/debug.inc'
location: './lib-include/smlib'
- name: Download smlib/dynarrays.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/dynarrays.inc'
location: './lib-include/smlib'
- name: Download smlib/edicts.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/edicts.inc'
location: './lib-include/smlib'
- name: Download smlib/effects.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/effects.inc'
location: './lib-include/smlib'
- name: Download smlib/entities.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/entities.inc'
location: './lib-include/smlib'
- name: Download smlib/files.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/files.inc'
location: './lib-include/smlib'
- name: Download smlib/game.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/game.inc'
location: './lib-include/smlib'
- name: Download smlib/general.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/general.inc'
location: './lib-include/smlib'
- name: Download smlib/math.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/math.inc'
location: './lib-include/smlib'
- name: Download smlib/menus.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/menus.inc'
location: './lib-include/smlib'
- name: Download smlib/server.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/server.inc'
location: './lib-include/smlib'
- name: Download smlib/sql.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/sql.inc'
location: './lib-include/smlib'
- name: Download smlib/strings.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/strings.inc'
location: './lib-include/smlib'
- name: Download smlib/teams.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/teams.inc'
location: './lib-include/smlib'
- name: Download smlib/vehicles.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/vehicles.inc'
location: './lib-include/smlib'
- name: Download smlib/weapons.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/weapons.inc'
location: './lib-include/smlib'
- name: Download smlib/world.inc
uses: carlosperate/download-file-action@v1
with:
file-url: 'https://raw.githubusercontent.com/bcserv/smlib/transitional_syntax/scripting/include/smlib/world.inc'
location: './lib-include/smlib'
# Compile
- name: Compile plugins
run: |
mkdir plugins
for file in *.sp;
do
if [[ $file == "joke"* ]]; then
echo "skipping " $file
continue;
fi
if [[ $file == *"dont_compile"* ]]; then
echo "skipping " $file
continue;
fi
if [[ $file == *"don_compile"* ]]; then
echo "skipping " $file
continue;
fi
if [[ $file == *"test"* ]]; then
echo "skipping " $file
continue;
fi
echo -e "\nCompiling $file..."
spcomp -O2 -v2 ${{ matrix.compiler-options }} -i include -i lib-include -o "plugins/$(basename -- "$file" .sp).smx" $file
done
echo "===OUT FILES==="
ls
echo "===PLUGINS FILES==="
cd plugins
ls
echo "===VERSIONS==="
echo version = ${{ steps.Setup_SourcePawn.outputs.version }}
echo plugin-version = ${{ steps.Setup_SourcePawn.outputs.plugin-version }}
working-directory: ${{ env.SCRIPTS_PATH }}