The long awaited v3 that was slow to release. #15
Workflow file for this run
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: Compile Plugin | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
sm-version: [ '1.10.x', '1.11.x' ] | |
name: SM version ${{ matrix.sm-version }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup SourcePawn Compiler | |
id: setup | |
uses: rumblefrog/[email protected] | |
with: | |
version: ${{ matrix.sm-version }} | |
- name: Create plugins directory | |
run: mkdir plugins | |
- run: spcomp -i scripting/include scripting/deathmatch.sp -o plugins/deathmatch.smx | |
- run: spcomp -i scripting/include scripting/deathmatch_loader.sp -o plugins/deathmatch_loader.smx | |
- name: Prepare files for artifact | |
run: | | |
mkdir artifact | |
mv ./configs ./artifact | |
mv ./plugins ./artifact/ | |
mv ./scripting ./artifact/ | |
mv ./translations ./artifact | |
mv ./LICENSE ./artifact/ | |
mv ./CHANGELOG.md ./artifact | |
mv ./README.md ./artifact | |
- name: Upload compiled plugin | |
uses: actions/upload-artifact@v1 | |
with: | |
name: Compiled plugin with SM ${{ steps.setup.outputs.version }} | |
path: artifact |