aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2021-04-25 15:07:00 +0200
committerGitHub <noreply@github.com>2021-04-25 15:07:00 +0200
commit0da74d6eff8cb83e8370ad38d40eaa8dddf1e52a (patch)
tree23e675011daccad92893b780eb806c96f375560c /.github/workflows
parent5e95c4203fe7c3128408f4e69f268850069deafc (diff)
Create ci.yml
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml42
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..c4f2962
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,42 @@
+# 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-latest
+ steps:
+ - uses: actions/checkout@v1
+ - name: Download and unpack LLVM bins
+ shell: powershell
+ run: |
+ 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: Download Odin
+ shell: cmd
+ run: git clone https://github.com/odin-lang/Odin
+ - name: Build Odin
+ shell: cmd
+ run: |
+ call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
+ /Odin/build.bat 1
+ $env:Path += ";.\Odin";
+ - name: Build ols
+ shell: cmd
+ run: ./build.bat
+
+
+