CI: build Windows, macOS, and Linux on all pushes
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
45805a0976
commit
40bb5808ed
7 files changed
+59
-234
No files matched your search
+21
-17
@@ -27,34 +27,38 @@ Automated builds for **Windows, macOS, and Linux** run from the repo root.
|
||||
2. **Repo → Settings → Actions:** allow workflows.
|
||||
3. Register **act runners** with the right labels.
|
||||
|
||||
#### Your current runner
|
||||
#### Runners (match your other repos)
|
||||
|
||||
| Runner ID | Labels | Can build |
|
||||
|-----------|--------|-----------|
|
||||
| `b0c969454d0f` | `ubuntu-latest`, `ubuntu-24.04`, `ubuntu-22.04` | **Linux only** |
|
||||
**Build Scribd** runs three jobs in parallel:
|
||||
|
||||
With this setup, **Build Scribd** runs only the **linux** job on push/PR (no stuck Windows/macOS jobs).
|
||||
| Job | `runs-on` label | Artifact |
|
||||
|-----|-----------------|----------|
|
||||
| Linux | `ubuntu-latest` | `Scribd-PDF-Downloader-Linux.tar.gz` |
|
||||
| Windows | `windows-latest` | `Scribd-PDF-Downloader-Windows.zip` |
|
||||
| macOS | `macos-latest` | `Scribd-PDF-Downloader-macOS.zip` |
|
||||
|
||||
To add more platforms later, register runners with:
|
||||
Your runner `b0c969454d0f` currently lists `ubuntu-latest` only. If other repos build all OSes on the same host, add the same labels there (Gitea **Admin → Actions → Runners → edit labels**, or in `act_runner` config):
|
||||
|
||||
| Label | Platform |
|
||||
|-------|----------|
|
||||
| `windows-latest` | Windows `.zip` |
|
||||
| `macos-latest` | macOS `.app` zip |
|
||||
```yaml
|
||||
# Example act_runner config (same pattern as your other repos)
|
||||
labels:
|
||||
- "ubuntu-latest:docker://node:20-bookworm"
|
||||
- "windows-latest:docker://..." # Windows container image your infra uses
|
||||
- "macos-latest:docker://..." # macOS VM or remote runner
|
||||
```
|
||||
|
||||
Then use **Run workflow** and enable **build_windows** / **build_macos**, or run **Build Scribd (all platforms)**.
|
||||
Use the **exact label names** that work on your other repositories.
|
||||
|
||||
4. Open **Actions** → **Build Scribd** → **Run workflow** (or push to `main`).
|
||||
4. Open **Actions** → **Build Scribd** (runs on every push to `main` under `Scribd/`).
|
||||
|
||||
Download artifact **`scribd-linux`** → `Scribd-PDF-Downloader-Linux.tar.gz`.
|
||||
Download artifacts: `scribd-windows`, `scribd-macos`, `scribd-linux`.
|
||||
|
||||
### Workflows (repo root)
|
||||
|
||||
```
|
||||
.gitea/workflows/build-scribd.yml # default CI (Linux on push)
|
||||
.gitea/workflows/build-scribd-multiplatform.yml # manual: all 3 OS (needs 3 runners)
|
||||
.gitea/workflows/release-scribd.yml # tagged releases
|
||||
.github/workflows/build-scribd.yml # GitHub mirror
|
||||
.gitea/workflows/build-scribd.yml # Windows + macOS + Linux on push
|
||||
.gitea/workflows/release-scribd.yml # all platforms on tag v*
|
||||
.github/workflows/build-scribd.yml # GitHub mirror
|
||||
```
|
||||
|
||||
CI scripts live in `Scribd/build/ci/` (`build-windows.ps1`, `build-unix.sh`).
|
||||
|
||||
Reference in new issue
Block a user