mirror of
https://github.com/chatmail/core.git
synced 2026-04-18 05:56:31 +03:00
ci: add action to build deltachat-rpc-server
This commit is contained in:
47
.github/workflows/deltachat-rpc-server.yml
vendored
Normal file
47
.github/workflows/deltachat-rpc-server.yml
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
# Manually triggered action to build deltachat-rpc-server binaries.
|
||||
|
||||
name: Build deltachat-rpc-server binaries
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build_server:
|
||||
name: Build deltachat-rpc-server
|
||||
strategy:
|
||||
matrix:
|
||||
- os: ubuntu-22.04
|
||||
artifact: gnu-linux-x86_64
|
||||
path: "target/release/deltachat-rpc-server"
|
||||
target: x86_64-unknown-linux-gnu
|
||||
|
||||
- os: ubuntu-22.04
|
||||
artifact: gnu-linux-i686
|
||||
path: "target/release/deltachat-rpc-server"
|
||||
target: i686-unknown-linux-gnu
|
||||
|
||||
- os: windows-latest
|
||||
artifact: win32.exe
|
||||
path: "target/release/deltachat-rpc-server.exe"
|
||||
target: i686-pc-windows-msvc
|
||||
|
||||
- os: windows-latest
|
||||
artifact: win64.exe
|
||||
path: "target/release/deltachat-rpc-server.exe"
|
||||
target: x86_64-pc-windows-msvc
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup rust target
|
||||
run: rustup target add ${{ matrix.target }}
|
||||
|
||||
- name: Build
|
||||
run: cargo build --release -p deltachat-rpc-server
|
||||
|
||||
- name: Upload binary
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: deltachat-rpc-server-${{ matrix.artfiact }}
|
||||
path: ${{ matrix.path }}
|
||||
Reference in New Issue
Block a user