mirror of
https://github.com/tailix/libkernaux.git
synced 2024-11-13 11:04:27 -05:00
87 lines
2.5 KiB
YAML
87 lines
2.5 KiB
YAML
# We use Cirrus CI to test on FreeBSD.
|
|
# For GNU/Linux CI see GitHub Actions.
|
|
|
|
freebsd_instance:
|
|
image_family: freebsd-13-1
|
|
|
|
main_freebsd_task:
|
|
name: Main (FreeBSD)
|
|
only_if: $CIRRUS_BRANCH == 'master' || $CIRRUS_BASE_BRANCH == 'master'
|
|
dependencies_script:
|
|
- pkg install --yes autoconf automake libtool
|
|
main_build_script:
|
|
- ./autogen.sh
|
|
- ./configure --enable-debug --enable-checks --enable-checks-pthreads CFLAGS='-O3'
|
|
- make
|
|
- sudo make install
|
|
main_test_script:
|
|
- make check
|
|
|
|
mruby_freebsd_task:
|
|
name: mruby (FreeBSD)
|
|
only_if: $CIRRUS_BRANCH == 'master' || $CIRRUS_BASE_BRANCH == 'master'
|
|
env:
|
|
CPATH: '/usr/local/include'
|
|
LIBRARY_PATH: '/usr/local/lib'
|
|
MRUBY_YAML_USE_SYSTEM_LIBRARY: x
|
|
dependencies_script:
|
|
- pkg install --yes autoconf automake git libtool rubygem-rake wget
|
|
dependencies_mruby_script:
|
|
- wget https://github.com/mruby/mruby/archive/3.1.0.zip -O mruby-3.1.0.zip
|
|
- unzip mruby-3.1.0.zip
|
|
main_build_script:
|
|
- ./autogen.sh
|
|
- ./configure --enable-debug CFLAGS='-O3'
|
|
- make
|
|
- sudo make install
|
|
mruby_test_script:
|
|
- cd mruby-3.1.0
|
|
- MRUBY_CONFIG=../bindings/mruby/build_config.rb rake test
|
|
|
|
ruby_freebsd_task:
|
|
name: Ruby (FreeBSD)
|
|
only_if: $CIRRUS_BRANCH == 'master' || $CIRRUS_BASE_BRANCH == 'master'
|
|
env:
|
|
CPATH: '/usr/local/include'
|
|
LIBRARY_PATH: '/usr/local/lib'
|
|
dependencies_script:
|
|
- pkg install --yes autoconf automake git libtool wget
|
|
dependencies_ruby_script:
|
|
- wget https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.3.tar.gz
|
|
- tar -xzf ruby-3.0.3.tar.gz
|
|
- cd ruby-3.0.3
|
|
- ./configure --disable-install-doc
|
|
- make
|
|
- sudo make install
|
|
main_build_script:
|
|
- ./autogen.sh
|
|
- ./configure --enable-debug CFLAGS='-O3'
|
|
- make
|
|
- sudo make install
|
|
ruby_build_script:
|
|
- cd bindings/ruby
|
|
- ./bin/setup
|
|
- bundle exec rake compile
|
|
ruby_test_script:
|
|
- cd bindings/ruby
|
|
- bundle exec rake
|
|
|
|
rust_freebsd_task:
|
|
name: Rust (FreeBSD)
|
|
only_if: $CIRRUS_BRANCH == 'master' || $CIRRUS_BASE_BRANCH == 'master'
|
|
env:
|
|
RUSTFLAGS: '-L /usr/local/lib'
|
|
dependencies_script:
|
|
- pkg install --yes autoconf automake libtool
|
|
dependencies_rust_script:
|
|
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
|
main_build_script:
|
|
- ./autogen.sh
|
|
- ./configure --enable-debug CFLAGS='-O3'
|
|
- make
|
|
- sudo make install
|
|
rust_test_script:
|
|
- cd bindings/rust
|
|
- ~/.cargo/bin/cargo test
|
|
- ~/.cargo/bin/cargo clippy
|
|
- ~/.cargo/bin/cargo fmt --check
|