mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 02:59:54 +00:00
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
|
||||
|
||||
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 $@ $^
|
||||
|
||||
clean:
|
||||
|
18
appveyor.yml
18
appveyor.yml
@ -20,6 +20,7 @@ init:
|
||||
install:
|
||||
- build_win
|
||||
- build_win test
|
||||
- build_win dist
|
||||
|
||||
build: off
|
||||
|
||||
@ -29,25 +30,16 @@ only_commits:
|
||||
- src/
|
||||
|
||||
artifacts:
|
||||
- path: janet.exe
|
||||
name: janet.exe
|
||||
type: File
|
||||
- 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
|
||||
- path: dist
|
||||
name: janet-%APPVEYOR_TAG_NAME%-windows.zip
|
||||
type: Zip
|
||||
|
||||
deploy:
|
||||
description: 'The Janet Programming Language.'
|
||||
provider: GitHub
|
||||
auth_token:
|
||||
secure: lwEXy09qhj2jSH9s1C/KvCkAUqJSma8phFR+0kbsfUc3rVxpNK5uD3z9Md0SjYRx
|
||||
artifact: janet.exe
|
||||
artifact: janet-%APPVEYOR_TAG_NAME%-windows.zip
|
||||
draft: true
|
||||
on:
|
||||
APPVEYOR_REPO_TAG: true
|
||||
|
@ -12,6 +12,7 @@
|
||||
@if "%1"=="help" goto HELP
|
||||
@if "%1"=="clean" goto CLEAN
|
||||
@if "%1"=="test" goto TEST
|
||||
@if "%1"=="dist" goto DIST
|
||||
|
||||
@rem Set compile and link options here
|
||||
@setlocal
|
||||
@ -88,6 +89,17 @@ for %%f in (test/suite*.janet) do (
|
||||
@if errorlevel 1 goto :TESTFAIL
|
||||
)
|
||||
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
|
||||
@echo.
|
||||
@echo *******************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user