3 Commits
Author SHA1 Message Date
petrbalvin a73d3097d0 fix(ci): install gcc for -race on fedora runner
Test / vet (push) Successful in 39s
Release / release (push) Successful in 15s
Test / test (push) Successful in 1m15s
Test / toml-test (push) Successful in 42s
2026-07-26 18:46:35 +02:00
petrbalvin 376a1120fe fix(ci): add CGO_ENABLED and GITEA_* env vars
Test / vet (push) Successful in 37s
Release / release (push) Successful in 15s
Test / test (push) Failing after 41s
Test / toml-test (push) Successful in 41s
2026-07-26 18:41:14 +02:00
petrbalvin 818d863827 chore: prepare release v1.1.1
Release / release (push) Failing after 15s
Test / vet (push) Successful in 52s
Test / test (push) Failing after 16s
Test / toml-test (push) Successful in 44s
2026-07-26 18:37:36 +02:00
7 changed files with 42 additions and 23 deletions
@@ -6,13 +6,13 @@ on:
jobs: jobs:
release: release:
runs-on: codeberg-small runs-on: fedora
steps: steps:
- uses: https://data.forgejo.org/actions/checkout@v4 - uses: actions/checkout@v4
- name: Verify tag and extract CHANGELOG section - name: Verify tag and extract CHANGELOG section
env: env:
VERSION: ${{ forgejo.ref_name }} VERSION: ${{ gitea.ref_name }}
run: | run: |
set -euo pipefail set -euo pipefail
@@ -40,7 +40,10 @@ jobs:
- name: Create release - name: Create release
env: env:
FORGEJO_TOKEN: ${{ secrets.FORGEJO_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
@@ -56,13 +59,13 @@ jobs:
BODY="\"${BODY}\"" BODY="\"${BODY}\""
response=$(curl -sS -w '\n%{http_code}' \ response=$(curl -sS -w '\n%{http_code}' \
-H "Authorization: token ${FORGEJO_TOKEN}" \ -H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-X POST \ -X POST \
"${FORGEJO_SERVER_URL}/api/v1/repos/${FORGEJO_REPOSITORY}/releases" \ "${GITEA_SERVER_URL}/api/v1/repos/${GITEA_REPOSITORY}/releases" \
-d "{ -d "{
\"tag_name\": \"${FORGEJO_REF_NAME}\", \"tag_name\": \"${GITEA_REF_NAME}\",
\"name\": \"${FORGEJO_REF_NAME}\", \"name\": \"${GITEA_REF_NAME}\",
\"body\": ${BODY}, \"body\": ${BODY},
\"draft\": false, \"draft\": false,
\"prerelease\": false \"prerelease\": false
@@ -78,4 +81,4 @@ jobs:
fi fi
RELEASE_ID=$(echo "$payload" | grep -oE '"id"[[:space:]]*:[[:space:]]*[0-9]+' | head -1 | grep -oE '[0-9]+') RELEASE_ID=$(echo "$payload" | grep -oE '"id"[[:space:]]*:[[:space:]]*[0-9]+' | head -1 | grep -oE '[0-9]+')
echo "Release ${FORGEJO_REF_NAME} is live (ID=${RELEASE_ID})." echo "Release ${GITEA_REF_NAME} is live (ID=${RELEASE_ID})."
@@ -8,11 +8,11 @@ on:
jobs: jobs:
vet: vet:
runs-on: codeberg-small runs-on: fedora
steps: steps:
- uses: https://data.forgejo.org/actions/checkout@v4 - uses: actions/checkout@v4
- uses: https://data.forgejo.org/actions/setup-go@v5 - uses: actions/setup-go@v5
with: with:
go-version: "1.26" go-version: "1.26"
@@ -30,28 +30,33 @@ jobs:
run: go vet ./... run: go vet ./...
test: test:
runs-on: codeberg-small runs-on: fedora
needs: vet needs: vet
steps: steps:
- uses: https://data.forgejo.org/actions/checkout@v4 - uses: actions/checkout@v4
- uses: https://data.forgejo.org/actions/setup-go@v5 - uses: actions/setup-go@v5
with: with:
go-version: "1.26" go-version: "1.26"
- name: Install C compiler
run: sudo dnf install -y gcc
- name: go test -race - name: go test -race
env:
CGO_ENABLED: "1"
run: go test -race -count=1 ./... run: go test -race -count=1 ./...
- name: build example - name: build example
run: go build ./examples/... run: go build ./examples/...
toml-test: toml-test:
runs-on: codeberg-small runs-on: fedora
needs: vet needs: vet
steps: steps:
- uses: https://data.forgejo.org/actions/checkout@v4 - uses: actions/checkout@v4
- uses: https://data.forgejo.org/actions/setup-go@v5 - uses: actions/setup-go@v5
with: with:
go-version: "1.26" go-version: "1.26"
+11
View File
@@ -5,6 +5,13 @@ All notable changes to **interpres** are documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.1.1] — 2026-07-26
### Changed
- **Project**
- Migrate from Codeberg to sourcedock.dev (module path, imports, CI).
## [1.1.0] — 2026-06-26 ## [1.1.0] — 2026-06-26
Adds TOML emission to the previously read-only library, completing the Adds TOML emission to the previously read-only library, completing the
@@ -88,3 +95,7 @@ the standard library and passes the entire
JSON on stdout). JSON on stdout).
- A runnable example, a Go test suite, and a `just` task set (`install`, `run`, - A runnable example, a Go test suite, and a `just` task set (`install`, `run`,
`build`, `test`, `coverage`, `uninstall`). `build`, `test`, `coverage`, `uninstall`).
[1.1.1]: https://sourcedock.dev/petrbalvin/interpres/releases/tag/v1.1.1
[1.1.0]: https://codeberg.org/petrbalvin/interpres/releases/tag/v1.1.0
[1.0.0]: https://codeberg.org/petrbalvin/interpres/releases/tag/v1.0.0
+2 -2
View File
@@ -12,7 +12,7 @@ Go programs that still want their configuration in TOML.
## Install ## Install
```sh ```sh
go get codeberg.org/petrbalvin/interpres go get sourcedock.dev/petrbalvin/interpres
``` ```
Requires Go 1.26 or newer. The module imports only the standard library. Requires Go 1.26 or newer. The module imports only the standard library.
@@ -27,7 +27,7 @@ package main
import ( import (
"fmt" "fmt"
"codeberg.org/petrbalvin/interpres" "sourcedock.dev/petrbalvin/interpres"
) )
type Config struct { type Config struct {
+1 -1
View File
@@ -16,7 +16,7 @@ import (
"strconv" "strconv"
"time" "time"
"codeberg.org/petrbalvin/interpres" "sourcedock.dev/petrbalvin/interpres"
) )
func main() { func main() {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"fmt" "fmt"
"log" "log"
"codeberg.org/petrbalvin/interpres" "sourcedock.dev/petrbalvin/interpres"
) )
const document = ` const document = `
+1 -1
View File
@@ -1,3 +1,3 @@
module codeberg.org/petrbalvin/interpres module sourcedock.dev/petrbalvin/interpres
go 1.26 go 1.26