-
-
Notifications
You must be signed in to change notification settings - Fork 78
58 lines (43 loc) · 1.32 KB
/
macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: macOS
on:
push:
branches: [main]
pull_request:
env:
CABIN_TERM_COLOR: always
permissions:
contents: read
jobs:
build-and-test:
name: "build & test"
runs-on: macos-${{ matrix.osver }}
strategy:
fail-fast: false
matrix:
osver: [13, 14, 15]
steps:
- uses: actions/checkout@v4
- name: Setup dependencies
uses: ./.github/actions/setup-macos-deps
- name: Print versions
run: make versions
- name: First Generation Build
run: make -j4
- name: Test the first generation
run: make test -j4
- name: Second Generation Build
run: ./build/cabin build --verbose
- name: Test the second generation
run: ./cabin-out/debug/cabin test --verbose
- name: Third Generation Build & Test
run: ./cabin-out/debug/cabin --verbose run --release test --verbose
- name: Print Cabin version
run: ./cabin-out/debug/cabin version --verbose
- name: Create a new project with the third generation
run: ./cabin-out/debug/cabin new hello_world
- name: Run the new project
run: ../cabin-out/debug/cabin --verbose run
working-directory: hello_world
# - name: Test Cabin
# run: ctest --output-on-failure --verbose
# working-directory: build