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
|
|
|
|
|
|
|
|
- name: Install Rust
|
2025-04-27 17:38:02 -03:00
|
|
|
uses: msrd0/rust-toolchain@v1
|
2025-04-27 16:44:48 -03:00
|
|
|
with:
|
|
|
|
toolchain: stable
|
2025-04-27 17:28:41 -03:00
|
|
|
|
2025-04-27 17:43:24 -03:00
|
|
|
- name: Run build
|
|
|
|
run: cargo build --workspace --release --locked
|
2025-04-27 16:21:08 -03:00
|
|
|
|
|
|
|
- name: Deploy binary
|
|
|
|
run: |
|
|
|
|
sudo cp ./target/release/gbserver /opt/gbo/bin/bot
|
|
|
|
sudo chmod +x /opt/gbo/bin/bot/gbserver
|
|
|
|
|
|
|
|
sudo systemctl restart gbserver
|