6 Commits
Author SHA1 Message Date
petrbalvin 603e1e344b fix(ci): use single-line JSON for curl and add missing GITEA_REF_NAME
Release / build (amd64, freebsd) (push) Successful in 56s
Release / build (amd64, linux) (push) Successful in 58s
Release / build (arm64, freebsd) (push) Successful in 58s
Release / build (arm64, linux) (push) Successful in 58s
Release / build (loong64, linux) (push) Successful in 1m3s
Release / build (riscv64, freebsd) (push) Successful in 1m1s
Release / build (riscv64, linux) (push) Successful in 1m1s
Release / release (push) Successful in 20s
2026-07-26 21:48:17 +02:00
petrbalvin 96e47ab87a fix(ci): pass Gitea context vars via env instead of GITHUB_*
Release / build (amd64, freebsd) (push) Successful in 57s
Release / build (amd64, linux) (push) Successful in 1m0s
Release / build (arm64, freebsd) (push) Successful in 1m2s
Release / build (arm64, linux) (push) Successful in 1m0s
Release / build (loong64, linux) (push) Successful in 1m1s
Release / build (riscv64, freebsd) (push) Successful in 59s
Release / build (riscv64, linux) (push) Successful in 59s
Release / release (push) Failing after 18s
2026-07-26 21:29:45 +02:00
petrbalvin c3418b3c3b fix(ci): use GITHUB_* env vars for Gitea release workflow
Release / build (amd64, freebsd) (push) Successful in 59s
Release / build (amd64, linux) (push) Successful in 59s
Release / build (arm64, freebsd) (push) Successful in 57s
Release / build (arm64, linux) (push) Successful in 58s
Release / build (riscv64, freebsd) (push) Canceled after 0s
Release / build (riscv64, linux) (push) Canceled after 0s
Release / release (push) Canceled after 0s
Release / build (loong64, linux) (push) Canceled after 51s
2026-07-26 21:24:48 +02:00
petrbalvin 5048968cdf fix(ci): restrict smoke test to native linux/amd64 builds
Release / build (amd64, freebsd) (push) Successful in 1m0s
Release / build (amd64, linux) (push) Successful in 1m1s
Release / build (arm64, freebsd) (push) Successful in 57s
Release / build (arm64, linux) (push) Successful in 58s
Release / build (loong64, linux) (push) Successful in 1m3s
Release / build (riscv64, freebsd) (push) Successful in 56s
Release / build (riscv64, linux) (push) Successful in 1m0s
Release / release (push) Failing after 20s
2026-07-26 21:15:45 +02:00
petrbalvin a845157c67 fix(ci): restrict smoke test to native linux/amd64 builds
Release / build (amd64, linux) (push) Canceled after 0s
Release / build (arm64, freebsd) (push) Canceled after 0s
Release / build (arm64, linux) (push) Canceled after 0s
Release / build (loong64, linux) (push) Canceled after 0s
Release / build (riscv64, freebsd) (push) Canceled after 0s
Release / build (riscv64, linux) (push) Canceled after 0s
Release / release (push) Canceled after 0s
Release / build (amd64, freebsd) (push) Canceled after 47s
2026-07-26 21:14:52 +02:00
petrbalvin 68f3a610bb fix(ci): restrict smoke test to native linux/amd64 builds 2026-07-26 21:14:29 +02:00
2 changed files with 12 additions and 16 deletions
+9 -16
View File
@@ -68,6 +68,7 @@ jobs:
if-no-files-found: error if-no-files-found: error
- name: Smoke test - name: Smoke test
if: matrix.goos == 'linux' && matrix.goarch == 'amd64'
run: | run: |
chmod +x bin/nuntius-${{ steps.build.outputs.version_no_v }}-${{ matrix.goos }}-${{ matrix.goarch }} chmod +x bin/nuntius-${{ steps.build.outputs.version_no_v }}-${{ matrix.goos }}-${{ matrix.goarch }}
./bin/nuntius-${{ steps.build.outputs.version_no_v }}-${{ matrix.goos }}-${{ matrix.goarch }} --version ./bin/nuntius-${{ steps.build.outputs.version_no_v }}-${{ matrix.goos }}-${{ matrix.goarch }} --version
@@ -108,17 +109,12 @@ jobs:
- name: Create release - name: Create release
env: env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_SERVER_URL: ${{ gitea.server_url }}
GITEA_REPOSITORY: ${{ gitea.repository }}
GITEA_REF_NAME: ${{ gitea.ref_name }}
run: | run: |
set -euo pipefail set -euo pipefail
# JSON-escape the release body with sed: backslashes first, then BODY=$(sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/\t/\\t/g' -e 's/\r//g' release-body.md | sed ':a;N;$!ba;s/\n/\\n/g')
# quotes, tabs, and carriage returns, and finally fold newlines into
# \n. Wrap the result in quotes to form a JSON string.
BODY=$(sed -e 's/\\/\\\\/g' \
-e 's/"/\\"/g' \
-e 's/\t/\\t/g' \
-e 's/\r//g' \
release-body.md \
| sed ':a;N;$!ba;s/\n/\\n/g')
BODY="\"${BODY}\"" BODY="\"${BODY}\""
response=$(curl -sS -w '\n%{http_code}' \ response=$(curl -sS -w '\n%{http_code}' \
@@ -126,13 +122,7 @@ jobs:
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-X POST \ -X POST \
"${GITEA_SERVER_URL}/api/v1/repos/${GITEA_REPOSITORY}/releases" \ "${GITEA_SERVER_URL}/api/v1/repos/${GITEA_REPOSITORY}/releases" \
-d "{ -d "{\"tag_name\":\"${GITEA_REF_NAME}\",\"name\":\"${GITEA_REF_NAME}\",\"body\":${BODY},\"draft\":false,\"prerelease\":false}")
\"tag_name\": \"${GITEA_REF_NAME}\",
\"name\": \"${GITEA_REF_NAME}\",
\"body\": ${BODY},
\"draft\": false,
\"prerelease\": false
}")
http_code=$(echo "$response" | tail -1) http_code=$(echo "$response" | tail -1)
body=$(echo "$response" | sed '$d') body=$(echo "$response" | sed '$d')
@@ -151,6 +141,9 @@ jobs:
- name: Upload assets - name: Upload assets
env: env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_SERVER_URL: ${{ gitea.server_url }}
GITEA_REPOSITORY: ${{ gitea.repository }}
GITEA_REF_NAME: ${{ gitea.ref_name }}
run: | run: |
set -euo pipefail set -euo pipefail
RELEASE_ID=$(cat release-id.txt) RELEASE_ID=$(cat release-id.txt)
+3
View File
@@ -45,6 +45,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
when it finds unformatted files. when it finds unformatted files.
- **Missing `just fmt` recipe** — added `gofmt -w` target. - **Missing `just fmt` recipe** — added `gofmt -w` target.
- **Copyright headers** — added to all Go and Python source files. - **Copyright headers** — added to all Go and Python source files.
- **Smoke test restricted to native builds** — cross-compiled binaries now
skip the smoke test step since they cannot execute on the Linux amd64 CI
runner.
[development]: https://sourcedock.dev/petrbalvin/nuntius/compare/v1.1.0...development [development]: https://sourcedock.dev/petrbalvin/nuntius/compare/v1.1.0...development
[1.1.0]: https://sourcedock.dev/petrbalvin/nuntius/releases/tag/v1.1.0 [1.1.0]: https://sourcedock.dev/petrbalvin/nuntius/releases/tag/v1.1.0