-
Notifications
You must be signed in to change notification settings - Fork 28
32 lines (29 loc) · 859 Bytes
/
cpp.yml
File metadata and controls
32 lines (29 loc) · 859 Bytes
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
name: C++
on: [push, pull_request]
defaults:
run:
shell: bash # For -o pipefail
jobs:
build:
if: >-
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: sudo apt-get install libisal-dev
- name: Install macOS dependencies
if: runner.os == 'macOS'
run: brew install isa-l
- name: Build
run: |
cmake -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build build -j 3
cmake --install build
- name: Run
run: build/test-strobealign --no-intro