-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
15e37fb
commit 7efa536
Showing
10 changed files
with
1,082 additions
and
79 deletions.
There are no files selected for viewing
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
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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
name: Main Workflow | ||
|
||
on: [push] | ||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
run: | ||
name: Run action | ||
runs-on: ${{ matrix.operating-systems }} | ||
strategy: | ||
matrix: | ||
operating-systems: [ubuntu-latest, windows-latest, macos-latest] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Setup SourcePawn Compiler | ||
uses: rumblefrog/setup-sp@master | ||
with: | ||
version: "1.11.x" | ||
version: "1.12.x" | ||
|
||
# For some reason, mac compiler doesn't use the include directory in which the compiler is in | ||
- name: Verify compiler | ||
run: | | ||
which spcomp | ||
echo $includePath | ||
spcomp -i$includePath __tests__/compile.sp | ||
ls -l $scriptingPath | ||
cat $(which spcomp) | ||
spcomp __tests__/compile.sp |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
{ | ||
"dependencies": { | ||
"@actions/core": "^1.2.6", | ||
"@actions/tool-cache": "^1.1.2", | ||
"@types/node": "^12.12.7", | ||
"@types/semver": "^6.2.0", | ||
"await-to-js": "^2.1.1", | ||
"semver": "^6.3.0" | ||
"@actions/core": "^1.9.0", | ||
"@actions/tool-cache": "^2.0.1", | ||
"@types/node": "^18.0.3", | ||
"@types/semver": "^7.3.10", | ||
"await-to-js": "^3.0.0", | ||
"semver": "^7.3.7", | ||
"typed-rest-client": "^1.8.9" | ||
}, | ||
"devDependencies": { | ||
"ts-loader": "^9.2.6", | ||
"typescript": "^4.4.3", | ||
"webpack": "^5.58.1", | ||
"webpack-cli": "^4.9.0" | ||
"ts-loader": "^9.3.1", | ||
"typescript": "^4.7.4", | ||
"webpack": "^5.73.0", | ||
"webpack-cli": "^4.10.0" | ||
}, | ||
"scripts": { | ||
"start": "./node_modules/.bin/webpack --config ./webpack.config.js" | ||
"build": "./node_modules/.bin/webpack --config ./webpack.config.js" | ||
} | ||
} |
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
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
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
Oops, something went wrong.