mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 01:16:31 +03:00
ci: link deltachat-rpc-server statically on Linux
This commit is contained in:
34
.github/workflows/deltachat-rpc-server.yml
vendored
34
.github/workflows/deltachat-rpc-server.yml
vendored
@@ -6,17 +6,37 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_server:
|
# Build a version statically linked against musl libc
|
||||||
name: Build deltachat-rpc-server
|
# to avoid problems with glibc version incompatibility.
|
||||||
|
build_static_linux:
|
||||||
|
name: Build deltachat-rpc-server for Linux
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup rust target
|
||||||
|
run: rustup target add x86_64-unknown-linux-musl
|
||||||
|
|
||||||
|
- name: Install musl-gcc
|
||||||
|
run: sudo apt install musl-tools
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
env:
|
||||||
|
RUSTFLAGS: "-C link-arg=-s"
|
||||||
|
run: cargo build --release --target x86_64-unknown-linux-musl -p deltachat-rpc-server --features vendored
|
||||||
|
- name: Upload binary
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: deltachat-rpc-server
|
||||||
|
path: target/x86_64-unknown-linux-musl/release/deltachat-rpc-server
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
|
build_windows:
|
||||||
|
name: Build deltachat-rpc-server for Windows
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-22.04
|
|
||||||
artifact: gnu-linux-x86_64
|
|
||||||
path: deltachat-rpc-server
|
|
||||||
target: x86_64-unknown-linux-gnu
|
|
||||||
|
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
artifact: win32.exe
|
artifact: win32.exe
|
||||||
path: deltachat-rpc-server.exe
|
path: deltachat-rpc-server.exe
|
||||||
|
|||||||
Reference in New Issue
Block a user