Added more support for mathematical operation for array objects. #65
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
name: Build CI | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: CUDA Toolkit | |
uses: Jimver/[email protected] | |
id: cuda-toolkit | |
with: | |
cuda: '12.5.0' | |
- name: Get build dependencies | |
run: sudo apt install build-essential make -y | |
- name: Build Zhivo | |
run: | | |
chmod +x ./build.sh | |
./build.sh | |
- name: Build verification | |
run: | | |
ls dist -ral | |
find dist | sort | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/|-\1/" | |
- name: Run test scripts (x86) | |
run: | | |
./dist/zhivo-x86 ./test/arithmetic.zhv | |
./dist/zhivo-x86 ./test/array.zhv | |
./dist/zhivo-x86 ./test/digits.zhv | |
./dist/zhivo-x86 ./test/error_handling.zhv | |
./dist/zhivo-x86 ./test/flow.zhv | |
./dist/zhivo-x86 ./test/func.zhv | |
./dist/zhivo-x86 ./test/loop.zhv | |
./dist/zhivo-x86 ./test/parallel.zhv | |
./dist/zhivo-x86 ./test/regex.zhv | |
./dist/zhivo-x86 ./test/test.zhv | |
./dist/zhivo-x86 ./test/types.zhv | |
- name: Run test scripts (CUDA) | |
run: | | |
./dist/zhivo-cuda ./test/arithmetic.zhv | |
./dist/zhivo-cuda ./test/array.zhv | |
./dist/zhivo-cuda ./test/digits.zhv | |
./dist/zhivo-cuda ./test/error_handling.zhv | |
./dist/zhivo-cuda ./test/flow.zhv | |
./dist/zhivo-cuda ./test/func.zhv | |
./dist/zhivo-cuda ./test/loop.zhv | |
./dist/zhivo-cuda ./test/parallel.zhv | |
./dist/zhivo-cuda ./test/regex.zhv | |
./dist/zhivo-cuda ./test/test.zhv | |
./dist/zhivo-cuda ./test/types.zhv |