Skip to content

Updated version of the Operating System. #46

Updated version of the Operating System.

Updated version of the Operating System. #46

name: Build CI [Darwin]
on:
push:
paths:
- .github/workflows/**
- assets/**
- examples/**
- include/**
- lib/**
- src/**
- test/**
- build.py
branches:
- main
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Python3 and LLVM (with OpenMP support)
run: |
brew update
brew upgrade
brew install [email protected] libomp
export PATH=/usr/local/opt/[email protected]/bin:$PATH
brew reinstall --force llvm
- name: Build Zhivo
run: |
python build.py
- name: Build verification
run: |
ls -ral dist
find dist | sort | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/|-\1/"
- name: Run test scripts (x86)
run: |
./dist/zhivo-darwin-arm64-omp ./test/arithmetic.zhv
./dist/zhivo-darwin-arm64-omp ./test/array.zhv
./dist/zhivo-darwin-arm64-omp ./test/digits.zhv
./dist/zhivo-darwin-arm64-omp ./test/error_handling.zhv
./dist/zhivo-darwin-arm64-omp ./test/flow.zhv
./dist/zhivo-darwin-arm64-omp ./test/func.zhv
./dist/zhivo-darwin-arm64-omp ./test/loop.zhv
./dist/zhivo-darwin-arm64-omp ./test/parallel.zhv
./dist/zhivo-darwin-arm64-omp ./test/regex.zhv
./dist/zhivo-darwin-arm64-omp ./test/test.zhv
./dist/zhivo-darwin-arm64-omp ./test/types.zhv
- name: Run examples (x86)
run: |
./dist/zhivo-darwin-arm64-omp ./examples/hello.zhv
./dist/zhivo-darwin-arm64-omp ./examples/99-beers.zhv
- name: Upload dist folder
uses: actions/upload-artifact@v4
with:
name: zhivo-darwin-dist
path: dist/