Skip to content

Commit 21bee32

Browse files
committed
Add macos 13 matrix
1 parent eccd48c commit 21bee32

1 file changed

Lines changed: 70 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,73 @@ jobs:
4141

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

0 commit comments

Comments
 (0)