Merge pull request #260 from thetarnav/update-basic-types #755
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
# This is a basic workflow to help you get started with Actions | |
name: CI | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build_windows: | |
runs-on: windows-2019 | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Download Odin | |
shell: cmd | |
run: git clone https://github.com/odin-lang/Odin | |
- name: Download and unpack LLVM bins | |
shell: powershell | |
run: | | |
cd Odin | |
cd 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 | |
- name: Build Odin | |
shell: cmd | |
run: | | |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat | |
cd Odin | |
./build.bat 1 | |
- name: Build ols | |
shell: cmd | |
run: | | |
./build.bat CI | |
build_linux: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Download LLVM | |
run: sudo apt-get install llvm-11 clang-11 | |
- name: Download Odin | |
run: git clone https://github.com/odin-lang/Odin | |
- name: Build Odin | |
run: | | |
cd Odin | |
./build_odin.sh release | |
- name: Build ols | |
run: | | |
dir | |
./build.sh CI | |
build_macOS: | |
runs-on: macos-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Download LLVM and setup PATH | |
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: Download Odin | |
run: git clone https://github.com/odin-lang/Odin | |
- name: Build Odin | |
run: | | |
cd Odin | |
make release | |
- name: Build ols | |
run: ./build.sh CI | |