From: Liza Carvelli Date: Tue, 25 Mar 2025 02:09:59 +0000 (+0000) Subject: Add CI config (#170) X-Git-Tag: v5.0~7 X-Git-Url: https://git.jacobcasper.com/?a=commitdiff_plain;h=b7703417a6d21f399805b2240515453be3adf896;p=Questionable.git Add CI config (#170) Reviewed-on: https://git.carvel.li/liza/Questionable/pulls/170 Co-authored-by: Liza Carvelli Co-committed-by: Liza Carvelli --- diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml new file mode 100644 index 00000000..c71cad8b --- /dev/null +++ b/.woodpecker/build.yaml @@ -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 edab3c7e..8f995a3f 160000 --- a/LLib +++ b/LLib @@ -1 +1 @@ -Subproject commit edab3c7ecc6bd66ac07e3c3938eb9c8a835a1c42 +Subproject commit 8f995a3ff27c55b585a679415d350bb90bcc3fb7