Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rumblefrog/setup-sp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.2.0
Choose a base ref
...
head repository: rumblefrog/setup-sp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Nov 15, 2019

  1. git: linguist vendored

    rumblefrog committed Nov 15, 2019
    Copy the full SHA
    2f49bf7 View commit details
  2. readme: usage

    rumblefrog committed Nov 15, 2019
    Copy the full SHA
    60d8d11 View commit details
  3. Copy the full SHA
    00c4cc4 View commit details

Commits on Nov 16, 2019

  1. readme: fix examples

    rumblefrog committed Nov 16, 2019
    Copy the full SHA
    c430500 View commit details
  2. dep: remove actions/io

    rumblefrog committed Nov 16, 2019
    Copy the full SHA
    ab5eeee View commit details
  3. refactor(scraper): use typed rest client

    Typed rest client is already available as a result of dependency of Github toolchains
    
    So instead of including additional axios, we'll use already existing lib
    rumblefrog committed Nov 16, 2019
    Copy the full SHA
    27193c7 View commit details
  4. refactor: file structuring

    rumblefrog committed Nov 16, 2019
    Copy the full SHA
    55e254e View commit details
  5. Copy the full SHA
    e88cc01 View commit details
  6. workflow: self test

    rumblefrog committed Nov 16, 2019
    Copy the full SHA
    4757c18 View commit details

Commits on Nov 18, 2019

  1. git: code owners

    rumblefrog committed Nov 18, 2019
    Copy the full SHA
    996a1c6 View commit details
  2. Copy the full SHA
    50d937a View commit details

Commits on Oct 1, 2020

  1. Copy the full SHA
    526815d View commit details
  2. Copy the full SHA
    5eb379e View commit details

Commits on Oct 14, 2020

  1. Copy the full SHA
    52bce41 View commit details

