Merge pull request #56 from ValKmjolnir/develop
📝 adjust CI and build files
This commit is contained in:
commit
96ad435e23
|
@ -1,12 +1,8 @@
|
||||||
name: Build/Test/Package CI
|
name: Nightly Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 16 * * *"
|
- cron: "0 16 * * *"
|
||||||
push:
|
|
||||||
branches: [ master, develop ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ master ]
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
name: Nasal Interpreter Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master, develop ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
mac-aarch64:
|
||||||
|
runs-on: macos-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
make -j4
|
||||||
|
cd module
|
||||||
|
make all -j4
|
||||||
|
cd ..
|
||||||
|
- name: Test
|
||||||
|
run: make test
|
||||||
|
|
||||||
|
linux-x86_64:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
make -j4
|
||||||
|
cd module
|
||||||
|
make all -j4
|
||||||
|
cd ..
|
||||||
|
- name: Test
|
||||||
|
run: make test
|
|
@ -15,6 +15,10 @@ if(MSVC)
|
||||||
add_compile_options(/utf-8)
|
add_compile_options(/utf-8)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (APPLE)
|
||||||
|
add_compile_options(-mmacosx-version-min=10.15)
|
||||||
|
endif()
|
||||||
|
|
||||||
# generate release executables
|
# generate release executables
|
||||||
set(CMAKE_BUILD_TYPE "Release")
|
set(CMAKE_BUILD_TYPE "Release")
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
[](./LICENSE)
|
[](./LICENSE)
|
||||||

|

|
||||||
[](https://github.com/ValKmjolnir/Nasal-Interpreter/actions/workflows/c-cpp.yml)
|
[](https://github.com/ValKmjolnir/Nasal-Interpreter/actions/workflows/c-cpp.yml)
|
||||||
|
[](https://github.com/ValKmjolnir/Nasal-Interpreter/actions/workflows/test.yml)
|
||||||
|
|
||||||
> This document is also available in: [__中文__](./doc/README_zh.md) | [__English__](./README.md)
|
> This document is also available in: [__中文__](./doc/README_zh.md) | [__English__](./README.md)
|
||||||
|
|
||||||
|
@ -82,6 +83,7 @@ Download the latest source of the interpreter and build it! It's quite easy to b
|
||||||
|
|
||||||
Make sure thread model is `posix thread model`, otherwise no thread library exists.
|
Make sure thread model is `posix thread model`, otherwise no thread library exists.
|
||||||
|
|
||||||
|
> mkdir build;
|
||||||
> mingw32-make nasal.exe -j4
|
> mingw32-make nasal.exe -j4
|
||||||
|
|
||||||
### __Windows (Visual Studio)__
|
### __Windows (Visual Studio)__
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
[](../LICENSE)
|
[](../LICENSE)
|
||||||

|

|
||||||
[](https://github.com/ValKmjolnir/Nasal-Interpreter/actions/workflows/c-cpp.yml)
|
[](https://github.com/ValKmjolnir/Nasal-Interpreter/actions/workflows/c-cpp.yml)
|
||||||
|
[](https://github.com/ValKmjolnir/Nasal-Interpreter/actions/workflows/test.yml)
|
||||||
|
|
||||||
> 这篇文档包含多语言版本: [__中文__](../doc/README_zh.md) | [__English__](../README.md)
|
> 这篇文档包含多语言版本: [__中文__](../doc/README_zh.md) | [__English__](../README.md)
|
||||||
|
|
||||||
|
@ -74,6 +75,7 @@ Windows 平台的预览版解释器现在还没配置相关流水线,
|
||||||
|
|
||||||
确保 thread model 是 `posix thread model`, 否则没有 thread 库。
|
确保 thread model 是 `posix thread model`, 否则没有 thread 库。
|
||||||
|
|
||||||
|
> mkdir build;
|
||||||
> mingw32-make nasal.exe -j4
|
> mingw32-make nasal.exe -j4
|
||||||
|
|
||||||
### __Windows 平台 (Vistual Studio)__
|
### __Windows 平台 (Vistual Studio)__
|
||||||
|
|
2
makefile
2
makefile
|
@ -295,7 +295,7 @@ clean:
|
||||||
@ rm $(NASAL_OBJECT)
|
@ rm $(NASAL_OBJECT)
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:nasal
|
test:
|
||||||
@ ./nasal -t -d test/andy_gc_test.nas
|
@ ./nasal -t -d test/andy_gc_test.nas
|
||||||
@ ./nasal test/argparse_test.nas
|
@ ./nasal test/argparse_test.nas
|
||||||
@ ./nasal -e test/ascii-art.nas
|
@ ./nasal -e test/ascii-art.nas
|
||||||
|
|
|
@ -37,7 +37,7 @@ var s = func() {
|
||||||
}
|
}
|
||||||
var ret="";
|
var ret="";
|
||||||
foreach(var elem;filename)
|
foreach(var elem;filename)
|
||||||
ret~=io.readfile(elem);
|
ret~=io.readfile("./src/" ~ elem);
|
||||||
return ret;
|
return ret;
|
||||||
}();
|
}();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue