forked from opencor/webapp
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (60 loc) · 1.8 KB
/
ci.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
59
60
61
62
name: CI
on:
pull_request:
branches: [main]
workflow_dispatch:
jobs:
ci:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Windows (Intel)
os: windows-2022
#---OPENCOR--- The below is to be enabled once GitHub Actions has Windows ARM runners.
# - name: Windows (ARM)
# os: windows-2019
- name: Linux (Intel)
os: ubuntu-22.04
- name: Linux (ARM)
os: ubuntu-22.04-arm
- name: macOS (Intel)
os: macos-13
- name: macOS (ARM)
os: macos-14
- name: Code formatting
os: ubuntu-22.04
- name: Linting
os: ubuntu-22.04
steps:
- name: Check out OpenCOR
uses: actions/checkout@v4
- name: Install CMake and Ninja
uses: lukka/get-cmake@latest
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install pnpm
run: npm install -g pnpm
- name: OpenCOR dependencies
run: pnpm install
- name: Build libOpenCOR
if: ${{ (matrix.name != 'Code formatting') && (matrix.name != 'Linting') }}
run: pnpm libopencor
- name: Build OpenCOR
if: ${{ (matrix.name != 'Code formatting') && (matrix.name != 'Linting') }}
run: pnpm build
- name: Build OpenCOR's Web app
if: ${{ (matrix.name != 'Code formatting') && (matrix.name != 'Linting') }}
run: pnpm build:web
- name: Code formatting
if: matrix.name == 'Code formatting'
run: pnpm format:check
- name: Linting
if: matrix.name == 'Linting'
run: pnpm lint
- name: Clean OpenCOR
run: pnpm clean