Skip to content

Commit bdfb44e

Browse files
committed
VM build
1 parent e6abe7d commit bdfb44e

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

.github/workflows/cross-build.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ concurrency:
1010
cancel-in-progress: true
1111

1212
jobs:
13-
build-binaries:
13+
build-freebsd:
1414
# needs: [create-release]
1515
runs-on:
1616
- self-hosted
@@ -31,13 +31,12 @@ jobs:
3131

3232
- name: Sync with FreeBSD
3333
run:
34-
pwd
34+
rsync -rlptxzH -e ssh --del ./ freebsd:work/
3535

36-
# - name: Build on FreeBSD
37-
# run: |
38-
# pwd
39-
# ls -l
40-
# uname -a
41-
# pkg update && pkg install rust
42-
# cargo -vV
43-
# echo "${VERSION}"
36+
- name: Build on FreeBSD
37+
run:
38+
ssh freebsd 'cd work && cargo build --locked --release'
39+
40+
- name: Copy binary to host
41+
run:
42+
scp work/target/release/defguard-proxy .

0 commit comments

Comments
 (0)