aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-10-23 21:42:42 +0100
committergingerBill <bill@gingerbill.org>2019-10-23 21:42:42 +0100
commitad92fbfd4e25ecb4112b08cf7feac10c46ea4b9a (patch)
treec3d956dc6f7918711905b8f634839cdf560fbc06
parent1416946757af20b530899962033b5c0ebb69dfa2 (diff)
parent6a8c4ee04cbbe04b2cb4be264591aa45be787205 (diff)
Merge branch 'master' of https://github.com/odin-lang/Odin
-rw-r--r--.github/workflows/ci.yml54
-rw-r--r--.travis.yml24
-rw-r--r--README.md9
-rw-r--r--appveyor.yml19
4 files changed, 57 insertions, 49 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 000000000..50ca88d95
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,54 @@
+name: CI
+on: [push, pull_request]
+
+jobs:
+ build_unix:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ubuntu-latest, macOS-latest]
+
+ steps:
+ - uses: actions/checkout@v1
+ - name: (macOS) Download LLVM and setup PATH
+ if: startsWith(matrix.os, 'macOS')
+ run: |
+ brew install llvm
+ echo ::add-path::/usr/local/opt/llvm/bin
+ echo ::set-env name=CPATH::`xcrun --show-sdk-path`/usr/include
+ - name: (Linux) Download LLVM
+ if: startsWith(matrix.os, 'ubuntu')
+ run: |
+ sudo apt-get install llvm
+ - name: build odin
+ run: make release
+ - name: Odin run
+ run: ./odin run examples/demo/demo.odin
+ - name: Odin check
+ run: ./odin check examples/demo/demo.odin -vet
+ build_windows:
+ runs-on: windows-latest
+ steps:
+ - uses: actions/checkout@v1
+ - name: Install cURL
+ run: choco install curl
+ - name: Download and unpack LLVM bins
+ run: |
+ cd bin
+ curl -sL https://github.com/odin-lang/Odin/releases/download/llvm-windows/llvm-binaries.zip --output llvm-binaries.zip
+ ls
+ 7z x llvm-binaries.zip > nul
+ - name: build Odin
+ run: |
+ call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
+ ./build_ci.bat
+ - name: Odin run
+ run: |
+ call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
+ odin run examples/demo/demo.odin
+ - name: Odin check
+ run: |
+ call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
+ odin check examples/demo/demo.odin -vet
+
+
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index a0169259d..000000000
--- a/.travis.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-language: cpp
-git:
- depth: false
-
-os:
- - linux
- - osx
-
-compiler:
- - clang
-
-addons:
- homebrew:
- packages:
- - llvm
-
-script:
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH="/usr/local/opt/llvm/bin:$PATH" ; fi
- - make release
- - ./odin run examples/demo/demo.odin
- - ./odin check examples/demo/demo.odin -vet
-
-notifications:
- email: false
diff --git a/README.md b/README.md
index 920cf71fb..d3de6f332 100644
--- a/README.md
+++ b/README.md
@@ -10,15 +10,12 @@
<a href="https://github.com/odin-lang/odin/releases/latest">
<img src="https://img.shields.io/badge/platforms-Windows%20|%20Linux%20|%20macOS-green.svg">
</a>
+ <br>
<a href="https://discord.gg/hnwN2Rj">
<img src="https://img.shields.io/discord/568138951836172421?logo=discord">
</a>
- <br>
- <a href="https://ci.appveyor.com/project/ThisDrunkDane/odin-vf0ap">
- <img src="https://ci.appveyor.com/api/projects/status/qss6l921c0eu85u6/branch/master?svg=true">
- </a>
- <a href="https://travis-ci.org/odin-lang/Odin">
- <img src="https://travis-ci.org/odin-lang/Odin.svg?branch=master">
+ <a href="https://github.com/odin-lang/odin/actions">
+ <img src="https://github.com/odin-lang/odin/workflows/CI/badge.svg">
</a>
</p>
diff --git a/appveyor.yml b/appveyor.yml
deleted file mode 100644
index 5e5abe979..000000000
--- a/appveyor.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-image:
- - Visual Studio 2017
-shallow_clone: true
-
-platform: x64
-
-install:
- - cd bin
- - appveyor DownloadFile https://github.com/odin-lang/Odin/releases/download/llvm-windows/llvm-binaries.zip
- - 7z x llvm-binaries.zip > nul
- - cd ..
-
-build_script:
- - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
- - ./build_ci.bat
-
-test_script:
- - odin run examples/demo/demo.odin
- - odin check examples/demo/demo.odin -vet \ No newline at end of file