Builds used to download the Tailwind binary and the daisyUI plugins from GitHub releases. They are now committed in tools/tailwind/: - the Tailwind 4.3.3 standalone binary for linux-x64, xz -9e compressed (28 MB); - daisyui.mjs and daisyui-theme.mjs 5.7.47; - daisyUI's llms.txt component reference; - Tailwind's MIT license. tools/tailwind.sh no longer touches the network. "prepare" checks every file against its pinned sha256 and unpacks the binary into .tools/. MSBuild reruns it only when the archive or the script changes. A build from scratch was checked inside a network namespace with no network at all. .gitattributes keeps the vendored files byte-exact, and Tailwind no longer scans tools/, whose llms.txt names every daisyUI class. Both workflows used actions/checkout, which a Gitea runner downloads from github.com. They now git fetch the commit from this Gitea, as they already did for SocialPub. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LsXgEaXee4GCU1hwYgPJXw
34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: build
|
|
steps:
|
|
# A plain fetch from this Gitea rather than actions/checkout, which the runner would download from github.com.
|
|
- name: Check out this commit
|
|
env:
|
|
READ_TOKEN: ${{ secrets.THEPRA_READ_TOKEN }}
|
|
run: |
|
|
rm -rf decePubClient
|
|
git init -q decePubClient
|
|
git -C decePubClient -c http.extraHeader="Authorization: token $READ_TOKEN" fetch -q --depth 1 \
|
|
"$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git" "$GITHUB_SHA"
|
|
git -C decePubClient checkout -q FETCH_HEAD
|
|
|
|
- name: Fetch PrivaPub's client models beside it
|
|
env:
|
|
READ_TOKEN: ${{ secrets.THEPRA_READ_TOKEN }}
|
|
run: |
|
|
rm -rf SocialPub
|
|
git -c http.extraHeader="Authorization: token $READ_TOKEN" clone -q --depth 1 \
|
|
https://git.thepra.dev/thepra/SocialPub.git SocialPub
|
|
|
|
- name: Build
|
|
run: dotnet build decePubClient/decePubClient.csproj -c Release
|