runner
This commit is contained in:
42
.gitea/workflows/ci.yml
Normal file
42
.gitea/workflows/ci.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
name: CI
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build-linux:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y meson ninja-build gcc g++ pkg-config
|
||||
- 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
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y meson ninja-build mingw-w64 pkg-config
|
||||
- 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
12
cross/mingw64.ini
Normal 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'
|
||||
@@ -159,9 +159,12 @@ qbe_lib = static_library('qbe',
|
||||
if host_machine.system() == 'windows'
|
||||
exe_ext = '.exe'
|
||||
link += '-Wl,--export-all-symbols'
|
||||
else
|
||||
elif host_machine.system() == 'darwin'
|
||||
exe_ext = ''
|
||||
link += '-Wl,-export_dynamic'
|
||||
else
|
||||
exe_ext = ''
|
||||
link += '-Wl,--export-dynamic'
|
||||
endif
|
||||
|
||||
cell_so = shared_library(
|
||||
|
||||
Reference in New Issue
Block a user