validate.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. on:
  2. push:
  3. workflow_dispatch:
  4. jobs:
  5. build_ubuntu:
  6. runs-on: ubuntu-latest
  7. steps:
  8. - name: gitconfig
  9. run: |
  10. git config --global core.autocrlf input
  11. - name: checkout
  12. uses: actions/checkout@v3
  13. with:
  14. fetch-depth: 0
  15. - name: Install Rust
  16. uses: actions-rs/toolchain@v1
  17. with:
  18. toolchain: stable
  19. target: x86_64-unknown-linux-gnu
  20. override: true
  21. components: rustfmt, clippy
  22. - name: Set up cargo cache
  23. uses: Swatinem/rust-cache@v2
  24. continue-on-error: false
  25. with:
  26. key: ${{ runner.os }}-cargo-${{ hashFiles('zeroidc//Cargo.lock') }}
  27. shared-key: ${{ runner.os }}-cargo-
  28. workspaces: |
  29. zeroidc/
  30. - name: validate-1m-linux
  31. env:
  32. CC: 'gcc'
  33. CXX: 'g++'
  34. BRANCH: ${{ github.ref_name }}
  35. run: |
  36. sudo apt install -y valgrind xmlstarlet gcovr iperf3 tree
  37. make one ZT_COVERAGE=1 ZT_TRACE=1
  38. sudo chmod +x ./.github/workflows/validate-linux.sh
  39. sudo ./.github/workflows/validate-linux.sh
  40. - name: Archive test results
  41. uses: actions/upload-artifact@v3
  42. with:
  43. name: ${{github.sha}}-test-results
  44. path: "*test-results*"
  45. - name: final-report
  46. run: |
  47. sudo chmod +x ./.github/workflows/validate-report.sh
  48. sudo ./.github/workflows/validate-report.sh