From c0e8113f6f031a3e80efbb4f556f2831b1350905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikkel=20Hjortsh=C3=B8j?= Date: Mon, 21 Oct 2019 19:46:05 +0200 Subject: [PATCH 1/4] Add github CI action --- .github/workflows/ci.yml | 54 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/ci.yml 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 + + From 286c5b7b2402c3f51d78975c3d60665c93aab5b6 Mon Sep 17 00:00:00 2001 From: Mikkel Hjortshoej Date: Mon, 21 Oct 2019 23:01:32 +0200 Subject: [PATCH 2/4] Remove old CI runners --- .travis.yml | 24 ------------------------ appveyor.yml | 19 ------------------- 2 files changed, 43 deletions(-) delete mode 100644 .travis.yml delete mode 100644 appveyor.yml 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/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 From 818d6dbbea3907679f47ce8eb931a58c6f4137d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikkel=20Hjortsh=C3=B8j?= Date: Mon, 21 Oct 2019 23:05:18 +0200 Subject: [PATCH 3/4] Update README.md with new CI badge --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 920cf71fb..f4c6ba791 100644 --- a/README.md +++ b/README.md @@ -10,12 +10,12 @@ +
-
- - + + From 516df9123d8b4bc322420150480dca1112cbd02d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikkel=20Hjortsh=C3=B8j?= Date: Mon, 21 Oct 2019 23:08:16 +0200 Subject: [PATCH 4/4] Update README.md --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index f4c6ba791..d3de6f332 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,6 @@ - - -

# The Odin Programming Language