2025-04-27 16:30:34 -03:00
|
|
|
name: GBCI
|
2025-04-27 16:21:08 -03:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2025-04-27 16:30:34 -03:00
|
|
|
branches: [ "main" ]
|
2025-04-27 16:21:08 -03:00
|
|
|
pull_request:
|
2025-04-27 16:30:34 -03:00
|
|
|
branches: [ "main" ]
|
2025-04-27 16:21:08 -03:00
|
|
|
|
|
|
|
jobs:
|
2025-04-27 16:30:34 -03:00
|
|
|
build:
|
2025-04-27 16:21:08 -03:00
|
|
|
runs-on: gbo
|
|
|
|
|
|
|
|
steps:
|
2025-04-27 16:30:34 -03:00
|
|
|
- name: Disable SSL verification (temporary)
|
|
|
|
run: git config --global http.sslVerify false
|
|
|
|
|
2025-04-27 16:21:08 -03:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
2025-04-27 17:43:24 -03:00
|
|
|
- name: Run build
|
2025-06-19 20:31:14 -03:00
|
|
|
run: |
|
2025-06-19 20:36:43 -03:00
|
|
|
echo "$HOME/.cargo/bin" >> $GITHUB_PATH # Forgejo uses same syntax as GitHub Actions
|
2025-06-19 20:31:14 -03:00
|
|
|
cargo build --workspace --release --locked
|
2025-04-27 16:21:08 -03:00
|
|
|
|
|
|
|
- name: Deploy binary
|
|
|
|
run: |
|
2025-06-17 22:35:39 -03:00
|
|
|
sudo cp ./target/release/gbserver /opt/gbo/bin/system
|
|
|
|
sudo chmod +x /opt/gbo/bin/system/gbserver
|
2025-04-27 16:21:08 -03:00
|
|
|
|
2025-06-19 20:24:27 -03:00
|
|
|
sudo systemctl restart gbserver
|
|
|
|
|