Add support for Or_Branch_Expr #777
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: CI | |
on: | |
push: | |
branches: ['master'] | |
paths-ignore: ['**/*.md'] | |
pull_request: | |
branches: ['master'] | |
paths-ignore: ['**/*.md'] | |
# Allow to run this workflow manually from the Actions tab. | |
workflow_dispatch: | |
jobs: | |
windows: | |
strategy: | |
matrix: | |
os: [windows-2019, windows-latest] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Dependencies | |
run: | | |
git clone --depth 1 https://github.com/odin-lang/Odin | |
cd Odin/bin | |
$ProgressPreference = "SilentlyContinue"; | |
Invoke-WebRequest -Uri https://github.com/odin-lang/Odin/releases/download/llvm-windows/llvm-binaries.zip -OutFile llvm-binaries.zip | |
7z x llvm-binaries.zip > $null | |
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" | |
- name: Build Odin | |
run: | | |
cd Odin | |
./build.bat 1 | |
- name: Build ols | |
run: ./build.bat CI | |
linux: | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, ubuntu-latest] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Dependencies | |
if: matrix.os == 'ubuntu-20.04' | |
# LLVM 12 and 11 are pre-installed on GitHub runners. On ubuntu-20.04, LLVM 12 | |
# is available as version 12.0.0 whilst Odin requires 12.0.1. It would try to use | |
# LLVM 12 by default and CI would fail. Therefore we'll remove it to use LLVM 11. | |
run: sudo apt update && sudo apt purge -qq -y llvm-12 clang-12 | |
- name: Buid Odin | |
run: | | |
git clone --depth 1 https://github.com/odin-lang/Odin | |
cd Odin && ./build_odin.sh release | |
- name: Build ols | |
run: ./build.sh CI | |
macos: | |
strategy: | |
matrix: | |
os: [macos-12, macos-latest] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Dependencies | |
run: | | |
brew install llvm@14 | |
echo "/usr/local/opt/llvm@14/bin" >> $GITHUB_PATH | |
TMP_PATH=$(xcrun --show-sdk-path)/user/include | |
echo "CPATH=$TMP_PATH" >> $GITHUB_ENV | |
- name: Build Odin | |
run: | | |
git clone --depth 1 https://github.com/odin-lang/Odin | |
cd Odin && ./build_odin.sh release | |
- name: Build ols | |
run: ./build.sh CI |