Skip to content

Commit ea3b385

Browse files
committed
Add workflow to test on ubuntu-22.04, rename swift-linux.yml -> ubuntu-latest
1 parent 92ddd6b commit ea3b385

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build Linux
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- 'gh-pages'
7+
pull_request:
8+
branches-ignore:
9+
- 'gh-pages'
10+
11+
jobs:
12+
build-linux:
13+
runs-on: ubuntu-22.04
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Install Dependencies
18+
run: |
19+
sudo apt update && \
20+
sudo apt install -y libgtk-4-dev libgtk-3-dev clang
21+
- name: Build
22+
run: |
23+
swift build --target GtkCodeGen && \
24+
cd Examples && \
25+
swift build --target SwiftCrossUI && \
26+
swift build --target GtkBackend && \
27+
swift build --target Gtk3Backend && \
28+
swift build --target CounterExample && \
29+
swift build --target ControlsExample && \
30+
swift build --target RandomNumberGeneratorExample && \
31+
swift build --target WindowingExample && \
32+
swift build --target GreetingGeneratorExample && \
33+
swift build --target NavigationExample && \
34+
swift build --target SplitExample && \
35+
swift build --target StressTestExample && \
36+
swift build --target SpreadsheetExample && \
37+
swift build --target NotesExample && \
38+
swift build --target GtkExample
39+
- name: Test
40+
run: swift test --test-product swift-cross-uiPackageTests
File renamed without changes.

0 commit comments

Comments
 (0)