This commit is contained in:
parent
29e59ab845
commit
203cc55350
35
.drone.yml
Normal file
35
.drone.yml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: main
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- tag
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build-windows
|
||||||
|
image: nimlang/nim
|
||||||
|
commands:
|
||||||
|
- apt update
|
||||||
|
- apt install -y mingw-w64
|
||||||
|
- nimble build -y -d:mingw
|
||||||
|
|
||||||
|
- name: build-linux
|
||||||
|
image: nimlang/nim
|
||||||
|
commnds:
|
||||||
|
- nimble build -y -o:passphrase_linux
|
||||||
|
|
||||||
|
- name: release
|
||||||
|
image: plugins/gitea-release
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
settings:
|
||||||
|
base_url: 'https://git.jfmonty2.com/jfmonty2/passphrase.git'
|
||||||
|
files:
|
||||||
|
- passphrase_linux
|
||||||
|
- passphrase.exe
|
||||||
|
api_key:
|
||||||
|
from_secret: gitea_token
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,2 @@
|
|||||||
*.exe
|
*.exe
|
||||||
BNC/*
|
data/BNC/*
|
@ -28,8 +28,8 @@ proc save(wordCounts: CountTable; dictName, countName: string) =
|
|||||||
|
|
||||||
|
|
||||||
type Config = object
|
type Config = object
|
||||||
srcPath: string,
|
srcPath: string
|
||||||
dstPath: string,
|
dstPath: string
|
||||||
|
|
||||||
|
|
||||||
proc parseInput(): Config =
|
proc parseInput(): Config =
|
||||||
@ -41,8 +41,8 @@ proc parseInput(): Config =
|
|||||||
if paramCount() > 1:
|
if paramCount() > 1:
|
||||||
result.dstPath = paramStr(2)
|
result.dstPath = paramStr(2)
|
||||||
|
|
||||||
if not dirExists(basePath):
|
if not dirExists(result.srcPath):
|
||||||
quit("Could not locate datafiles: directory " & basePath & " does not exist.")
|
quit("Could not locate datafiles: directory " & result.srcPath & " does not exist.")
|
||||||
|
|
||||||
|
|
||||||
var
|
var
|
||||||
|
Loading…
x
Reference in New Issue
Block a user