data-server.yml 782 B

1234567891011121314151617181920212223242526272829303132
  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: Compile
  20. uses: rust-build/rust-build.action@v1.4.4
  21. with:
  22. RUSTTARGET: ${{ matrix.target }}
  23. UPLOAD_MODE: none
  24. SRC_DIR: data_server
  25. - name: Upload artifact
  26. uses: actions/upload-artifact@v3
  27. with:
  28. name: Binary
  29. path: |
  30. ${{ steps.compile.outputs.BUILT_ARCHIVE }}
  31. ${{ steps.compile.outputs.BUILT_CHECKSUM }}