forked from vshaxe/vshaxe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Alternative build/test without lix/vshaxe-build (vshaxe#653)
* [CI] Alternative build/test without lix/vshaxe-build * [CI] Skip syntaxes/ for vanilla CI (for now?) * [CI] Don't run on windows yet (haxelib failing)
- Loading branch information
Showing
3 changed files
with
96 additions
and
0 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,47 @@ | ||
name: CI - Vanilla | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# TODO: enable on windows too (currently failing to install haxelibs?!) | ||
# os: [ubuntu-latest, macos-13, windows-latest] | ||
os: [ubuntu-latest, macos-13] | ||
haxe: [latest, "2024-12-20_development_9a7121e"] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- uses: krdlab/setup-haxe@master | ||
with: | ||
haxe-version: ${{ matrix.haxe }} | ||
|
||
- name: Cache haxelib | ||
id: cache-haxelib | ||
uses: actions/[email protected] | ||
with: | ||
path: .haxelib | ||
key: ${{ hashFiles('./install.hxml') }} | ||
|
||
- name: Install npm dependencies | ||
run: | | ||
npm ci --ignore-scripts | ||
- name: Install haxelib dependencies | ||
if: steps.cache-haxelib.outputs.cache-hit != 'true' | ||
run: | | ||
haxelib newrepo | ||
haxelib state load install.hxml | ||
- name: Check dependencies | ||
run: | | ||
haxe -version | ||
haxelib list | ||
- name: Build VsHaxe | ||
run: haxe build.hxml |
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,29 @@ | ||
-lib hxnodejs | ||
-D analyzer-optimize | ||
-D js-unflatten | ||
-D js-es=6 | ||
-D haxe-next | ||
-D nodejs=1 | ||
-cp server/shared | ||
-cp src | ||
-cp haxelib/src | ||
-D JSTACK_MAIN=vshaxe.Main.main | ||
-D JSTACK_ASYNC_ENTRY | ||
-D JSTACK_NO_SHUTDOWN | ||
-lib vscode | ||
-lib vscode-json-rpc | ||
-lib language-server-protocol | ||
-lib safety | ||
-js bin/index.js | ||
--macro Safety.safeNavigation('vshaxe') | ||
--macro nullSafety('vshaxe') | ||
vshaxe.Main | ||
|
||
-D dump | ||
|
||
# Get rid of some warnings | ||
-w -WDeprecatedEnumAbstract | ||
|
||
# Don't minimize (-m) so I can get better error positions | ||
-cmd npx ncc build bin/index.js -o bin -q | ||
# -cmd npx ncc build bin/index.js -o bin -m -q |
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,20 @@ | ||
-lib uglifyjs:1.0.0 | ||
-lib formatter:1.18.0 | ||
-lib haxeparser:git:https://github.com/HaxeCheckstyle/haxeparser#a5fce2ecf5fb3bdfebfd7efd8b05329d456ec0d2 | ||
# -lib plist:git:https://github.com/back2dos/plist#df2ca7837f6a2e12f9ec48f12f4e308e9f7ad1e7 | ||
-lib vscode-debugadapter:1.36.0 | ||
-lib hxparse:git:https://github.com/simn/hxparse#876070ec62a4869de60081f87763e23457a3bda8 | ||
-lib json2object:git:https://github.com/elnabo/json2object#a75859de1e966c09e73591b6c9186086c143fe60 | ||
-lib test-adapter:2.0.7 | ||
-lib utest:git:https://github.com/haxe-utest/utest#bdb5fec4b8e77d9a3c079d9cfb108f29f153721a | ||
-lib hxnodejs:git:https://github.com/HaxeFoundation/hxnodejs#504066d | ||
-lib tokentree:1.2.17 | ||
-lib language-server-protocol:git:https://github.com/vshaxe/language-server-protocol-haxe#a6baa2ddcd792e99b19398048ef95aa00f0aa1f6 | ||
# -lib yaml:git:https://github.com/Gama11/hx-yaml#a90c5a93ec8ca07bd73889c1707945e02903de8e | ||
-lib hxjsonast:1.1.0 | ||
# -lib tink_core:1.26.0 | ||
-lib vscode:1.59.0 | ||
-lib vscode-json-rpc:git:https://github.com/vshaxe/vscode-json-rpc#d04426d35d9a404a1ebc36127ecbe93473f6adff | ||
-lib rename:3.0.0 | ||
-lib vshaxe-build:git:https://github.com/vshaxe/vshaxe-build#de0c13838c4a8bad282ef8924aa71e34a315a245 | ||
-lib safety:git:https://github.com/realyuniquename/safety#89e49c01964d4966e3266c818dbb4bd8b07cd092 |