1 Commits

4 changed files with 78 additions and 10 deletions

View File

@ -12,6 +12,15 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable - uses: dtolnay/rust-toolchain@stable
- run: |
apt-get update
apt-get install -y \
libgtk-3-dev \
libwebkit2gtk-4.1-dev \
libayatana-appindicator3-dev \
librsvg2-dev \
libssl-dev \
patchelf
- run: cargo test - run: cargo test
working-directory: src-tauri working-directory: src-tauri
- run: cargo check --release - run: cargo check --release
@ -38,8 +47,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v5 - run: |
with: apt-get update
python-version: '3.12' apt-get install -y python3 python3-pip
- run: pip install pytest - run: pip3 install pytest
- run: python -m pytest backend/tests/ || true - run: python3 -m pytest backend/tests/ || true

View File

@ -19,8 +19,8 @@ jobs:
working-directory: frontend working-directory: frontend
- uses: dtolnay/rust-toolchain@stable - uses: dtolnay/rust-toolchain@stable
- run: | - run: |
sudo apt-get update apt-get update
sudo apt-get install -y \ apt-get install -y \
libwebkit2gtk-4.1-dev \ libwebkit2gtk-4.1-dev \
librsvg2-dev \ librsvg2-dev \
patchelf \ patchelf \

View File

@ -26,9 +26,9 @@ jobs:
package-lock.json package-lock.json
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v5 run: |
with: apt-get update
python-version: '3.12' apt-get install -y python3 python3-pip
- name: Enforce feature spec policy (PR only) - name: Enforce feature spec policy (PR only)
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'

View File

@ -0,0 +1,59 @@
# Gitea Runner Setup
Two self-hosted runners for the Gitea instance at `http://143.244.157.110:3000`.
## Linux Runner (`talkedit-builder`)
- **Host**: this machine (CachyOS)
- **Binary**: `~/.local/bin/gitea-runner`
- **Config**: `~/.runner`
- **Labels**: `ubuntu-latest``docker://node:22-bookworm`, `ubuntu-24.04``docker://node:22-bookworm`
- **Executor**: Docker
- **Service**: user systemd unit `talkedit-runner.service`
### View runner daemon logs
```bash
journalctl --user -u talkedit-runner --no-pager -n 100
# or follow live:
journalctl --user -u talkedit-runner -f
```
### Restart
```bash
systemctl --user restart talkedit-runner
```
### Workflow job logs (step output)
Not stored locally — streamed to the Gitea server. Download from the Actions UI:
`http://143.244.157.110:3000/dillon_stuff/TalkEdit/actions/runs/<run_id>`
---
## Windows Runner (`windows-laptop`)
- **Host**: Windows laptop
- **Binary**: `%USERPROFILE%\gitea-runner-windows-amd64.exe`
- **Labels**: `windows-latest`
- **Executor**: host (runs directly, no Docker)
### Runner daemon logs
| Mode | Logs |
|---|---|
| Foreground (`daemon`) | PowerShell console stdout |
| Windows service | `%ProgramData%\gitea-runner\log\` or Event Viewer |
### Workflow job logs
Same as Linux — download from Gitea Actions UI.
---
## Why Rust/Python jobs fail
The Linux runner maps `ubuntu-latest` to `docker://node:22-bookworm` which only has Node.js. The Rust and Python steps try to install toolchains (`dtolnay/rust-toolchain`, `actions/setup-python`) inside the Docker container, but something is failing early.
**To debug**: download the full log from Gitea Actions UI and look for the first `error` or `FAILED` line after the initial setup steps — the snippets pasted so far only show the tail (cleanup/post steps).