Tool rename
This commit is contained in:
@@ -23,7 +23,7 @@ jobs:
|
|||||||
git reset --hard "${TAG_NAME}"
|
git reset --hard "${TAG_NAME}"
|
||||||
git clean -fd
|
git clean -fd
|
||||||
|
|
||||||
- name: Build nwn-tool
|
- name: Build sow-toolkit
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
CHECKOUT_PATH="${CHECKOUT_PATH:-/home/ubuntu/tools-checkout}"
|
CHECKOUT_PATH="${CHECKOUT_PATH:-/home/ubuntu/tools-checkout}"
|
||||||
@@ -38,15 +38,15 @@ jobs:
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
CHECKOUT_PATH="${CHECKOUT_PATH:-/home/ubuntu/tools-checkout}"
|
CHECKOUT_PATH="${CHECKOUT_PATH:-/home/ubuntu/tools-checkout}"
|
||||||
cd "${CHECKOUT_PATH}"
|
cd "${CHECKOUT_PATH}"
|
||||||
binary="tools/nwn-tool"
|
binary="tools/sow-toolkit"
|
||||||
if [[ ! -x "${binary}" ]]; then
|
if [[ ! -x "${binary}" ]]; then
|
||||||
echo "Missing built tool: ${binary}"
|
echo "Missing built tool: ${binary}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
archive="/tmp/nwn-tool-linux-amd64-${TAG_NAME}.tar.gz"
|
archive="/tmp/sow-toolkit-linux-amd64-${TAG_NAME}.tar.gz"
|
||||||
tar -czf "${archive}" -C tools nwn-tool
|
tar -czf "${archive}" -C tools sow-toolkit
|
||||||
echo "archive=${archive}" >> "$GITHUB_OUTPUT"
|
echo "archive=${archive}" >> "$GITHUB_OUTPUT"
|
||||||
echo "asset_name=nwn-tool-linux-amd64.tar.gz" >> "$GITHUB_OUTPUT"
|
echo "asset_name=sow-toolkit-linux-amd64.tar.gz" >> "$GITHUB_OUTPUT"
|
||||||
echo "tag=${TAG_NAME}" >> "$GITHUB_OUTPUT"
|
echo "tag=${TAG_NAME}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Create release and upload artifact
|
- name: Create release and upload artifact
|
||||||
@@ -72,7 +72,7 @@ jobs:
|
|||||||
RELEASE_ID=$(jq -r '.id' "${RESP_FILE}")
|
RELEASE_ID=$(jq -r '.id' "${RESP_FILE}")
|
||||||
else
|
else
|
||||||
BODY=$(jq -n --arg t "${TAG_NAME}" \
|
BODY=$(jq -n --arg t "${TAG_NAME}" \
|
||||||
'{tag_name: $t, name: $t, body: "nwn-tool binary release built by Gitea Actions."}')
|
'{tag_name: $t, name: $t, body: "sow-toolkit binary release built by Gitea Actions."}')
|
||||||
CODE=$(curl -sS -o "${RESP_FILE}" -w "%{http_code}" "${AUTH[@]}" \
|
CODE=$(curl -sS -o "${RESP_FILE}" -w "%{http_code}" "${AUTH[@]}" \
|
||||||
-X POST -H "Content-Type: application/json" \
|
-X POST -H "Content-Type: application/json" \
|
||||||
-d "${BODY}" \
|
-d "${BODY}" \
|
||||||
@@ -100,7 +100,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
TAG_NAME: ${{ github.ref_name }}
|
TAG_NAME: ${{ github.ref_name }}
|
||||||
run: |
|
run: |
|
||||||
rm -f "/tmp/nwn-tool-linux-amd64-${TAG_NAME}.tar.gz" /tmp/gitea-release.json
|
rm -f "/tmp/sow-toolkit-linux-amd64-${TAG_NAME}.tar.gz" /tmp/gitea-release.json
|
||||||
|
|
||||||
- name: Prune old releases (keep latest 1)
|
- name: Prune old releases (keep latest 1)
|
||||||
env:
|
env:
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
.cache/
|
.cache/
|
||||||
|
|
||||||
# Built tool output
|
# Built tool output
|
||||||
/tools/nwn-tool
|
/tools/sow-toolkit
|
||||||
|
|
||||||
# OS/editor noise
|
# OS/editor noise
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
Shared NWN build tooling for Shadows Over Westgate.
|
Shared NWN build tooling for Shadows Over Westgate.
|
||||||
|
|
||||||
This repository owns the Go-based `nwn-tool` binary used by the separate module and assets repositories.
|
This repository owns the Go-based `sow-toolkit` binary used by the separate module and assets repositories.
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|
||||||
Build the development binary into `tools/nwn-tool`:
|
Build the development binary into `tools/sow-toolkit`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
./build-tool.sh
|
./build-tool.sh
|
||||||
@@ -33,12 +33,12 @@ tools/ built development binary output
|
|||||||
|
|
||||||
## Intended Consumers
|
## Intended Consumers
|
||||||
|
|
||||||
- `sow-module` uses `nwn-tool` for `build-module`, `extract`, `validate`, `compare`, and `apply-hak-manifest`
|
- `sow-module` uses `sow-toolkit` for `build-module`, `extract`, `validate`, `compare`, and `apply-hak-manifest`
|
||||||
- `sow-assets` uses `nwn-tool` for `build-haks` and validation
|
- `sow-assets` uses `sow-toolkit` for `build-haks` and validation
|
||||||
|
|
||||||
During development, sibling repositories can point at `../sow-tools/tools/nwn-tool`. For pinned releases, each consumer repo can instead carry its own copy at `tools/nwn-tool`.
|
During development, sibling repositories can point at `../sow-tools/tools/sow-toolkit`. For pinned releases, each consumer repo can instead carry its own copy at `tools/sow-toolkit`.
|
||||||
|
|
||||||
|
|
||||||
## Release Automation
|
## Release Automation
|
||||||
|
|
||||||
This repo publishes a Linux `nwn-tool` release artifact through Gitea Actions as `nwn-tool-linux-amd64.tar.gz`. Consumer repos can fetch that binary into their local `tools/` directory with their `install-tool.sh` helper.
|
This repo publishes a Linux `sow-toolkit` release artifact through Gitea Actions as `sow-toolkit-linux-amd64.tar.gz`. Consumer repos can fetch that binary into their local `tools/` directory with their `install-tool.sh` helper.
|
||||||
|
|||||||
+1
-1
@@ -3,4 +3,4 @@ set -eu
|
|||||||
|
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
mkdir -p tools .cache/go-build
|
mkdir -p tools .cache/go-build
|
||||||
GOCACHE="${PWD}/.cache/go-build" go build -o ./tools/nwn-tool ./cmd/nwn-tool
|
GOCACHE="${PWD}/.cache/go-build" go build -o ./tools/sow-toolkit ./cmd/nwn-tool
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
Place the built `nwn-tool` binary here for sibling repositories to consume during development.
|
Place the built `sow-toolkit` binary here for sibling repositories to consume during development or for release packaging.
|
||||||
|
|||||||
Reference in New Issue
Block a user