Skip to content

Commit

Permalink
Use Ubuntu for UI tests
Browse files Browse the repository at this point in the history
The UI tests no longer have reproducibility issues, so we can run them
on another platform that is less restrained by GitHub Actions capacity.
  • Loading branch information
madsmtm committed Nov 14, 2024
1 parent a46ab13 commit bb6b584
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ jobs:

ui:
name: Compiler UI
runs-on: macos-13
runs-on: ubuntu-latest
needs:
- fmt
- lint
Expand Down Expand Up @@ -218,7 +218,7 @@ jobs:
key: cargo-${{ github.job }}-${{ matrix.name }}-${{ hashFiles('**/Cargo.lock') }}

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

- name: Check diff
if: ${{ always() }}
Expand Down
6 changes: 6 additions & 0 deletions crates/test-ui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ block2 = { path = "../block2" }
objc2 = { path = "../objc2" }
objc2-foundation = { path = "../../framework-crates/objc2-foundation" }

# To make CI work
[target.'cfg(not(target_vendor = "apple"))'.dependencies]
block2 = { path = "../block2", features = ["gnustep-1-7"] }
objc2 = { path = "../objc2", features = ["gnustep-1-7"] }
objc2-foundation = { path = "../../framework-crates/objc2-foundation", features = ["gnustep-1-7"] }

[[bin]]
name = "test-ui"
required-features = ["run"]
Expand Down

0 comments on commit bb6b584

Please sign in to comment.