10
10
jobs :
11
11
build-myst :
12
12
runs-on : ubuntu-latest
13
-
13
+
14
14
steps :
15
15
- name : Checkout repository
16
16
uses : actions/checkout@v4
17
-
17
+
18
18
- name : Setup Pixi
19
19
uses :
prefix-dev/[email protected]
20
20
with :
21
21
pixi-version : latest
22
-
22
+
23
23
- name : Install dependencies
24
24
run : pixi install
25
-
25
+
26
26
- name : Build HTML
27
27
run : pixi run build-html
28
-
28
+
29
29
- name : Build PDF
30
30
run : pixi run build-pdf
31
-
32
- - name : Build all formats
33
- run : pixi run build-complete
34
-
31
+
32
+ - name : Build MECA
33
+ run : pixi run build-meca
34
+
35
35
- name : Upload build artifacts
36
36
uses : actions/upload-artifact@v4
37
37
with :
@@ -43,25 +43,25 @@ jobs:
43
43
44
44
build-source :
45
45
runs-on : ubuntu-latest
46
-
46
+
47
47
steps :
48
48
- name : Checkout repository
49
49
uses : actions/checkout@v4
50
-
50
+
51
51
- name : Setup Pixi
52
52
uses :
prefix-dev/[email protected]
53
53
with :
54
54
pixi-version : latest
55
-
55
+
56
56
- name : Install dependencies
57
57
run : pixi install
58
-
58
+
59
59
- name : Build source code
60
60
run : pixi run build-src
61
-
61
+
62
62
- name : Run tests
63
63
run : pixi run test-src
64
-
64
+
65
65
- name : Upload test results
66
66
uses : actions/upload-artifact@v4
67
67
if : always()
@@ -75,22 +75,22 @@ jobs:
75
75
runs-on : ubuntu-latest
76
76
needs : [build-myst, build-source]
77
77
if : github.ref == 'refs/heads/main' || github.ref == 'refs/heads/myst'
78
-
78
+
79
79
steps :
80
80
- name : Checkout repository
81
81
uses : actions/checkout@v4
82
-
82
+
83
83
- name : Setup Pixi
84
84
uses :
prefix-dev/[email protected]
85
85
with :
86
86
pixi-version : latest
87
-
87
+
88
88
- name : Install dependencies
89
89
run : pixi install
90
-
90
+
91
91
- name : Build for deployment
92
92
run : pixi run build-complete
93
-
93
+
94
94
- name : Deploy to GitHub Pages
95
95
uses : peaceiris/actions-gh-pages@v3
96
96
if : github.ref == 'refs/heads/main'
0 commit comments