Skip to content

Commit

Permalink
ci: add tests for meson build (debian package) using tcc shlib
Browse files Browse the repository at this point in the history
when the libtcc and tcc packages are used to link system provided
tinycc then some things change and this checks that nothing is
broken. ideally this is good for debian where we plan to use system
provided tcc to avoid duplicate efforts in maintenance, we'll see how
it unfolds.
  • Loading branch information
jaromil committed Jan 12, 2025
1 parent 7affe2b commit d3e47f9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,23 @@ jobs:
run: |
make check-ci
debian-test:
name: 🐧 Debian (tcc shlib) test
needs: [reuse, c-lint]
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- name: Install deps
run: |
sudo apt-get -qy update
sudo apt-get -qy install tcc libtcc-dev meson ninja-build
- name: Build with tcc as shared libsLinux
run: |
make meson
- name: Run tests
run: |
make check-ci
win-native-test:
name: 🪟 Windows native test
needs: [reuse, c-lint]
Expand Down
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ apple-osx: ## 🍎 Build cjit.command for Apple/OSX using clang static
@rm -f .build_done*
date | tee .build_done_osx

meson-release:
meson:
rm -rf meson
meson setup meson build \
--buildtype release --backend ninja
Expand Down
2 changes: 1 addition & 1 deletion build/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
dh $@

override_dh_auto_build:
dh_auto_build -- meson-release
dh_auto_build -- meson

override_dh_auto_install:
dh_auto_install --destdir=debian/tmp

0 comments on commit d3e47f9

Please sign in to comment.