Skip to content

Commit

Permalink
(WIP) add CI job for meson build
Browse files Browse the repository at this point in the history
WIP because it uses ci-script and epics-base from pending PRs
  • Loading branch information
minijackson committed Mar 10, 2023
1 parent 02aef44 commit 9236bb9
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .ci
52 changes: 52 additions & 0 deletions .github/workflows/ci-scripts-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,3 +237,55 @@ jobs:
with:
name: tapfiles ${{ matrix.name }}
path: '**/O.*/*.tap'

meson:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
# Set environment variables from matrix parameters
env:
CMP: ${{ matrix.cmp }}
BCFG: ${{ matrix.configuration }}
BASE: add-toEpicsArch
BASE_REPOOWNER: minijackson
LIBEVENT_TAG: ${{ matrix.libevent }}
VV: "1"
strategy:
fail-fast: false
matrix:
include:
- name: Native Linux
os: ubuntu-22.04
cmp: gcc
configuration: default

steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: "apt-get install"
run: |
sudo apt-get update
sudo apt-get -y install meson cmake
if: runner.os == 'Linux'
- name: Automatic core dumper analysis
uses: mdavidsaver/ci-core-dumper@master
- name: Prepare and compile dependencies
run: python .ci/cue.py prepare
- name: Build libevent
run: python .ci/cue.py exec python .ci-local/libevent.py
- name: Build Main module
run: |
python .ci/cue.py \
--add-path '{EPICS_BASE}/bin/{EPICS_HOST_ARCH}' \
--add-env 'PKG_CONFIG_PATH={EPICS_BASE}/lib/pkgconfig' \
--add-env 'PKG_CONFIG_PATH={PWD}/bundle/usr/{EPICS_HOST_ARCH}/lib/pkgconfig' \
exec meson setup build --buildtype=release --prefix="${PWD}/output" --libdir lib
ninja -C build -vv install
- name: Host info
run: |
python .ci/cue.py \
--add-env 'LD_LIBRARY_PATH={PWD}/output/lib/{EPICS_HOST_ARCH}' \
--add-env 'LD_LIBRARY_PATH={PWD}/bundle/usr/{EPICS_HOST_ARCH}/lib' \
exec ./output/bin/*/pvxinfo -D
- name: Run main module tests
run: cd build && meson test

0 comments on commit 9236bb9

Please sign in to comment.