2021-03-02 17:39:41 +00:00
|
|
|
image: fedora/latest
|
2021-03-02 17:38:30 +00:00
|
|
|
packages:
|
|
|
|
- dotnet
|
2021-10-08 17:10:33 +00:00
|
|
|
- wget
|
|
|
|
- unzip
|
2021-03-02 17:38:30 +00:00
|
|
|
sources:
|
2021-03-03 02:16:13 +00:00
|
|
|
- https://git.sr.ht/~jkcclemens/NoSoliciting
|
|
|
|
secrets:
|
|
|
|
- 92fe0dd0-db40-41e0-903a-a18489f75548
|
2021-03-02 17:38:30 +00:00
|
|
|
tasks:
|
2021-10-08 17:10:33 +00:00
|
|
|
- download-dalamud: |
|
|
|
|
mkdir dalamud
|
|
|
|
cd dalamud
|
|
|
|
wget https://github.com/goatcorp/dalamud-distrib/raw/main/latest.zip
|
|
|
|
unzip latest.zip
|
|
|
|
rm latest.zip
|
|
|
|
- build-plugin: |
|
|
|
|
cd NoSoliciting/NoSoliciting
|
|
|
|
dotnet build -c Release -p:IsCI=true
|
|
|
|
- build-trainer: |
|
2021-03-02 17:38:30 +00:00
|
|
|
cd NoSoliciting/NoSoliciting.Trainer
|
|
|
|
dotnet build -c Release
|
|
|
|
- test: |
|
|
|
|
cd NoSoliciting/NoSoliciting.Trainer
|
|
|
|
./bin/Release/net5/NoSoliciting.Trainer test data.csv
|
|
|
|
- create-model: |
|
|
|
|
cd NoSoliciting/NoSoliciting.Trainer
|
|
|
|
./bin/Release/net5/NoSoliciting.Trainer create-model data.csv
|
2021-03-03 02:16:13 +00:00
|
|
|
- update-model: |
|
2021-03-04 00:47:22 +00:00
|
|
|
cd NoSoliciting
|
|
|
|
LAST_COMMIT=$(ssh -o 'StrictHostKeyChecking=accept-new' actions@warm.kitteh.space model commit)
|
|
|
|
if [ "$LAST_COMMIT" = 'None' ] || git diff-tree --no-commit-id --name-only -r "$LAST_COMMIT"..HEAD | grep '^NoSoliciting\.Trainer/data\.csv'; then
|
2021-03-04 00:52:38 +00:00
|
|
|
ssh actions@warm.kitteh.space model update "$(git rev-parse HEAD)" < NoSoliciting.Trainer/model.zip
|
2021-03-04 00:47:22 +00:00
|
|
|
fi
|
2021-03-02 17:38:30 +00:00
|
|
|
artifacts:
|
2021-10-08 17:10:33 +00:00
|
|
|
- NoSoliciting/NoSoliciting/bin/Release/net5-windows/NoSoliciting/latest.zip
|
2021-03-02 17:38:30 +00:00
|
|
|
- NoSoliciting/NoSoliciting.Trainer/model.zip
|