|
41 | 41 |
|
42 | 42 | - name: Run Cargo Tests |
43 | 43 | run: cargo test --workspace ${{ matrix.feature-args }} |
| 44 | + |
| 45 | + cross-platform-test: |
| 46 | + strategy: |
| 47 | + fail-fast: false |
| 48 | + matrix: |
| 49 | + feature-args: ['', '-Funstable-mobile-app'] |
| 50 | + include: |
| 51 | + - feature-args: '' |
| 52 | + feature-suffix: '' |
| 53 | + - feature-args: '-Funstable-mobile-app' |
| 54 | + feature-suffix: ' (-Funstable-mobile-app)' |
| 55 | + |
| 56 | + name: Build on macOS 14, Test on macOS 13${{ matrix.feature-suffix }} |
| 57 | + runs-on: macos-14 |
| 58 | + |
| 59 | + steps: |
| 60 | + - name: Checkout Repository |
| 61 | + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2 |
| 62 | + |
| 63 | + - name: Cache Dependencies |
| 64 | + uses: swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # 2.8.0 |
| 65 | + |
| 66 | + - name: Build on macOS 14 |
| 67 | + run: cargo build --release --workspace ${{ matrix.feature-args }} |
| 68 | + |
| 69 | + - name: Upload Build Artifacts |
| 70 | + uses: actions/upload-artifact@4f92691164d3b957c949c70e2a3e0faf9e90f779 # 4.0.0 |
| 71 | + with: |
| 72 | + name: sentry-cli-macos14-build${{ matrix.feature-suffix }} |
| 73 | + path: target/release/sentry-cli |
| 74 | + retention-days: 1 |
| 75 | + |
| 76 | + cross-platform-test-runner: |
| 77 | + needs: cross-platform-test |
| 78 | + strategy: |
| 79 | + fail-fast: false |
| 80 | + matrix: |
| 81 | + feature-args: ['', '-Funstable-mobile-app'] |
| 82 | + include: |
| 83 | + - feature-args: '' |
| 84 | + feature-suffix: '' |
| 85 | + - feature-args: '-Funstable-mobile-app' |
| 86 | + feature-suffix: ' (-Funstable-mobile-app)' |
| 87 | + |
| 88 | + name: Run macOS 14 Build on macOS 13${{ matrix.feature-suffix }} |
| 89 | + runs-on: macos-13 |
| 90 | + |
| 91 | + steps: |
| 92 | + - name: Checkout Repository |
| 93 | + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2 |
| 94 | + |
| 95 | + - name: Download Build Artifacts |
| 96 | + uses: actions/download-artifact@4f92691164d3b957c949c70e2a3e0faf9e90f779 # 4.0.0 |
| 97 | + with: |
| 98 | + name: sentry-cli-macos14-build${{ matrix.feature-suffix }} |
| 99 | + path: ./bin |
| 100 | + |
| 101 | + - name: Make Binary Executable |
| 102 | + run: chmod +x ./bin/sentry-cli |
| 103 | + |
| 104 | + - name: Test Binary Compatibility |
| 105 | + run: | |
| 106 | + # Ensure the cli runs |
| 107 | + ./bin/sentry-cli --help |
0 commit comments