Skip to content

Commit

Permalink
statically link release binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
terror committed Nov 27, 2021
1 parent ce39e9c commit e035bed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- target: x86_64-pc-windows-msvc
os: windows-latest
cross_compiling: false
target_rustflags: '--codegen target-feature=+crt-static'
target_rustflags: ''
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
cross_compiling: false
Expand Down
2 changes: 1 addition & 1 deletion bin/package
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ BIN=agora
echo "Packaging $BIN $VERSION for $TARGET..."

echo "Building $BIN..."
RUSTFLAGS="$TARGET_RUSTFLAGS" cargo build --bin $BIN --target $TARGET --release
RUSTFLAGS="$TARGET_RUSTFLAGS --codegen target-feature=+crt-static" cargo build --bin $BIN --target $TARGET --release
EXECUTABLE=target/$TARGET/release/$BIN

if [[ $OS == windows-latest ]]; then
Expand Down

0 comments on commit e035bed

Please sign in to comment.