CI / test (push) Successful in 2m50s
- ci.yml: build + test sur chaque push/PR (lightweight) - release.yml: cross-compile linux/x86_64, linux/arm64, windows/x86_64 puis crée une release Gitea avec curl + API (idempotent, re-run safe)
32 lines
560 B
YAML
32 lines
560 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install V
|
|
run: |
|
|
git clone --depth 1 https://github.com/vlang/v /opt/v
|
|
cd /opt/v && make
|
|
ln -s /opt/v/v /usr/local/bin/v
|
|
|
|
- name: Build
|
|
run: v -prod .
|
|
|
|
- name: Test
|
|
run: v test .
|
|
|
|
- name: Verify version
|
|
run: |
|
|
./ntfy-bridge --version
|
|
./ntfy-bridge --help
|