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-06-19 20:38:23 -03:00
|
|
|
- name: Install Rust
|
|
|
|
uses: msrd0/rust-toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
|
|
|
|
|
2025-04-27 17:43:24 -03:00
|
|
|
- name: Run build
|
2025-06-20 20:36:47 -03:00
|
|
|
run: cargo build --locked
|
2025-04-27 16:21:08 -03:00
|
|
|
|
2025-06-20 20:44:22 -03:00
|
|
|
- name: Deploy binary and restart
|
2025-04-27 16:21:08 -03:00
|
|
|
run: |
|
2025-06-20 20:44:22 -03:00
|
|
|
sudo cp ./target/debug/gbserver /opt/gbo/bin/system
|
2025-06-17 22:35:39 -03:00
|
|
|
sudo chmod +x /opt/gbo/bin/system/gbserver
|
2025-06-20 20:36:47 -03:00
|
|
|
|
|
|
|
lxc exec bot:pragmatismo-system -- systemctl restart system
|
2025-06-19 20:24:27 -03:00
|
|
|
|