Skip to content

Commit bb6b584

Browse files
committed
Use Ubuntu for UI tests
The UI tests no longer have reproducibility issues, so we can run them on another platform that is less restrained by GitHub Actions capacity.
1 parent a46ab13 commit bb6b584

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ jobs:
190190

191191
ui:
192192
name: Compiler UI
193-
runs-on: macos-13
193+
runs-on: ubuntu-latest
194194
needs:
195195
- fmt
196196
- lint
@@ -218,7 +218,7 @@ jobs:
218218
key: cargo-${{ github.job }}-${{ matrix.name }}-${{ hashFiles('**/Cargo.lock') }}
219219

220220
- name: Run UI tests
221-
run: cargo run --features=run --bin=test-ui
221+
run: cargo run --features=run,gnustep-1-7 --bin=test-ui
222222

223223
- name: Check diff
224224
if: ${{ always() }}

crates/test-ui/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ block2 = { path = "../block2" }
4141
objc2 = { path = "../objc2" }
4242
objc2-foundation = { path = "../../framework-crates/objc2-foundation" }
4343

44+
# To make CI work
45+
[target.'cfg(not(target_vendor = "apple"))'.dependencies]
46+
block2 = { path = "../block2", features = ["gnustep-1-7"] }
47+
objc2 = { path = "../objc2", features = ["gnustep-1-7"] }
48+
objc2-foundation = { path = "../../framework-crates/objc2-foundation", features = ["gnustep-1-7"] }
49+
4450
[[bin]]
4551
name = "test-ui"
4652
required-features = ["run"]

0 commit comments

Comments
 (0)