|
@@ -1,36 +0,0 @@
|
|
|
-name: data-server
|
|
|
|
|
-on:
|
|
|
|
|
- push:
|
|
|
|
|
- branches:
|
|
|
|
|
- - main
|
|
|
|
|
- paths:
|
|
|
|
|
- - data_server
|
|
|
|
|
- workflow_dispatch: {}
|
|
|
|
|
-
|
|
|
|
|
-jobs:
|
|
|
|
|
- build:
|
|
|
|
|
- name: release ${{ matrix.target }}
|
|
|
|
|
- runs-on: ubuntu-latest
|
|
|
|
|
- strategy:
|
|
|
|
|
- fail-fast: false
|
|
|
|
|
- matrix:
|
|
|
|
|
- target: [x86_64-pc-windows-gnu, x86_64-unknown-linux-musl]
|
|
|
|
|
- steps:
|
|
|
|
|
- - uses: actions/checkout@v4
|
|
|
|
|
- - name: Install Protoc
|
|
|
|
|
- uses: arduino/setup-protoc@v2
|
|
|
|
|
- with:
|
|
|
|
|
- version: "25.1"
|
|
|
|
|
- - name: Compile
|
|
|
|
|
- uses: rust-build/rust-build.action@v1.4.4
|
|
|
|
|
- with:
|
|
|
|
|
- RUSTTARGET: ${{ matrix.target }}
|
|
|
|
|
- UPLOAD_MODE: none
|
|
|
|
|
- SRC_DIR: data_server
|
|
|
|
|
- - name: Upload artifact
|
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
|
- with:
|
|
|
|
|
- name: Binary
|
|
|
|
|
- path: |
|
|
|
|
|
- ${{ steps.compile.outputs.BUILT_ARCHIVE }}
|
|
|
|
|
- ${{ steps.compile.outputs.BUILT_CHECKSUM }}
|
|
|