|
| 1 | +name: CI pprof-rs Backend |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + paths: |
| 6 | + - 'pyroscope_backends/pyroscope_pprofrs/**' |
| 7 | + - '.github/workflows/ci-backend-pprof.yml' |
| 8 | + pull_request: |
| 9 | + paths: |
| 10 | + - 'pyroscope_backends/pyroscope_pprofrs/**' |
| 11 | + - '.github/workflows/ci-backend-pprof.yml' |
| 12 | + |
| 13 | +jobs: |
| 14 | + build: |
| 15 | + name: ${{ matrix.os }} - ${{ matrix.target }} |
| 16 | + runs-on: ${{ matrix.os }} |
| 17 | + strategy: |
| 18 | + matrix: |
| 19 | + os: [ubuntu-latest, macos-latest] |
| 20 | + target: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu, x86_64-apple-darwin, aarch64-apple-darwin] |
| 21 | + exclude: |
| 22 | + - os: ubuntu-latest |
| 23 | + target: x86_64-apple-darwin |
| 24 | + - os: ubuntu-latest |
| 25 | + target: aarch64-apple-darwin |
| 26 | + - os: macos-latest |
| 27 | + target: x86_64-unknown-linux-gnu |
| 28 | + - os: macos-latest |
| 29 | + target: aarch64-unknown-linux-gnu |
| 30 | + steps: |
| 31 | + - name: install libunwind (for pprof) |
| 32 | + if: matrix.os == 'ubuntu-latest' |
| 33 | + continue-on-error: true |
| 34 | + run: sudo apt install libunwind8-dev |
| 35 | + |
| 36 | + - name: Checkout sources |
| 37 | + uses: actions/checkout@v2 |
| 38 | + |
| 39 | + - name: Install stable toolchain |
| 40 | + uses: omarabid-forks/rs-toolchain@v1 |
| 41 | + with: |
| 42 | + profile: minimal |
| 43 | + toolchain: stable |
| 44 | + override: true |
| 45 | + |
| 46 | + - name: Cargo build for pprof-rs |
| 47 | + uses: omarabid-forks/rs-cargo@v1 |
| 48 | + with: |
| 49 | + args: --manifest-path pyroscope_backends/pyroscope_pprofrs/Cargo.toml |
| 50 | + command: build |
| 51 | + |
| 52 | + - name: Tests for pprof-rs |
| 53 | + uses: omarabid-forks/rs-cargo@v1 |
| 54 | + with: |
| 55 | + args: --manifest-path pyroscope_backends/pyroscope_pprofrs/Cargo.toml |
| 56 | + command: test |
0 commit comments