-
Notifications
You must be signed in to change notification settings - Fork 451
64 lines (51 loc) · 1.37 KB
/
core.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
name: Core C CI
on:
workflow_dispatch:
pull_request:
push:
jobs:
standard:
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-latest, macos-latest]
name: "💦 ${{ matrix.runs-on }}"
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- name: setup (macos)
if: runner.os == 'macos'
run: |
brew update
brew install cmake
- name: setup (linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update --fix-missing
sudo apt-get install -y --no-install-recommends cmake valgrind time curl
#- name: Setup libfec
# run: git clone https://github.com/jgaeddert/libfec.git && cd libfec && ./configure && make && sudo make install
- name: build
run: |
mkdir build
cd build
cmake ..
make -j2
- name: check
run: |
cd build
./xautotest -v -o autotest.json
- name: install
run: |
cd build
sudo make install
- name: check installation (macos)
if: runner.os == 'macos'
run: |
gcc -Wall -O2 -rpath /usr/local/lib -o liquid_linker_test scripts/liquid_linker_test.c -lm -lc -lliquid
./liquid_linker_test
- name: check installation (linux)
if: runner.os == 'Linux'
run: |
sudo ldconfig
make -f scripts/liquid_linker_test.mk