Patches for build script for MacOS binaries. #40
This file contains hidden or 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 [MacOS Intel] | |
| on: | |
| push: | |
| paths: | |
| - .github/workflows/build_ci_macos_intel.yml | |
| - assets/** | |
| - examples/** | |
| - include/** | |
| - lib/** | |
| - src/** | |
| - std/** | |
| - test/** | |
| - tools/** | |
| - build.py | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: macos-13 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Install LLVM and OpenMP support | |
| run: | | |
| brew install llvm libomp libzip | |
| export PATH="/usr/local/opt/llvm/bin:$PATH" | |
| export LDFLAGS="-L/usr/local/opt/llvm/lib" | |
| export CPPFLAGS="-I/usr/local/opt/llvm/include" | |
| export LDFLAGS="-L/usr/local/opt/libomp/lib" | |
| export CPPFLAGS="-I/usr/local/opt/libomp/include" | |
| export PATH=/usr/local/opt/[email protected]/bin:$PATH | |
| - name: Build Rhea | |
| run: | | |
| python -m pip install py-cpuinfo | |
| python build.py | |
| - name: Set Environment Path | |
| run: | | |
| export RHEA_PATH=$(pwd)/dist/rhea-lang | |
| - name: Build verification | |
| run: | | |
| ./dist/rhea-lang/bin/rhea | |
| ls -ral dist | |
| find dist | sort | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/|-\1/" | |
| - name: Run test scripts | |
| run: | | |
| ./dist/rhea-lang/bin/rhea ./test/arithmetic.rhea | |
| ./dist/rhea-lang/bin/rhea ./test/array.rhea | |
| ./dist/rhea-lang/bin/rhea ./test/digits.rhea | |
| ./dist/rhea-lang/bin/rhea ./test/error_handling.rhea | |
| ./dist/rhea-lang/bin/rhea ./test/flow.rhea | |
| ./dist/rhea-lang/bin/rhea ./test/func.rhea | |
| ./dist/rhea-lang/bin/rhea ./test/lock.rhea | |
| ./dist/rhea-lang/bin/rhea ./test/loop.rhea | |
| ./dist/rhea-lang/bin/rhea ./test/native.rhea | |
| ./dist/rhea-lang/bin/rhea ./test/parallel.rhea | |
| ./dist/rhea-lang/bin/rhea ./test/regex.rhea | |
| ./dist/rhea-lang/bin/rhea ./test/test.rhea -t | |
| ./dist/rhea-lang/bin/rhea ./test/types.rhea | |
| - name: Run examples | |
| run: | | |
| ./dist/rhea-lang/bin/rhea ./examples/99-beers.rhea | |
| ./dist/rhea-lang/bin/rhea ./examples/hello.rhea | |
| ./dist/rhea-lang/bin/rhea ./examples/http-get.rhea | |
| ./dist/rhea-lang/bin/rhea ./examples/logic-gate-ai.rhea | |
| ./dist/rhea-lang/bin/rhea ./examples/zip-create.rhea | |
| - name: Upload dist folder | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: rhea-macos-intel | |
| path: dist/ | |
| retention-days: 1 |