Skip to content

Commit c8ab078

Browse files
committed
fix CI by also building and installing C Wrapper
1 parent cb573e5 commit c8ab078

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ jobs:
4646
path: ./oopetris
4747
submodules: false
4848

49+
- uses: actions/checkout@v4
50+
name: Checkout C Wrapper
51+
with:
52+
fetch-depth: "0"
53+
repository: Totto16/oopetris_wrapper_c
54+
ref: main
55+
path: ./oopetris_c_wrapper
56+
submodules: false
4957

5058
- name: Setup MSVC (Windows)
5159
if: matrix.config.os == 'windows'
@@ -119,6 +127,25 @@ jobs:
119127
cd oopetris
120128
sudo meson install -C build
121129
130+
- name: Build C Wrapper
131+
run: |
132+
cd oopetris_c_wrapper
133+
meson setup -Dtests=false -Dexample=false build -Dbuildtype=release -Ddefault_library=static
134+
meson compile -C build
135+
136+
137+
- name: Install C Wrapper
138+
if: matrix.config.os != 'ubuntu'
139+
run: |
140+
cd oopetris_c_wrapper
141+
meson install -C build
142+
143+
- name: Build and install Libs (Linux)
144+
if: matrix.config.os == 'ubuntu'
145+
run: |
146+
cd oopetris_c_wrapper
147+
sudo meson install -C build
148+
122149
- uses: haskell-actions/setup@v2
123150
with:
124151
ghc-version: '9.6.5'

0 commit comments

Comments
 (0)