data-server.yml 889 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: data-server
  2. on:
  3. push:
  4. branches:
  5. - main
  6. paths:
  7. - data_server
  8. workflow_dispatch: {}
  9. jobs:
  10. build:
  11. name: release ${{ matrix.target }}
  12. runs-on: ubuntu-latest
  13. strategy:
  14. fail-fast: false
  15. matrix:
  16. target: [x86_64-pc-windows-gnu, x86_64-unknown-linux-musl]
  17. steps:
  18. - uses: actions/checkout@v4
  19. - name: Install Protoc
  20. uses: arduino/setup-protoc@v2
  21. with:
  22. version: "25.1"
  23. - name: Compile
  24. uses: rust-build/rust-build.action@v1.4.4
  25. with:
  26. RUSTTARGET: ${{ matrix.target }}
  27. UPLOAD_MODE: none
  28. SRC_DIR: data_server
  29. - name: Upload artifact
  30. uses: actions/upload-artifact@v3
  31. with:
  32. name: Binary
  33. path: |
  34. ${{ steps.compile.outputs.BUILT_ARCHIVE }}
  35. ${{ steps.compile.outputs.BUILT_CHECKSUM }}