Commits on Oct 8, 2021

  1. Add a parser to get the version of the .sp plugin (#4)

    * Add a parser for plugin versions
    
    * Added webpack to bundle the files
    
    * Fix https to http redirect error
    Sarrus1 authored Oct 8, 2021
    Copy the full SHA
    15e37fb View commit details

Commits on Jul 6, 2022

  1. fix: sp 1.12+ include path resolution (#6)

    * fix: missing & outdated dependencies
    
    * fix: sp 1.12+ include path resolution
    
    * ci: separate ci flow for dev
    rumblefrog authored Jul 6, 2022
    Copy the full SHA
    7efa536 View commit details

Commits on Jul 14, 2022

  1. Copy the full SHA
    434d319 View commit details

Commits on Nov 19, 2022

  1. build(deps): bump @actions/core from 1.9.0 to 1.9.1 (#10)

    Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.9.0 to 1.9.1.
    - [Release notes](https://github.com/actions/toolkit/releases)
    - [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
    - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)
    
    ---
    updated-dependencies:
    - dependency-name: "@actions/core"
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 19, 2022
    Copy the full SHA
    9ad64e7 View commit details
  2. build(deps): bump terser from 5.14.1 to 5.14.2 (#9)

    Bumps [terser](https://github.com/terser/terser) from 5.14.1 to 5.14.2.
    - [Release notes](https://github.com/terser/terser/releases)
    - [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/terser/terser/commits)
    
    ---
    updated-dependencies:
    - dependency-name: terser
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 19, 2022
    Copy the full SHA
    a2fd5b0 View commit details

Commits on Mar 13, 2023

  1. Copy the full SHA
    047c881 View commit details

Commits on Jul 25, 2023

  1. Update parser.ts to fully support semver (#15)

    * Update parser.ts to fully support semver
    
    * Update parser.ts
    flleeppyy authored Jul 25, 2023
    Copy the full SHA
    3370e14 View commit details

Commits on Aug 26, 2023

  1. build(deps): bump semver from 7.3.8 to 7.5.2 (#12)

    Bumps [semver](https://github.com/npm/node-semver) from 7.3.8 to 7.5.2.
    - [Release notes](https://github.com/npm/node-semver/releases)
    - [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md)
    - [Commits](npm/node-semver@v7.3.8...v7.5.2)
    
    ---
    updated-dependencies:
    - dependency-name: semver
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 26, 2023
    Copy the full SHA
    e00b8ef View commit details

Commits on Aug 31, 2024

  1. build(deps-dev): bump webpack from 5.76.1 to 5.94.0 (#19)

    Bumps [webpack](https://github.com/webpack/webpack) from 5.76.1 to 5.94.0.
    - [Release notes](https://github.com/webpack/webpack/releases)
    - [Commits](webpack/webpack@v5.76.1...v5.94.0)
    
    ---
    updated-dependencies:
    - dependency-name: webpack
      dependency-type: direct:development
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 31, 2024
    Copy the full SHA
    dd2bdd2 View commit details
  2. build(deps): bump braces from 3.0.2 to 3.0.3 (#18)

    Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
    - [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
    - [Commits](micromatch/braces@3.0.2...3.0.3)
    
    ---
    updated-dependencies:
    - dependency-name: braces
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 31, 2024
    Copy the full SHA
    d1149d2 View commit details
  3. Copy the full SHA
    477b2e4 View commit details
  4. Copy the full SHA
    bb7306e View commit details
Showing 343 changed files with 2,296 additions and 40,490 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
lib/* linguist-vendored
node_modules/* linguist-vendored
__tests__/* linguist-vendored
27 changes: 27 additions & 0 deletions .github/workflows/dev_workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Development Workflow

on:
push:
branches-ignore:
- 'master'

jobs:
run:
name: Run action
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Setup SourcePawn Compiler
uses: ./
with:
version: "1.12.x"

- name: Verify compiler
run: |
which spcomp
echo $includePath
ls -l $scriptingPath
cat $(which spcomp)
spcomp __tests__/compile.sp
27 changes: 27 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Main Workflow

on:
push:
branches:
- 'master'

jobs:
run:
name: Run action
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Setup SourcePawn Compiler
uses: rumblefrog/setup-sp@master
with:
version: "1.12.x"

- name: Verify compiler
run: |
which spcomp
echo $includePath
ls -l $scriptingPath
cat $(which spcomp)
spcomp __tests__/compile.sp
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @rumblefrog
68 changes: 61 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,69 @@
# Setup SourcePawn Action

Install and configure toolchain path for sourcepawn compiler
![](https://github.com/rumblefrog/setup-sp/workflows/Main%20Workflow/badge.svg)

## Inputs
This action sets-up, cache and adds sourcemod scripting directory to the path

### `version`
# Usage

**Required** The version (range) of compiler to use.
See [action.yml](https://github.com/rumblefrog/setup-sp/blob/master/action.yml)

## Outputs
## Basic:

### `version`
```yaml
steps:
- uses: actions/checkout@v3

The version used and added to path (useful if using a range specifier)
- uses: rumblefrog/setup-sp@master
with:
version: '1.12.x'

- run: spcomp -iAnotherIncludeDirectory plugin.sp -o output/plugin.smx
```
## Matrix:
```yaml
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
sm-version: [ '1.11.x', '1.12.x', '1.11.6467', '>= 1.11.6478']

name: SM version ${{ matrix.sm-version }}
steps:
- uses: actions/checkout@v3

- name: Setup SP
uses: rumblefrog/setup-sp@master
with:
version: ${{ matrix.sm-version }}

- run: spcomp -iAnotherIncludeDirectory plugin.sp -o output/plugin.smx
```
## Extract the version of the .sp file:
```yaml
jobs:
build:
runs-on: ubuntu-latest

name: SM version ${{ matrix.sm-version }}
steps:
- uses: actions/checkout@v1

- name: Setup SP
id: setup_sp
uses: rumblefrog/setup-sp@master
with:
version: '1.10.x'
version-file: ./plugin.sp

- run: |
spcomp -iAnotherIncludeDirectory plugin.sp -o output/plugin.smx
echo Plugin version ${{ steps.setup_sp.outputs.plugin-version }}
```
A complete workflow example can be found [here](https://github.com/Sarrus1/DiscordWebhookAPI/blob/master/.github/workflows/master.yml).
9 changes: 9 additions & 0 deletions __tests__/compile.sp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include <sourcemod>

#pragma semicolon 1
#pragma newdecls required

public void OnPluginStart()
{
PrintToServer("Hello, World!");
}
16 changes: 15 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -6,11 +6,25 @@ inputs:
description: 'Version of SP compiler'
required: true
default: '1.10.x'
version-file:
description: 'File to parse to get the version of the plugin'
required: false
default: ''
define-name:
description: 'Name of the define for the version of the plugin if you are using one'
required: false
default: ''
no-spcomp-proxy:
description: 'Whether spcomp should not be proxied to fix relative include path'
required: false
default: 'false'
outputs:
version:
description: 'Version of the SP compiler used'
version-file:
description: 'Version of the .sp file'
runs:
using: 'node12'
using: 'node20'
main: 'lib/index.js'
branding:
icon: 'command'
5 changes: 0 additions & 5 deletions lib/constants.js

This file was deleted.

35 changes: 2 additions & 33 deletions lib/index.js

Large diffs are not rendered by default.

47 changes: 0 additions & 47 deletions lib/installer.js

This file was deleted.

64 changes: 0 additions & 64 deletions lib/scraper.js

This file was deleted.

39 changes: 0 additions & 39 deletions lib/structures/versioning.js

This file was deleted.

15 changes: 0 additions & 15 deletions node_modules/.bin/semver

This file was deleted.

7 changes: 0 additions & 7 deletions node_modules/.bin/semver.cmd

This file was deleted.

15 changes: 0 additions & 15 deletions node_modules/.bin/uuid

This file was deleted.

7 changes: 0 additions & 7 deletions node_modules/.bin/uuid.cmd

This file was deleted.

Loading