Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1093 commits
Select commit Hold shift + click to select a range
22e472f
enhance lsp diags. (#1371)
He1pa May 28, 2024
b81f7b1
feat: add more api definitions in the kclvm api crate (#1373)
Peefy May 28, 2024
847a96a
refactor: disable openssl dy link and use the rust tls and git comman…
Peefy May 28, 2024
67e8c28
fix: fix lsp goto def of system pkg. (#1376)
He1pa May 28, 2024
e824bd6
fix: windows path for the git client (#1377)
Peefy May 28, 2024
2519191
ci: add wasm target unit test and release (#1380)
Peefy May 30, 2024
175a361
refactor: refactor lsp newline complete.… (#1382)
He1pa May 30, 2024
5c0a768
feat: enhance upgrade dict to schema. (#1381)
He1pa May 30, 2024
87c53c5
feat: add more wasm host APIs (#1383)
Peefy May 31, 2024
d07b448
fix: list and config if expr error recovery in the parser (#1384)
Peefy May 31, 2024
c07925f
[Refractor] Refractor lsp unit test (#1379)
Wck-iipi May 31, 2024
d0c1eae
feat: api list_variables supports get variables from multi-files (#1389)
zong-zhe Jun 3, 2024
61477e8
feat: advance resolver incremental compile (#1209)
He1pa Jun 3, 2024
3e40c8f
feat: distinguish highlight for function symbol and normal var symbol…
shruti2522 Jun 3, 2024
e392979
feat: clear resolver cache by main pkg module (#1390)
He1pa Jun 4, 2024
47e3013
chore: bump version to 0.9.0 (#1393)
Peefy Jun 4, 2024
2d6e7c1
fix: clear resolve cache by module (#1394)
He1pa Jun 4, 2024
84d3006
docs: update kcl language server build scripts and docs (#1395)
Peefy Jun 4, 2024
0b210eb
fix: schema resolve insert attr op (#1402)
Peefy Jun 6, 2024
5d94abe
feat: add completion item for string union types (#1392)
shruti2522 Jun 12, 2024
9f15e62
completion test for string union type (#1408)
shruti2522 Jun 12, 2024
33629fd
fix: wrong long str interpolation location with special chars (#1409)
Peefy Jun 12, 2024
dadfd04
feat: support conf merge in api ListVariables (#1415)
zong-zhe Jun 17, 2024
d662526
feat: upgrade dict to schema for function parameters and return value…
He1pa Jun 19, 2024
3c4b568
fix: fix evaluator setters in if stmt (#1418)
He1pa Jun 19, 2024
71a192e
fix: allow setting PROTOC environment variable (#1414)
MatisseB Jun 19, 2024
edecd59
fix: fix type infer in assignstmt (#1411)
He1pa Jun 19, 2024
53e1010
feat: optimize if stmt lazy eval (#1423)
Peefy Jun 20, 2024
9873aaf
Add test case for if. (#1416)
liangyuanpeng Jun 20, 2024
63b2368
fix: evaluator runtime schema type get attr and type cast (#1425)
Peefy Jun 20, 2024
6fd3a09
fix: file.modpath and file.workdir function cache cross different mod…
Peefy Jun 20, 2024
e64ae8f
chore(deps): bump unsafe-libyaml from 0.2.5 to 0.2.11 in /kclvm/tools…
dependabot[bot] Jun 23, 2024
50921fc
chore(deps): bump mio from 0.8.8 to 0.8.11 in /kclvm/tests/fuzz (#1432)
dependabot[bot] Jun 23, 2024
82bff23
fix: unification stmt override (#1435)
Peefy Jun 25, 2024
3a333b9
feat: lsp entry cache timestamps (#1436)
He1pa Jun 25, 2024
d6801c1
chore: fix typo (#1437)
He1pa Jun 25, 2024
577f337
ci: centos7 build and release (#1438)
Peefy Jun 25, 2024
e0b4791
fix: fix lambda expr scope range in advanced resolver (#1439)
He1pa Jun 26, 2024
56aac67
feat: add advanced resolver api to get definition within scope (#1442)
He1pa Jun 26, 2024
a6f91c4
feat: lsp completion for internal pkg from program root (#1445)
He1pa Jun 26, 2024
39cdc71
feat: lsp completion for external pkg in kcl.mod (#1448)
He1pa Jun 27, 2024
59a5719
fix: local var set value in the internal scope (#1444)
Peefy Jun 27, 2024
84b40c7
fix: fix schema index signature type check (#1450)
He1pa Jun 28, 2024
11dffcb
fix: fix internal pkg completion (#1453)
He1pa Jun 28, 2024
3f2e611
fix: local var scope in the evaluator (#1456)
Peefy Jun 28, 2024
4907018
fix: handlebars template exec function calling with kcl json value (#…
Peefy Jun 29, 2024
8d766a1
fix: runtime singleton values and add evaluator multithread exec test…
Peefy Jun 29, 2024
8263c95
chore: update capi call error message (#1459)
Peefy Jun 30, 2024
9915cd4
feat: impl runtime.catch function (#1460)
Peefy Jul 1, 2024
6866aec
feat: enhance select expr missing attr parse error message (#1461)
Peefy Jul 1, 2024
e1f8616
change protoc-bin-vendored to support MacOS aarch64 platform (#1463)
YvanDaSilva Jul 3, 2024
b5aa1cc
chore: remove cla (#1465)
Peefy Jul 3, 2024
34f1cc6
fix: joined str parse and format & support `\$` escape for str interp…
Peefy Jul 3, 2024
203a576
LSP inlay hints for str, int, float, bool, any types (#1431)
shruti2522 Jul 3, 2024
96b46e8
fix: fix gs.clear_cache(). clear symbol pos set (#1467)
He1pa Jul 3, 2024
b6e0c0b
add hint API for the semantic model (#1468)
Peefy Jul 3, 2024
4749ce0
fix: module relative path in lsp (#1470)
Peefy Jul 3, 2024
497188a
add document version check in newline complete (#1471)
He1pa Jul 4, 2024
0c18572
fix: lsp completion depend on func return type for func call expr (#1…
He1pa Jul 4, 2024
34d0e46
fix: dup inlay hint and padding for hints (#1474)
Peefy Jul 4, 2024
4a5951e
Fix nest schema expr type check (#1475)
He1pa Jul 4, 2024
9db7275
feat: add retry times record. (#1476)
He1pa Jul 5, 2024
231514c
chore: bump version to 0.9.1
Peefy Jul 7, 2024
0c023c8
refactor: runtime api spec gen scripts (#1478)
Peefy Jul 8, 2024
1a9a729
Add `GetVersion` method to public API (#1479)
bozaro Jul 8, 2024
0f1ec1b
fix: fix advanced_resolver schema def scope. reomve duplicate scopes …
He1pa Jul 9, 2024
128012c
chore: add more docs and examples for api spec (#1486)
Peefy Jul 10, 2024
8092444
feat: add inlay hints for function call args (#1473)
shruti2522 Jul 10, 2024
f089db6
chore: add update_depenedencies API to jsonrpc method list
Peefy Jul 11, 2024
1057311
add new dir for func call inlay hints test (#1488)
shruti2522 Jul 11, 2024
e765674
fix: evaluator schema config resolve with parent schemas (#1490)
Peefy Jul 12, 2024
a0eaf66
feat: Lsp signature help (#1487)
He1pa Jul 12, 2024
eb63521
fix: var ref hint and some hint position err (#1491)
He1pa Jul 12, 2024
408f4c4
fix: fix call arg symbol pos (#1494)
He1pa Jul 12, 2024
1e428dc
feat: add ffi c api for kcl service
Peefy Jul 13, 2024
837bde1
chore: remove reset_plugin API
Peefy Jul 14, 2024
4e43775
fix: fix check config visited entry.value twice (#1498)
He1pa Jul 15, 2024
33bb450
ci: refactor artifact upload scripts
Peefy Jul 16, 2024
7a22b93
ci: set macosx deployment target to 10.13
Peefy Jul 16, 2024
cf32bb2
fix: error message for override file API (#1505)
Peefy Jul 17, 2024
936cbbd
remove unwrap in advanced_resolver walk_call() (#1506)
He1pa Jul 17, 2024
44709e4
fix: list index union operation (#1507)
Peefy Jul 17, 2024
3a583ca
chore: bump kcl lib version to v0.9.2 (#1508)
Peefy Jul 17, 2024
c8a67ea
chore: bump rust version to 1.79 (#1513)
Peefy Jul 20, 2024
c5e3c90
chore: remove un-used attributes
Peefy Jul 20, 2024
a6969c7
chore: remove MACOSX_DEPLOYMENT_TARGET in the arm64
Peefy Jul 20, 2024
d4ab8e6
chore: remove deployment target
Peefy Jul 20, 2024
0c20ad2
chore: bump kcl version to v0.9.3
Peefy Jul 20, 2024
6385e30
fix: fix unexpected complete item in schema doc. (#1514)
He1pa Jul 22, 2024
988b907
fix: schema attribute symbol defined in the unification stmt (#1516)
Peefy Jul 23, 2024
d53b518
feat(v0.10.0-alpha.1): support multiple assign target including membe…
Peefy Jul 23, 2024
e50c6a3
chore: bump kcl version to v0.10.0-alpha.1
Peefy Jul 23, 2024
19fd8ef
chore: bump criterion deps to 0.5
Peefy Jul 23, 2024
411156d
fix: capi input arguments (#1517)
Peefy Jul 24, 2024
a69943f
feat: add tag serialize for member or index AST (#1518)
Peefy Jul 24, 2024
3ee624c
fix: capi call args decode (#1519)
Peefy Jul 24, 2024
7fdfcf5
chore: bump kcl wasm module name and use the upload-artifact@v4 action
Peefy Jul 24, 2024
98780c6
fix: kcl wasm module release path in CI
Peefy Jul 24, 2024
b462fd1
feat: add llvm feature flag for the api crate
Peefy Jul 24, 2024
3cbb93f
chore: change eagerly evaluated to lazy evaluated (#1522)
He1pa Jul 26, 2024
42844f3
fix: fix duplicate variable name and schema attr name in right value…
He1pa Jul 26, 2024
a589e15
chore: use forked protoc bin vendor version (#1524)
Peefy Jul 29, 2024
2ed0c55
feat: override union and insert config (#1525)
Peefy Jul 30, 2024
32a7a4d
feat: add file.current function (#1526)
Peefy Jul 30, 2024
70228f1
ci: add git2 in centos7 ci (#1528)
Peefy Jul 31, 2024
bbac702
chore: remove un-used files
Peefy Jul 31, 2024
fe15ef9
feat: enhance runtime type cast and check for lambda arguments and re…
Peefy Aug 1, 2024
20a35bc
refactor: dict upgrade schema type and check (#1531)
Peefy Aug 1, 2024
8f654a0
chore: bump version to 0.10.0-alpha.2 (#1533)
Peefy Aug 2, 2024
96b6ae8
ci: chore remove llvm features in CI (#1534)
Peefy Aug 2, 2024
5417342
fix: runtime type check can ignore type package name (#1537)
Peefy Aug 5, 2024
a8d1803
feat: add function mode for the evaluator (#1539)
Peefy Aug 5, 2024
5453b87
fix: git sha gen in linux CI (#1538)
Peefy Aug 5, 2024
ba62288
chore: enhance lsp version info (#1540)
He1pa Aug 5, 2024
1b9e785
feat: move lsp db lock. (#1550)
He1pa Aug 8, 2024
cb2beb4
fix: fix lsp request get db with lock (#1554)
He1pa Aug 9, 2024
7487a8b
fix: fix sema info about config entry left key and right value (#1541)
He1pa Aug 12, 2024
dcbd9d9
fix: fix error in cli `kcl-language-server --version` (#1558)
He1pa Aug 12, 2024
c3bbd4f
feat: Add the prefix `schema` to the name of the document symbol (#1562)
He1pa Aug 13, 2024
55440ac
feat: enhance config to schema type check on union expr (#1561)
Peefy Aug 13, 2024
3916bfb
fix: fix config entry key def (#1559)
He1pa Aug 13, 2024
848b26b
fix: test api user arguments (#1563)
Peefy Aug 13, 2024
be4946e
fix: evaluator if order bug (#1565)
Peefy Aug 14, 2024
5b7bfce
feat: remove raw string prefix in the hover docs (#1567)
Peefy Aug 14, 2024
de1060e
fix: fix type symbol completion (#1568)
He1pa Aug 14, 2024
d0fade6
chore: Modify the error message of UniqueKeyError (#1570)
He1pa Aug 14, 2024
de87e2d
fix: fix scope error with duplicate schema name (#1569)
He1pa Aug 14, 2024
26cc807
chore: bump version to v0.10.0-beta.1 (#1571)
Peefy Aug 14, 2024
10f0506
fix: fix dict to schema type upgrade for schema calling expressions (…
He1pa Aug 15, 2024
e7d75b6
chore: update type annotation instructions in the parser (#1579)
Peefy Aug 17, 2024
616bae5
feat: Clear the cache according to the changed module. (#1581)
He1pa Aug 19, 2024
24dafd8
feat: better format tool devex (#1582)
Peefy Aug 19, 2024
2a36798
feat: add literal type default value pass and preprocess (#1583)
Peefy Aug 19, 2024
00a5a31
fix: schema index signature comment format location (#1586)
Peefy Aug 20, 2024
893aa70
feat: init lsp workspace when start language server (#1584)
He1pa Aug 21, 2024
16ca833
fix: config list subscript type unsoundness (#1591)
Peefy Aug 22, 2024
7edd84f
chore: bump version to 0.10.0-beta.2 (#1593)
Peefy Aug 22, 2024
8f0671a
feat: add hints for schema args (#1595)
shruti2522 Aug 23, 2024
0b2a81e
fix: unification stmt schema arguments parse (#1597)
Peefy Aug 23, 2024
32f3739
refactor: cargo clippy parser, resolver and tools crates (#1596)
Peefy Aug 23, 2024
3620168
feat: kcl rust plugin impl and example (#1599)
Peefy Aug 24, 2024
9df8b3c
feat: export kcl fmt c api (#1601)
Peefy Aug 26, 2024
d02868d
fix: datetime sys module functions (#1603)
Peefy Aug 26, 2024
6b4458b
feat: add more functions and parameters for the datetime module (#1605)
Peefy Aug 27, 2024
bf45c39
feat: add isnullish builtin function (#1606)
Peefy Aug 27, 2024
f6e7057
feat: Update lsp workspace (#1594)
He1pa Aug 27, 2024
67cf599
Refactor find ref and rename (#1500)
He1pa Aug 27, 2024
08dbac3
refactor: lsp crates and codes (#1609)
Peefy Aug 29, 2024
13cedd2
fix: fix sema token request failed when open file (#1610)
He1pa Aug 29, 2024
a9e10db
fix: fix find ref. Different types of symbols may have the same id. U…
He1pa Aug 29, 2024
726ba1d
fix: fix clear workspace cache when change config file (#1612)
He1pa Aug 29, 2024
e337e12
feat: add node pos for scehma index signature key name (#1615)
He1pa Aug 30, 2024
b03dd40
feat: add more lsp log. (#1616)
He1pa Aug 30, 2024
ca43325
fix: remove wrong lock (#1617)
He1pa Sep 2, 2024
f7fa125
feat: find ref for ref symbol (#1614)
He1pa Sep 2, 2024
fd9fe09
fix: fix lsp semantic token (#1621)
He1pa Sep 3, 2024
bf8505d
Added Blake3 implementation using blake3 crate (#1613)
prakhar479 Sep 3, 2024
4151909
refactor: crypto and base64 module encoding parameter (#1622)
Peefy Sep 3, 2024
def5a56
chore: bump version to 0.10.0-rc.1 (#1624)
Peefy Sep 5, 2024
c2ff2d3
fix: fix stackoverflow on schema circle dep (#1628)
He1pa Sep 6, 2024
d5f4a27
refactor: pkg import error message (#1631)
Peefy Sep 9, 2024
d99b01f
feat: find right value def from schema mixin and protocol (#1632)
He1pa Sep 9, 2024
115892c
fix: fix schema dep cycle error. … (#1634)
He1pa Sep 9, 2024
a3e40a2
refactor: code error message (#1633)
Peefy Sep 9, 2024
2168f51
chore: bump lsp-server to v0.7.7 (#1635)
Peefy Sep 9, 2024
e3792bc
refactor: all runtime func args and kwargs (#1636)
Peefy Sep 10, 2024
d16b969
fix: abstraction typo
Peefy Sep 10, 2024
74c4835
fix: unification stmt eval scope (#1638)
Peefy Sep 10, 2024
aa90984
feat: make wasm target panic hook set only once (#1640)
Peefy Sep 10, 2024
c11f527
chore: format the import stmts
Peefy Sep 10, 2024
ded5e87
fix: fix complete after some special expr. (#1641)
He1pa Sep 10, 2024
7344032
refactor: remove config/list if item newline format (#1643)
Peefy Sep 11, 2024
a00a1c6
refactor: input file expand function impl (#1646)
Peefy Sep 13, 2024
913e79e
fix: index signature value symbol (#1647)
Peefy Sep 13, 2024
d9ed471
chore: bump kcl cli install version to main (#1648)
Peefy Sep 14, 2024
272453c
fix: fix lsp input file path (#1649)
He1pa Sep 14, 2024
6148b03
ci: add windows mingw test (#1650)
Peefy Sep 14, 2024
a8242c7
feat: enhance cycle deps error message (#1639)
He1pa Sep 14, 2024
59883ae
chore: set rust version to 1.79 in CI
Peefy Sep 14, 2024
b3862c1
fix: windows CI and rust version to 1.80 (#1652)
Peefy Sep 14, 2024
79d047f
chore: bump version to v0.10.0 (#1653)
Peefy Sep 16, 2024
f8f4247
feat: add kcl version api for the wasm host (#1656)
Peefy Sep 18, 2024
7452116
feat: cp static lib to the install dir (#1654)
Peefy Sep 18, 2024
3f473fa
feat: inlayhint for config key type (#1659)
He1pa Sep 24, 2024
97d4ef5
fix: relative path calculation is using the full path after symbolic …
zong-zhe Sep 24, 2024
e3ab00d
feat: lsp hover for schema attr default value (#1662)
He1pa Sep 24, 2024
3e84ea4
remove windows path prefix (#1665)
He1pa Oct 9, 2024
038e8da
fix: package variable resolve
Peefy Oct 10, 2024
b3a08d3
fix: lambda this closure value and config (#1677)
Peefy Oct 10, 2024
5d95a09
fix: type upgrade for the assign stmt type annotation for the call ex…
Peefy Oct 10, 2024
67ae183
fix: lint unit tests (#1680)
Peefy Oct 10, 2024
25cb7ad
feat: exec program capi (#1681)
Peefy Oct 10, 2024
3799237
fix: schema mixin parse (#1682)
Peefy Oct 11, 2024
7292f1a
chore: bump version to 0.10.1 (#1683)
Peefy Oct 11, 2024
f8fb091
chore: bump version to 0.10.2 (#1684)
Peefy Oct 11, 2024
8c48133
feat: kcl_run_with_log_message API (#1687)
Peefy Oct 12, 2024
a36e4d7
Fix windows ci (#1685)
He1pa Oct 12, 2024
7bb22c2
fix: fix advanced resolver panic when walk aug asssign stmt (#1690)
He1pa Oct 14, 2024
0c59e6c
revert pr #1659 (#1692)
He1pa Oct 14, 2024
cb01607
chore: bump kcl version to 0.10.3 (#1693)
Peefy Oct 14, 2024
965b5e1
feat: distinguishing `any` in keywords and types in lsp hightlight (#…
He1pa Oct 16, 2024
f328749
Added support functions for filesha512 and BLAKE-3 hashing. (#1697)
slashexx Oct 17, 2024
b22e5ec
refactor: refactor parser (#1625)
He1pa Oct 17, 2024
524f684
fix Fix lsp format error in intellij. (#1698)
He1pa Oct 18, 2024
c6ecc87
chore: update release os and arch info (#1699)
Peefy Oct 21, 2024
f298eeb
fix: fixed OverrideFile insert unification position error (#1702)
zong-zhe Oct 21, 2024
53ebd23
chore: bump kcl version to 0.10.4 (#1703)
zong-zhe Oct 21, 2024
dbb5cb0
fix: irrelevant order var load in the lambda (#1704)
Peefy Oct 21, 2024
b05eefe
fix: continue line with comment format (#1705)
Peefy Oct 21, 2024
9114c24
fix: fix parser cache dead lock (#1706)
He1pa Oct 21, 2024
d6c8653
chore: bump kcl version to 0.10.5 (#1709)
Peefy Oct 22, 2024
fc64537
fix: path canonicalization for parse file API (#1708)
Peefy Oct 22, 2024
daa7b18
fix: fix entry path in Windows (#1710)
He1pa Oct 23, 2024
f8e6e86
perf: Parser performance optimization (#1711)
He1pa Oct 24, 2024
3cbb37d
chore: bump kcl version to 0.10.6 (#1712)
Peefy Oct 24, 2024
99ace3a
chore: remove unused AST module name (#1713)
Peefy Oct 24, 2024
b99953a
perf: Remove duplicate fix_rel_import_path_with_file (#1714)
He1pa Oct 24, 2024
88dbe98
chore: remove plugin git submodule
Peefy Oct 25, 2024
5009d06
fix: ast expr comment format (#1720)
Peefy Oct 28, 2024
f7be5ad
chore: bump version to 0.10.7 (#1721)
Peefy Oct 28, 2024
8302dcf
feat: enhance hint. (#1722)
He1pa Oct 28, 2024
68a5dac
fix: manifests yaml stream options impl (#1724)
Peefy Oct 29, 2024
caa8d47
fix: fix lsp parse cache. (#1726)
He1pa Oct 30, 2024
a6381df
feat: program.pkg Module to Arc<Module> (#1715)
He1pa Nov 1, 2024
35b56d8
perf: Parser performance optimization (#1732)
He1pa Nov 4, 2024
481eed9
fix: evaluator on the base schema order (#1733)
Peefy Nov 4, 2024
2aa8fea
chore: bump kcl version to 0.10.8 (#1741)
Peefy Nov 5, 2024
841d614
feat: enhance schema attr resolve for the double star expr (#1743)
Peefy Nov 6, 2024
ddfd018
feat: lsp file watcher. (#1744)
He1pa Nov 8, 2024
1457674
chore: bump kcl version to 0.10.9 (#1747)
Peefy Nov 12, 2024
9016255
feat: Add a function to parse all kcl files in the given path and opt…
He1pa Nov 13, 2024
257c0bf
fix: fix complete schema pkg name error. (#1750)
He1pa Nov 13, 2024
96d2731
feat: lsp hint for config entry key type (#1751)
He1pa Nov 14, 2024
62a3c2f
chore: bump kcl version to 0.11.0-alpha.1 (#1753)
Peefy Nov 14, 2024
0d34de4
feat: add api to get all schema under path (#1754)
He1pa Nov 14, 2024
6bbb967
feat: lsp complete for unimport schemas. (#1757)
He1pa Nov 28, 2024
18caaca
feat: Musl build for Alpine Linux (#1770)
Gmin2 Dec 3, 2024
eb61d84
feat: add service api GetSchemaTypeMappingUnderPath (#1766)
He1pa Dec 4, 2024
367cba9
fix: rm macos-12 env in release github action (#1773)
zong-zhe Dec 6, 2024
580c0c2
fix: fix ci (#1785)
zong-zhe Dec 11, 2024
39c7503
fix: fix lsp watcher (#1784)
He1pa Dec 16, 2024
78346e0
fix func kcl_alloc. (#1782)
He1pa Dec 17, 2024
88e22a6
chore: bump kcl version to 0.11.0 (#1790)
zong-zhe Dec 17, 2024
bc74f86
feat: Add some restrictions in load_all_files_under_paths (#1791)
He1pa Dec 17, 2024
27a32d0
fix: fix #1776 use assert add no overhead on release version (#1781)
lwz23 Dec 24, 2024
d9869c3
fix: fix iter unicode string (#1802)
He1pa Dec 30, 2024
291a4b2
Readme image correction (#1803)
Sumitwarrior7 Dec 31, 2024
dffaa67
fix: index signature str union ty check (#1808)
Peefy Jan 6, 2025
69a4853
feat: add chars method for builtin str (#1793)
jellllly420 Jan 7, 2025
f368119
Fix: fix hidden global vars when merge in evaluator (#1811)
He1pa Jan 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
14 changes: 14 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/alpine
{
// ref: https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers#dockerfile
"image": "docker.io/kcllang/kcl-builder:latest",
"customizations": {
"vscode": {
"extensions": [
"rust-lang.rust-analyzer",
"ms-vscode.makefile-tools"
]
}
}
}
5 changes: 0 additions & 5 deletions .flake8

This file was deleted.

31 changes: 0 additions & 31 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

6 changes: 0 additions & 6 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/backport.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Backport merged pull request
on:
pull_request_target:
types: [closed]
permissions:
contents: write # so it can comment
pull-requests: write # so it can create pull requests
jobs:
backport:
name: Backport pull request
runs-on: ubuntu-latest
# Don't run on closed unmerged pull requests
if: github.event.pull_request.merged
steps:
- uses: actions/checkout@v3
- name: Create backport pull requests
uses: korthout/backport-action@v1
58 changes: 58 additions & 0 deletions .github/workflows/build-test-alpine-linux-musl-arm64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Build and Test Musl
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build-and-test-musl:
name: Build and Test on Alpine Linux (musl)
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
submodules: "true"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Pull Alpine Linux Docker image
run: |
docker pull alpine:latest
- name: Build in Docker
run: |
docker run --rm \
-v ${{ github.workspace }}:/workspace -w /workspace \
alpine:latest \
/bin/sh -c "
apk add --no-cache \
bash \
git \
make \
gcc \
musl-dev \
python3 \
python3-dev \
py3-pip \
rust \
cargo \
&& \
export KCL_BUILD_GIT_SHA=$(git rev-parse HEAD) && \
git config --global --add safe.directory /workspace && \
git config --global user.name 'GitHub Action' && \
git config --global user.email 'action@github.com' && \
make && \
make release && \
_build/dist/linux/kclvm/bin/kclvm_cli version"
- name: Read VERSION file
id: read_version
run: |
VERSION=$(cat VERSION)
echo "VERSION=v${VERSION}" >> $GITHUB_ENV
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: kcl-${{ env.VERSION }}-linux-musl
if-no-files-found: error
path: _build/kclvm-${{ env.VERSION }}-linux-amd64.tar.gz
53 changes: 53 additions & 0 deletions .github/workflows/build-test-centos7-amd64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build and Test on centos7 amd64
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build-and-test-centos7:
name: Build and Test on centos7 amd64
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
submodules: "true"

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: linux/amd64

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Pull custom centos7 Docker image
run: |
docker pull kcllang/kcl-builder:centos7

# Use llvm7 to build kcl in centos7
- name: Release
run: |
docker run --rm \
-v ${{ github.workspace }}:/workspace -w /workspace \
kcllang/kcl-builder:centos7 \
/bin/bash -c "export KCL_BUILD_GIT_SHA=$(git rev-parse HEAD) && source ~/.bash_profile && export PATH=$PATH:/opt/build/bin/ && sed -i 's/llvm12/llvm7/g' kclvm/compiler/Cargo.toml && git config --global --add safe.directory /workspace && git config --global user.name 'GitHub Action' && git config --global user.email 'action@github.com' && git add . && git commit -m 'chore: bump llvm version to 7.0' && make && make release"

- name: Show Artifact Version
run: _build/dist/linux/kclvm/bin/kclvm_cli version

- name: Read VERSION file
id: read_version
run: |
VERSION=$(cat VERSION)
echo "VERSION=v${VERSION}" >> $GITHUB_ENV

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: kcl-${{ env.VERSION }}-linux-amd64
if-no-files-found: error
path: _build/kclvm-${{ env.VERSION }}-linux-amd64.tar.gz
66 changes: 66 additions & 0 deletions .github/workflows/build-test-macos-arm64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Build and Test on MacOS ARCH64
on:
pull_request:
branches:
- main
push:
branches:
- main
env:
MACOSX_DEPLOYMENT_TARGET: '11.0'
jobs:
build-and-test:
# Ref: https://github.com/actions/runner-images/tree/main/images/macos
# Note: The arch of macos-13-xlarge and macos-14 is arm64
strategy:
matrix:
os: [macos-13-xlarge, macos-14]
runs-on: ${{ matrix.os }}
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
submodules: "true"

- run: clang --version
- run: cargo --version
- run: rustc --print sysroot

- name: Delete rust cargo
run: rm -rf /root/.cargo/bin
shell: bash
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.79
override: true
components: clippy, rustfmt
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Grammar test
working-directory: ./kclvm
run: export PATH=$PATH:$PWD/../_build/dist/darwin/kclvm/bin && make && make test-grammar
shell: bash
- name: Evaluator Grammar test
working-directory: ./kclvm
run: export PATH=$PATH:$PWD/../_build/dist/darwin/kclvm/bin && make test-grammar-evaluator
shell: bash

- name: Release
run: export PATH=$PATH:$PWD/../_build/dist/darwin/kclvm/bin && make release
shell: bash

- name: Read VERSION file
id: read_version
run: |
VERSION=$(cat VERSION)
echo "VERSION=v${VERSION}" >> $GITHUB_ENV

- uses: actions/upload-artifact@v4
if: "contains(matrix.os, 'macos-13-xlarge')"
with:
name: kcl-${{ env.VERSION }}-darwin-arm64
if-no-files-found: error
path: _build/kclvm-${{ env.VERSION }}-darwin-arm64.tar.gz
49 changes: 49 additions & 0 deletions .github/workflows/build-test-ubuntu-arm64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build and Test on Linux ARCH64
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build-and-test-arm64:
name: Build and Test on Linux ARM64
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
submodules: "true"

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: linux/amd64,linux/arm64

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Pull custom ARM64 Docker image
run: |
docker pull --platform linux/arm64 kcllang/kcl-builder-arm64

- name: Build in Docker
run: |
docker run --rm --platform linux/arm64 \
-v ${{ github.workspace }}:/workspace -w /workspace \
kcllang/kcl-builder-arm64 \
/bin/bash -c "export KCL_BUILD_GIT_SHA=$(git rev-parse HEAD) && git config --global --add safe.directory /workspace && git config --global user.name 'GitHub Action' && git config --global user.email 'action@github.com' && make && make release && _build/dist/linux/kclvm/bin/kclvm_cli version"

- name: Read VERSION file
id: read_version
run: |
VERSION=$(cat VERSION)
echo "VERSION=v${VERSION}" >> $GITHUB_ENV

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: kcl-${{ env.VERSION }}-linux-arm64
if-no-files-found: error
path: _build/kclvm-${{ env.VERSION }}-linux-arm64.tar.gz
39 changes: 0 additions & 39 deletions .github/workflows/github-actions.yaml

This file was deleted.

Loading
Loading