Skip to content

Commit 8b46c24

Browse files
committed
BUG: Update CI configuration for build targets
Update and fix versions of the actions used and runners. Replace build-complete with build-meca and other pixi tasks. The MECA build target now targets the reproducible MECA zip with built PDFs, JATS XML, source code and data.
1 parent 1294dd2 commit 8b46c24

File tree

4 files changed

+59
-51
lines changed

4 files changed

+59
-51
lines changed

.github/workflows/build-myst.yml

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build MyST Document
1+
name: Build MyST Documents
22

33
on:
44
push:
@@ -9,29 +9,29 @@ on:
99

1010
jobs:
1111
build-myst:
12-
runs-on: ubuntu-latest
13-
12+
runs-on: ubuntu-24.04
13+
1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@v4
17-
16+
uses: actions/checkout@v5
17+
1818
- name: Setup Pixi
19-
uses: prefix-dev/setup-pixi@v0.4.1
19+
uses: prefix-dev/setup-pixi@v0.9.0
2020
with:
2121
pixi-version: latest
22-
22+
2323
- name: Install dependencies
2424
run: pixi install
25-
25+
2626
- name: Build HTML
2727
run: pixi run build-html
28-
28+
2929
- name: Build PDF
3030
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+
3535
- name: Upload build artifacts
3636
uses: actions/upload-artifact@v4
3737
with:
@@ -42,26 +42,26 @@ jobs:
4242
retention-days: 30
4343

4444
build-source:
45-
runs-on: ubuntu-latest
46-
45+
runs-on: ubuntu-24.04
46+
4747
steps:
4848
- name: Checkout repository
49-
uses: actions/checkout@v4
50-
49+
uses: actions/checkout@v5
50+
5151
- name: Setup Pixi
52-
uses: prefix-dev/setup-pixi@v0.4.1
52+
uses: prefix-dev/setup-pixi@v0.9.0
5353
with:
5454
pixi-version: latest
55-
55+
5656
- name: Install dependencies
5757
run: pixi install
58-
58+
5959
- name: Build source code
6060
run: pixi run build-src
61-
61+
6262
- name: Run tests
6363
run: pixi run test-src
64-
64+
6565
- name: Upload test results
6666
uses: actions/upload-artifact@v4
6767
if: always()
@@ -75,26 +75,25 @@ jobs:
7575
runs-on: ubuntu-latest
7676
needs: [build-myst, build-source]
7777
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/myst'
78-
78+
7979
steps:
8080
- name: Checkout repository
81-
uses: actions/checkout@v4
82-
81+
uses: actions/checkout@v5
82+
8383
- name: Setup Pixi
84-
uses: prefix-dev/setup-pixi@v0.4.1
84+
uses: prefix-dev/setup-pixi@v0.9.0
8585
with:
8686
pixi-version: latest
87-
87+
8888
- name: Install dependencies
8989
run: pixi install
90-
90+
9191
- name: Build for deployment
92-
run: pixi run build-complete
93-
92+
run: pixi run build-html
93+
9494
- name: Deploy to GitHub Pages
9595
uses: peaceiris/actions-gh-pages@v3
9696
if: github.ref == 'refs/heads/main'
9797
with:
9898
github_token: ${{ secrets.GITHUB_TOKEN }}
9999
publish_dir: ./_build/html
100-
cname: insight-journal-template.readthedocs.io
Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,31 @@
1-
name: Build LaTeX document
1+
name: Build LaTeX Document
22

33
on: [push,pull_request]
44

55
jobs:
6-
build_latex:
7-
runs-on: ubuntu-latest
6+
build-latex:
7+
runs-on: ubuntu-24.04
88
steps:
99
- name: Set up Git repository
10-
uses: actions/checkout@v2
10+
uses: actions/checkout@v5
11+
1112
- name: Set up LaTeX packages
1213
run: |
1314
sudo apt-get update
1415
sudo apt-get install texlive texlive-publishers texlive-science latexmk
15-
- name: Compile LaTeX document
16-
run: |
17-
cd Document/LaTeX
18-
make
19-
- name: Check pdf files
20-
run: |
21-
set -e
22-
file Document/LaTeX/ArticleExample.pdf | grep -q ' PDF '
16+
17+
- name: Setup Pixi
18+
uses: prefix-dev/[email protected]
19+
with:
20+
pixi-version: latest
21+
22+
- name: Build PDF
23+
run: pixi run build-arxiv
24+
25+
- name: Upload build artifacts
26+
uses: actions/upload-artifact@v4
27+
with:
28+
name: arxiv-pdf-outputs
29+
path: |
30+
exports/
31+
retention-days: 30

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ pixi run -e cxx <task-name>
123123
| `configure-itk` | Configure ITK build with CMake |
124124
| `build-itk` | Compile ITK libraries |
125125
| `configure-project` | Configure project against built ITK |
126-
| `build-project` | Compile project executables |
127-
| `test-project` | Run project test suite |
126+
| `build-src` | Compile project executables |
127+
| `test-src` | Run project test suite |
128128

129129
### Example Workflows
130130

@@ -145,10 +145,10 @@ pixi run build
145145
**Work with C++ code:**
146146
```bash
147147
# Build ITK and project code
148-
pixi run -e cxx build-project
148+
pixi run -e cxx build-src
149149

150150
# Run tests
151-
pixi run -e cxx test-project
151+
pixi run -e cxx test-src
152152
```
153153

154154
**Create journal submission:**

pixi.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ dev = { depends-on = ["serve"] }
6262
clean = "myst clean"
6363

6464
# Aggregate, standard build task
65-
build = { depends-on = ["build-manuscript", "test-project"] }
65+
build = { depends-on = ["build-manuscript", "test-src"] }
6666

6767
[feature.cxx.dependencies]
6868
cmake = "*"
@@ -98,15 +98,15 @@ depends-on = ["build-itk"]
9898
outputs = ["build/project-build/CMakeFiles/**"]
9999
description = "Configure the project"
100100

101-
[feature.cxx.tasks.build-project]
101+
[feature.cxx.tasks.build-src]
102102
cmd = "cmake --build build/project-build"
103103
depends-on = ["configure-project"]
104104
outputs = ["build/project-build/**"]
105105
description = "Build the project"
106106

107-
[feature.cxx.tasks.test-project]
107+
[feature.cxx.tasks.test-src]
108108
cmd = "cd build/project-build && ctest"
109-
depends-on = ["build-project"]
109+
depends-on = ["build-src"]
110110
description = "Test the project"
111111

112112
[environments]

0 commit comments

Comments
 (0)