2 Commits

Author SHA1 Message Date
John Alanbrook
e45695399d empty
Some checks failed
CI / build-linux (push) Failing after 40s
CI / build-windows (push) Failing after 36s
2026-02-25 22:50:30 -06:00
John Alanbrook
52b55cb1ad runner 2026-02-25 21:31:00 -06:00
3 changed files with 54 additions and 1 deletions

38
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,38 @@
name: CI
on: [push]
jobs:
build-linux:
runs-on: ubuntu-latest
container:
image: gitea.pockle.world/john/cell-ci:latest
steps:
- uses: actions/checkout@v4
- name: Build
run: |
meson setup build -Dbuildtype=release
meson compile -C build
- name: Prepare tests
run: |
cp build/libcell_runtime.so .
cp build/cell .
mkdir -p ~/.cell/packages
ln -s "$PWD" ~/.cell/packages/core
- name: VM tests
run: ./cell --dev vm_suite
- name: Language tests
run: ./cell --dev test suite
- name: Fuzz
run: ./cell --dev fuzz
build-windows:
runs-on: ubuntu-latest
container:
image: gitea.pockle.world/john/cell-ci:latest
steps:
- uses: actions/checkout@v4
- name: Build
run: |
meson setup build_win --cross-file cross/mingw64.ini -Dbuildtype=release
meson compile -C build_win

12
cross/mingw64.ini Normal file
View File

@@ -0,0 +1,12 @@
[binaries]
c = 'x86_64-w64-mingw32-gcc'
cpp = 'x86_64-w64-mingw32-g++'
ar = 'x86_64-w64-mingw32-ar'
strip = 'x86_64-w64-mingw32-strip'
windres = 'x86_64-w64-mingw32-windres'
[host_machine]
system = 'windows'
cpu_family = 'x86_64'
cpu = 'x86_64'
endian = 'little'

View File

@@ -159,9 +159,12 @@ qbe_lib = static_library('qbe',
if host_machine.system() == 'windows' if host_machine.system() == 'windows'
exe_ext = '.exe' exe_ext = '.exe'
link += '-Wl,--export-all-symbols' link += '-Wl,--export-all-symbols'
else elif host_machine.system() == 'darwin'
exe_ext = '' exe_ext = ''
link += '-Wl,-export_dynamic' link += '-Wl,-export_dynamic'
else
exe_ext = ''
link += '-Wl,--export-dynamic'
endif endif
cell_so = shared_library( cell_so = shared_library(