Add CI config (#170)
authorLiza Carvelli <liza@carvel.li>
Tue, 25 Mar 2025 02:09:59 +0000 (02:09 +0000)
committerLiza <liza@no-reply.carvel.li>
Tue, 25 Mar 2025 02:09:59 +0000 (02:09 +0000)
Reviewed-on: https://git.carvel.li/liza/Questionable/pulls/170
Co-authored-by: Liza Carvelli <liza@carvel.li>
Co-committed-by: Liza Carvelli <liza@carvel.li>
.woodpecker/build.yaml [new file with mode: 0644]
LLib

diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml
new file mode 100644 (file)
index 0000000..c71cad8
--- /dev/null
@@ -0,0 +1,47 @@
+when:
+  - event: tag
+  - event: push
+  - event: pull_request
+
+steps:
+  - name: prepare dalamud
+    image: alpine
+    commands:
+      - apk add --no-cache unzip
+      - wget https://goatcorp.github.io/dalamud-distrib/latest.zip -O /tmp/dalamud.zip
+      - unzip /tmp/dalamud.zip -d $CI_WORKSPACE/.dalamud
+
+  - name: dotnet restore
+    image: mcr.microsoft.com/dotnet/sdk:8.0-jammy
+    commands:
+      - dotnet restore --packages $CI_WORKSPACE/.nuget
+
+  - name: dotnet build
+    image: mcr.microsoft.com/dotnet/sdk:8.0-jammy
+    commands:
+      - export DALAMUD_HOME=$CI_WORKSPACE/.dalamud/
+      - echo "dotnet build Questionable/Questionable.csproj -c Release -f net8.0-windows -p:DalamudLibPath=$DALAMUD_HOME -maxcpucount:1 --source $CI_WORKSPACE/.nuget --no-restore"
+      - dotnet build Questionable/Questionable.csproj -c Release -f net8.0-windows -p:DalamudLibPath=$DALAMUD_HOME -maxcpucount:1 --source $CI_WORKSPACE/.nuget --no-restore
+
+  - name: prepare release files
+    image: alpine
+    commands:
+      - mkdir release
+      - mv Questionable/dist/Questionable/latest.zip release/Questionable-${CI_COMMIT_TAG##v}.zip
+      - mv Questionable/dist/Questionable/Questionable.json release/Questionable-${CI_COMMIT_TAG##v}.json
+    when:
+      - event: tag
+
+  - name: prepare release
+    image: woodpeckerci/plugin-release
+    settings:
+      title: ${CI_COMMIT_TAG}
+      draft: true
+      files:
+        - "release/*.zip"
+        - "release/*.json"
+      api_key:
+        from_secret: ACCESS_TOKEN
+      checksum: sha256
+    when:
+      - event: tag
diff --git a/LLib b/LLib
index edab3c7..8f995a3 160000 (submodule)
--- a/LLib
+++ b/LLib
@@ -1 +1 @@
-Subproject commit edab3c7ecc6bd66ac07e3c3938eb9c8a835a1c42
+Subproject commit 8f995a3ff27c55b585a679415d350bb90bcc3fb7