fix: CI rm binary before cp to avoid 'Text file busy'
On Linux, rm on a running binary works (process keeps its fd). Then cp creates a new inode. Restart service after. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
f632c4acd8
commit
b2168751db
@ -19,9 +19,9 @@ jobs:
|
||||
run: |
|
||||
source $HOME/.cargo/env 2>/dev/null || true
|
||||
cargo build --release --manifest-path core/Cargo.toml
|
||||
sudo systemctl stop archipelago 2>/dev/null || true
|
||||
sudo rm -f /usr/local/bin/archipelago
|
||||
sudo cp core/target/release/archipelago /usr/local/bin/archipelago
|
||||
sudo systemctl start archipelago 2>/dev/null || true
|
||||
sudo systemctl restart archipelago 2>/dev/null || true
|
||||
|
||||
- name: Build frontend
|
||||
run: |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user