Merge pull request #154 from Maxximou5/dependabot/github_actions/dot-… #22
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.11.x' ] | |
name: SM version ${{ matrix.sm-version }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup SourcePawn Compiler | |
id: setup | |
uses: rumblefrog/setup-sp@master | |
with: | |
version: ${{ matrix.sm-version }} | |
- name: Create plugins directory | |
run: mkdir -p 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 |