-
Notifications
You must be signed in to change notification settings - Fork 9
76 lines (74 loc) · 2.08 KB
/
linux.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: linux
on:
pull_request:
branches:
- develop
- master
push:
branches:
- develop
- master
jobs:
build:
env:
VCPKG_BINARY_SOURCES: 'clear;nuget,GitHub,readwrite'
strategy:
fail-fast: false
matrix:
os:
- ubuntu-22.04
cxx:
- g++-11
- clang++-14
include:
- cxx: g++-11
cc: gcc-11
- cxx: clang++-14
cc: clang-14
runs-on: ${{matrix.os}}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install sphinx myst-parser sphinx-markdown-tables sphinx_rtd_theme numpy
- name: Add C++ Problem Matcher
uses: ammaraskar/[email protected]
- name: Install Dependencies - 2
run: |
sudo apt-get -y install ninja-build
- name: Install Sphinx
run: |
sudo pip3 install sphinx myst-parser sphinx-markdown-tables sphinx_rtd_theme numpy
- name: Setup NuGet Credentials
shell: bash
run: |
mono `vcpkg fetch nuget | tail -n 1` \
sources add \
-source "https://nuget.pkg.github.com/BlueQuartzSoftware/index.json" \
-storepasswordincleartext \
-name "GitHub" \
-username "BlueQuartzSoftware" \
-password "${{secrets.GITHUB_TOKEN}}"
mono `vcpkg fetch nuget | tail -n 1` \
setapikey "${{secrets.GITHUB_TOKEN}}" \
-source "https://nuget.pkg.github.com/BlueQuartzSoftware/index.json"
- name: Configure
env:
CC: ${{matrix.cc}}
CXX: ${{matrix.cxx}}
run: |
cmake --preset ci-linux-x64 ${{github.workspace}}
- name: Build
run: |
cmake --build --preset ci-linux-x64
- name: Test
run: |
ctest --preset ci-linux-x64