- Workspace: common (protocol/crypto/tarball), server (axum+rustls), stub (registration, poll, verify-before-execute) - Ed25519 payload signing + request-signature auth on /poll, /report - flate2/miniz_oxide pure-Rust tarball, no system deps - CI matrix: linux musl x86_64/aarch64, windows x86_64 - Compiles clean: cargo build --workspace, 0 errors 0 warnings
75 lines
2.2 KiB
YAML
75 lines
2.2 KiB
YAML
name: build
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-linux-x86_64:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Add targets
|
|
run: |
|
|
rustup target add x86_64-unknown-linux-musl
|
|
- name: Build
|
|
run: |
|
|
cargo build --release --target x86_64-unknown-linux-musl
|
|
- name: Upload stub binary
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: stub-linux-x86_64
|
|
path: target/x86_64-unknown-linux-musl/release/stub
|
|
if-no-files-found: error
|
|
- name: Upload server binary
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: server-linux-x86_64
|
|
path: target/x86_64-unknown-linux-musl/release/server
|
|
if-no-files-found: error
|
|
build-linux-aarch64:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Add targets
|
|
run: |
|
|
rustup target add aarch64-unknown-linux-musl
|
|
- name: Build
|
|
run: |
|
|
cargo build --release --target aarch64-unknown-linux-musl
|
|
- name: Upload stub binary
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: stub-linux-aarch64
|
|
path: target/aarch64-unknown-linux-musl/release/stub
|
|
if-no-files-found: error
|
|
- name: Upload server binary
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: server-linux-aarch64
|
|
path: target/aarch64-unknown-linux-musl/release/server
|
|
if-no-files-found: error
|
|
build-windows-x86_64:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Add targets
|
|
run: |
|
|
rustup target add x86_64-pc-windows-gnu
|
|
- name: Build
|
|
run: |
|
|
cargo build --release --target x86_64-pc-windows-gnu
|
|
- name: Upload stub binary
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: stub-windows-x86_64
|
|
path: target/x86_64-pc-windows-gnu/release/stub.exe
|
|
if-no-files-found: error
|
|
- name: Upload server binary
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: server-windows-x86_64
|
|
path: target/x86_64-pc-windows-gnu/release/server.exe
|
|
if-no-files-found: error
|