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
|
||||
BNC/*
|
||||
data/BNC/*
|
@ -28,8 +28,8 @@ proc save(wordCounts: CountTable; dictName, countName: string) =
|
||||
|
||||
|
||||
type Config = object
|
||||
srcPath: string,
|
||||
dstPath: string,
|
||||
srcPath: string
|
||||
dstPath: string
|
||||
|
||||
|
||||
proc parseInput(): Config =
|
||||
@ -41,8 +41,8 @@ proc parseInput(): Config =
|
||||
if paramCount() > 1:
|
||||
result.dstPath = paramStr(2)
|
||||
|
||||
if not dirExists(basePath):
|
||||
quit("Could not locate datafiles: directory " & basePath & " does not exist.")
|
||||
if not dirExists(result.srcPath):
|
||||
quit("Could not locate datafiles: directory " & result.srcPath & " does not exist.")
|
||||
|
||||
|
||||
var
|
||||
|
Loading…
x
Reference in New Issue
Block a user