generated from learning-process/parallel_programming_course
-
Notifications
You must be signed in to change notification settings - Fork 6
74 lines (72 loc) · 1.69 KB
/
main.yml
File metadata and controls
74 lines (72 loc) · 1.69 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
name: Build application
on:
push:
pull_request:
merge_group:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
ubuntu-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup environment
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install ninja-build
sudo apt-get install texlive*
- name: Build
run: |
mkdir build
cmake -G Ninja -S . -B build
cmake --build build
- uses: actions/upload-artifact@v4
with:
name: ubuntu-artifacts
path: build/bin/
windows-build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup environment
run: |
choco install miktex.install
shell: pwsh
- name: Build
run: |
Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
refreshenv
mkdir build
cmake -S . -B build
cmake --build build
shell: pwsh
- uses: actions/upload-artifact@v4
with:
name: windows-artifacts
path: build/bin/
macos-build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup environment
run: |
brew install --cask mactex
brew install ninja
- name: Build
run: |
eval "$(/usr/libexec/path_helper)"
mkdir build
cmake -G Ninja -S . -B build
cmake --build build
- uses: actions/upload-artifact@v4
with:
name: macos-artifacts
path: build/bin/