detached a35624f

fix(ci): enable CGO tests with build cache for gotk4

commit
a35624f100d2098d19165eb0d544f40a07364e5e
author
bnema · · 2025-11-30 05:00 UTC
parent
abce795
signature
unsigned
1 file · +20 -2
M .github/workflows/ci.yml +20 -2
@@ -17,6 +17,13 @@ jobs:
1717 with:
1818 go-version: stable
1919 cache: true
20+ - name: Cache Go build cache
21+ uses: actions/cache@v4
22+ with:
23+ path: ~/.cache/go-build
24+ key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
25+ restore-keys: |
26+ ${{ runner.os }}-go-build-
2027 - uses: actions/setup-node@v6
2128 with:
2229 node-version: '24'
@@ -41,10 +48,21 @@ jobs:
4148 with:
4249 go-version: stable
4350 cache: true
51+ - name: Cache Go build cache
52+ uses: actions/cache@v4
53+ with:
54+ path: ~/.cache/go-build
55+ key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
56+ restore-keys: |
57+ ${{ runner.os }}-go-build-
4458 - uses: actions/setup-node@v6
4559 with:
4660 node-version: '24'
61+ - name: Install WebKitGTK 6.0 dependencies
62+ run: |
63+ sudo apt-get update
64+ sudo apt-get install -y libwebkitgtk-6.0-dev libgtk-4-dev libgirepository1.0-dev
4765 - name: Build frontend assets
4866 run: make build-frontend
49- - name: Run tests (non-CGO packages only)
50- run: CGO_ENABLED=0 go test -v ./...
67+ - name: Run tests
68+ run: go test -v ./...
@@ -17,6 +17,13 @@ jobs:
17 with:17 with:
18 go-version: stable18 go-version: stable
19 cache: true19 cache: true
20+ - name: Cache Go build cache
21+ uses: actions/cache@v4
22+ with:
23+ path: ~/.cache/go-build
24+ key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
25+ restore-keys: |
26+ ${{ runner.os }}-go-build-
20 - uses: actions/setup-node@v627 - uses: actions/setup-node@v6
21 with:28 with:
22 node-version: '24'29 node-version: '24'
@@ -41,10 +48,21 @@ jobs:
41 with:48 with:
42 go-version: stable49 go-version: stable
43 cache: true50 cache: true
51+ - name: Cache Go build cache
52+ uses: actions/cache@v4
53+ with:
54+ path: ~/.cache/go-build
55+ key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
56+ restore-keys: |
57+ ${{ runner.os }}-go-build-
44 - uses: actions/setup-node@v658 - uses: actions/setup-node@v6
45 with:59 with:
46 node-version: '24'60 node-version: '24'
61+ - name: Install WebKitGTK 6.0 dependencies
62+ run: |
63+ sudo apt-get update
64+ sudo apt-get install -y libwebkitgtk-6.0-dev libgtk-4-dev libgirepository1.0-dev
47 - name: Build frontend assets65 - name: Build frontend assets
48 run: make build-frontend66 run: make build-frontend
49- - name: Run tests (non-CGO packages only)67+ - name: Run tests
50- run: CGO_ENABLED=0 go test -v ./...68+ run: go test -v ./...

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 8

Tags 42

↑↓ moveenter openesc close