droboticflow/.github/workflows/drosync-preview-release.yml
2026-07-29 15:08:06 +08:00

90 lines
2.5 KiB
YAML

name: drosync-preview-release
on:
workflow_dispatch:
inputs:
version:
description: POC preview version
required: true
default: 1.0.0-poc-preview
permissions:
contents: read
env:
DROSYNC_VERSION: ${{ inputs.version }}
DROSYNC_UPDATE_PUBLIC_KEY_BASE64: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
jobs:
verify:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.89.0
with:
components: rustfmt
- name: Install native dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libayatana-appindicator3-dev \
libdbus-1-dev \
libgtk-3-dev \
libxdo-dev \
pkg-config
- run: python3 scripts/generate_drosync_contract.py --check
- run: cargo fmt --manifest-path tools/drosync/Cargo.toml --all -- --check
- run: cargo test --manifest-path tools/drosync/Cargo.toml --workspace
linux:
needs: verify
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.89.0
- name: Install native dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libayatana-appindicator3-dev \
libdbus-1-dev \
libgtk-3-dev \
libxdo-dev \
pkg-config
- run: tools/drosync/packaging/build-preview.sh linux-x86_64
- uses: actions/upload-artifact@v4
with:
name: drosync-linux-x86_64-${{ inputs.version }}
path: tools/drosync/dist/*
if-no-files-found: error
macos:
needs: verify
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.89.0
- run: tools/drosync/packaging/build-preview.sh macos-arm64
- uses: actions/upload-artifact@v4
with:
name: drosync-macos-arm64-${{ inputs.version }}
path: tools/drosync/dist/*
if-no-files-found: error
windows:
needs: verify
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.89.0
- name: Install WiX
shell: pwsh
run: dotnet tool install --global wix --version 5.*
- shell: pwsh
run: tools/drosync/packaging/windows/build-preview.ps1
- uses: actions/upload-artifact@v4
with:
name: drosync-windows-x86_64-${{ inputs.version }}
path: tools/drosync/dist/*
if-no-files-found: error