mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Create CI files
This commit is contained in:
committed by
Mikkel Hjortshøj
parent
bc5c37ebb1
commit
0185b43c2f
+18
@@ -0,0 +1,18 @@
|
|||||||
|
language: cpp
|
||||||
|
git:
|
||||||
|
depth: false
|
||||||
|
|
||||||
|
os:
|
||||||
|
- linux
|
||||||
|
- osx
|
||||||
|
|
||||||
|
compiler:
|
||||||
|
- clang
|
||||||
|
|
||||||
|
script:
|
||||||
|
- make release
|
||||||
|
- ./odin run examples/demo/demo.odin
|
||||||
|
- ./odin check examples/demo/demo.odin -vet
|
||||||
|
|
||||||
|
notifications:
|
||||||
|
email: false
|
||||||
@@ -13,6 +13,13 @@
|
|||||||
<a href="https://github.com/odin-lang/odin/blob/master/LICENSE">
|
<a href="https://github.com/odin-lang/odin/blob/master/LICENSE">
|
||||||
<img src="https://img.shields.io/github/license/odin-lang/odin.svg">
|
<img src="https://img.shields.io/github/license/odin-lang/odin.svg">
|
||||||
</a>
|
</a>
|
||||||
|
<br>
|
||||||
|
<a href="https://ci.appveyor.com/project/ThisDrunkDane/odin">
|
||||||
|
<img src="https://ci.appveyor.com/api/projects/status/4q58fsv7bubmgcla?svg=true">
|
||||||
|
</a>
|
||||||
|
<a href="https://travis-ci.org/ThisDrunkDane/Odin">
|
||||||
|
<img src="https://travis-ci.org/ThisDrunkDane/Odin.svg?branch=travis">
|
||||||
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
# The Odin Programming Language
|
# The Odin Programming Language
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
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
|
||||||
@@ -42,7 +42,6 @@ del *.ilk > NUL 2> NUL
|
|||||||
|
|
||||||
cl %compiler_settings% "src\main.cpp" ^
|
cl %compiler_settings% "src\main.cpp" ^
|
||||||
/link %linker_settings% -OUT:%exe_name% ^
|
/link %linker_settings% -OUT:%exe_name% ^
|
||||||
&& odin run examples/demo/demo.odin
|
|
||||||
|
|
||||||
del *.obj > NUL 2> NUL
|
del *.obj > NUL 2> NUL
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
:: Make sure this is a decent name and not generic
|
||||||
|
set exe_name=odin.exe
|
||||||
|
|
||||||
|
:: Debug = 0, Release = 1
|
||||||
|
set release_mode=1
|
||||||
|
set compiler_flags= -nologo -Oi -TP -fp:precise -Gm- -MP -FC -GS- -EHsc- -GR- -O2 -MT -Z7 -DNO_ARRAY_BOUNDS_CHECK
|
||||||
|
set compiler_warnings= ^
|
||||||
|
-W4 -WX ^
|
||||||
|
-wd4100 -wd4101 -wd4127 -wd4189 ^
|
||||||
|
-wd4201 -wd4204 ^
|
||||||
|
-wd4456 -wd4457 -wd4480 ^
|
||||||
|
-wd4512
|
||||||
|
|
||||||
|
set compiler_includes=
|
||||||
|
set libs= ^
|
||||||
|
kernel32.lib
|
||||||
|
|
||||||
|
set linker_flags= -incremental:no -opt:ref -subsystem:console -debug
|
||||||
|
|
||||||
|
set compiler_settings=%compiler_includes% %compiler_flags% %compiler_warnings%
|
||||||
|
set linker_settings=%libs% %linker_flags%
|
||||||
|
|
||||||
|
cl %compiler_settings% "src\main.cpp" ^
|
||||||
|
/link %linker_settings% -OUT:%exe_name% ^
|
||||||
|
|
||||||
+1
-13
@@ -1,24 +1,12 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import "core:fmt"
|
import "core:fmt"
|
||||||
import "core:strconv"
|
|
||||||
import "core:mem"
|
import "core:mem"
|
||||||
import "core:bits"
|
|
||||||
import "core:hash"
|
|
||||||
import "core:math"
|
|
||||||
import "core:math/rand"
|
|
||||||
import "core:os"
|
import "core:os"
|
||||||
import "core:sort"
|
|
||||||
import "core:strings"
|
|
||||||
import "core:types"
|
|
||||||
import "core:unicode/utf16"
|
|
||||||
import "core:unicode/utf8"
|
|
||||||
import "core:c"
|
|
||||||
import "core:runtime"
|
|
||||||
|
|
||||||
when os.OS == "windows" {
|
when os.OS == "windows" {
|
||||||
|
import "core:runtime"
|
||||||
import "core:thread"
|
import "core:thread"
|
||||||
import "core:sys/win32"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@(link_name="general_stuff")
|
@(link_name="general_stuff")
|
||||||
|
|||||||
Reference in New Issue
Block a user