File tree 4 files changed +12
-15
lines changed
4 files changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -65,24 +65,29 @@ jobs:
65
65
runner : warp-ubuntu-latest-x64-16x
66
66
67
67
steps :
68
- - uses : actions/checkout@v4
69
-
70
68
- uses : WarpBuilds/rust-cache@v2
71
69
72
- - name : Prepare filename
73
- run : echo "OUTPUT_FILENAME=rbuilder-${VERSION}-${{ matrix.configs.target }}" >> $GITHUB_ENV
74
-
75
- - name : Build binary
70
+ - name : Install dependencies
76
71
run : |
77
72
apt-get update
78
73
apt-get install -y \
79
74
build-essential \
80
75
curl \
76
+ git \
81
77
libclang-dev \
82
78
libssl-dev \
83
79
pkg-config \
84
80
protobuf-compiler
85
81
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
82
+
83
+ - uses : actions/checkout@v4 # must install git before checkout and set safe.directory after checkout because of container
84
+
85
+ - name : Prepare filename
86
+ run : echo "OUTPUT_FILENAME=rbuilder-${VERSION}-${{ matrix.configs.target }}" >> $GITHUB_ENV
87
+
88
+ - name : Build binary
89
+ run : |
90
+ git config --global --add safe.directory "$(pwd)"
86
91
. $HOME/.cargo/env
87
92
cargo build --release --target ${{ matrix.configs.target }}
88
93
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ version = "0.1.0"
4
4
edition = " 2021"
5
5
6
6
[dependencies ]
7
- openssl = { version = " 0.10" , features = [" vendored" ], optional = false }
8
7
clap = { version = " 4.4.3" , features = [" derive" , " env" ] }
9
8
tokio = " 1.32.0"
10
9
tokio-util = " 0.7.10"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ clean: ## Clean up
23
23
24
24
.PHONY : build
25
25
build : # # Build static binary for x86_64
26
- cross build --release --target x86_64-unknown-linux-musl
26
+ cargo build --release --target x86_64-unknown-linux-gnu
27
27
28
28
.PHONY : docker-image
29
29
docker-image : # # Build a rbuilder Docker image
You can’t perform that action at this time.
0 commit comments