Skip to content

Prepare extension for x64 build #33

Prepare extension for x64 build

Prepare extension for x64 build #33

Workflow file for this run

name: SourcePawn CI
on:
workflow_call:
pull_request:
branches: [ master ]
jobs:
build-options:
runs-on: ubuntu-latest
outputs:
exclude: ${{ steps.set.outputs.exclude }}
steps:
- id: set
run: |
echo "exclude=[${{ github.event_name == 'push' && '{"platform": { "release": false } }' || '' }}]" >> $GITHUB_OUTPUT
build:
needs: build-options
strategy:
matrix:
platform: [
{ name: Stable, sm-version: '1.11.x', release: true }
]
exclude: ${{ fromJson(needs.build-options.outputs.exclude) }}
name: SM (${{ matrix.platform.name }})
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- uses: actions/setup-python@v3
name: Setup Python 3.8
with:
python-version: '3.8'
- name: Install AMBuild
run: |
python -m pip install --upgrade pip setuptools wheel
pip install git+https://github.com/alliedmodders/ambuild
- name: Setup SP
uses: rumblefrog/setup-sp@master
with:
version: ${{ matrix.platform.sm-version }}
no-spcomp-proxy: true
- name: Build
run: |
mkdir -p build && cd build
python ../configure.py --scripting-only
ambuild
- name: Upload artifact
if: github.event_name == 'push' && matrix.platform.release
uses: actions/upload-artifact@v3
with:
name: cbasenpc_plugins
path: build/package