mirror of https://github.com/janet-lang/janet
Update appveyor and windows build_win script.
This commit is contained in:
parent
0cc3a98aa9
commit
4bcbf65b5b
3
Makefile
3
Makefile
|
@ -159,7 +159,8 @@ clean-natives:
|
||||||
|
|
||||||
dist: janet-dist.tar.gz
|
dist: janet-dist.tar.gz
|
||||||
|
|
||||||
janet-%.tar.gz: $(JANET_TARGET) src/include/janet/janet.h janet.1 $(JANET_LIBRARY)
|
janet-%.tar.gz: $(JANET_TARGET) src/include/janet/janet.h \
|
||||||
|
janet.1 LICENSE CONTRIBUTING.md $(JANET_LIBRARY) README.md
|
||||||
tar -czvf $@ $^
|
tar -czvf $@ $^
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
18
appveyor.yml
18
appveyor.yml
|
@ -20,6 +20,7 @@ init:
|
||||||
install:
|
install:
|
||||||
- build_win
|
- build_win
|
||||||
- build_win test
|
- build_win test
|
||||||
|
- build_win dist
|
||||||
|
|
||||||
build: off
|
build: off
|
||||||
|
|
||||||
|
@ -29,25 +30,16 @@ only_commits:
|
||||||
- src/
|
- src/
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: janet.exe
|
- path: dist
|
||||||
name: janet.exe
|
name: janet-%APPVEYOR_TAG_NAME%-windows.zip
|
||||||
type: File
|
type: Zip
|
||||||
- path: janet.def
|
|
||||||
name: janet.def
|
|
||||||
type: File
|
|
||||||
- path: janet.lib
|
|
||||||
name: janet.lib
|
|
||||||
type: File
|
|
||||||
- path: src\include\janet\janet.h
|
|
||||||
name: janet.h
|
|
||||||
type: File
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
description: 'The Janet Programming Language.'
|
description: 'The Janet Programming Language.'
|
||||||
provider: GitHub
|
provider: GitHub
|
||||||
auth_token:
|
auth_token:
|
||||||
secure: lwEXy09qhj2jSH9s1C/KvCkAUqJSma8phFR+0kbsfUc3rVxpNK5uD3z9Md0SjYRx
|
secure: lwEXy09qhj2jSH9s1C/KvCkAUqJSma8phFR+0kbsfUc3rVxpNK5uD3z9Md0SjYRx
|
||||||
artifact: janet.exe
|
artifact: janet-%APPVEYOR_TAG_NAME%-windows.zip
|
||||||
draft: true
|
draft: true
|
||||||
on:
|
on:
|
||||||
APPVEYOR_REPO_TAG: true
|
APPVEYOR_REPO_TAG: true
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
@if "%1"=="help" goto HELP
|
@if "%1"=="help" goto HELP
|
||||||
@if "%1"=="clean" goto CLEAN
|
@if "%1"=="clean" goto CLEAN
|
||||||
@if "%1"=="test" goto TEST
|
@if "%1"=="test" goto TEST
|
||||||
|
@if "%1"=="dist" goto DIST
|
||||||
|
|
||||||
@rem Set compile and link options here
|
@rem Set compile and link options here
|
||||||
@setlocal
|
@setlocal
|
||||||
|
@ -88,6 +89,17 @@ for %%f in (test/suite*.janet) do (
|
||||||
@if errorlevel 1 goto :TESTFAIL
|
@if errorlevel 1 goto :TESTFAIL
|
||||||
)
|
)
|
||||||
exit /b 0
|
exit /b 0
|
||||||
|
|
||||||
|
@rem Build a dist directory
|
||||||
|
:DIST
|
||||||
|
mkdir dist
|
||||||
|
copy janet.exe dist\janet.exe
|
||||||
|
copy LICESNE dist\LICENSE
|
||||||
|
copy README.md dist\README.md
|
||||||
|
copy janet.lib dist\janet.lib
|
||||||
|
copy janet.exp dist\janet.exp
|
||||||
|
copy src\include\janet\janet.h dist\janet.h
|
||||||
|
|
||||||
:TESTFAIL
|
:TESTFAIL
|
||||||
@echo.
|
@echo.
|
||||||
@echo *******************************************************
|
@echo *******************************************************
|
||||||
|
|
Loading…
Reference in New Issue