-
Notifications
You must be signed in to change notification settings - Fork 68
48 lines (45 loc) · 1.5 KB
/
build.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
name: build-dorado
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: [ubuntu-20.04, windows-2019-large]
include:
- os: windows-2019-large
arch: "-A x64"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Clean up diskspace
if: matrix.os == 'ubuntu-20.04'
run: sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/share/boost "$AGENT_TOOLSDIRECTORY"
- name: Set up cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.25.x'
- uses: Jimver/[email protected]
id: cuda-toolkit
with:
cuda: '11.8.0'
- name: Install dependencies from apt
if: matrix.os == 'ubuntu-20.04'
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends libhdf5-dev libssl-dev libzstd-dev autoconf
- name: Set up Windows path
uses: myci-actions/export-env-var-powershell@1
if: matrix.os == 'windows-2019-large'
with:
name: PATH
value: C:\a\dorado\dorado\dist\bin;$env:PATH
- name: Build dorado
run: |
cmake -S . -B cmake-build ${{ matrix.arch }}
cmake --build cmake-build --config Release -j 8
- name: Cleanup torch
uses: JesseTG/[email protected]
with:
path: C:\a\dorado\dorado\3rdparty
- name: Test dorado
run: |
cmake --build cmake-build --config Release --target install -j 8
ctest -C Release --test-dir cmake-build --output-on-failure --verbose