Fixed build workflow pipeline for Windows. #4
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 [Darwin] | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ macos-12, macos-13, macos-14 ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Python 3.12 Installation | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Build Zhivo | |
run: | | |
python build.py | |
- name: Build verification | |
run: | | |
ls dist -ral | |
find dist | sort | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/|-\1/" | |
- name: Run test scripts (x86) | |
run: | | |
start=$(date +%s%3N) | |
./dist/zhivo-darwin-x86_64 ./test/arithmetic.zhv | |
./dist/zhivo-darwin-x86_64 ./test/array.zhv | |
./dist/zhivo-darwin-x86_64 ./test/digits.zhv | |
./dist/zhivo-darwin-x86_64 ./test/error_handling.zhv | |
./dist/zhivo-darwin-x86_64 ./test/flow.zhv | |
./dist/zhivo-darwin-x86_64 ./test/func.zhv | |
./dist/zhivo-darwin-x86_64 ./test/loop.zhv | |
./dist/zhivo-darwin-x86_64 ./test/parallel.zhv | |
./dist/zhivo-darwin-x86_64 ./test/regex.zhv | |
./dist/zhivo-darwin-x86_64 ./test/test.zhv | |
./dist/zhivo-darwin-x86_64 ./test/types.zhv | |
end=$(date +%s%3N) | |
echo "Elapsed time: $((end - start)) ms" | |
- name: Run examples (x86) | |
run: | | |
/usr/bin/time -v ./dist/zhivo-darwin-x86_64 ./examples/hello.zhv | |
/usr/bin/time -v ./dist/zhivo-darwin-x86_64 ./examples/99-beers.zhv |