Fix meson-build global_arguments #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Subproject build | |
on: | |
push: | |
paths: | |
- '**.c' | |
- '**.h' | |
- '**.in' | |
- '**.inc' | |
- '**/meson.build' | |
- 'subprojects/**' | |
- 'test/**' | |
- '.github/workflows/subproject.yml' | |
- '.github/subproject_test/**' | |
branches: | |
- 'dev' | |
- 'stable' | |
- 'container-*' | |
pull_request: | |
paths: | |
- '**.c' | |
- '**.h' | |
- '**.in' | |
- '**.inc' | |
- '**/meson.build' | |
- 'subprojects/**' | |
- '.github/workflows/subproject.yml' | |
- '.github/subproject_test/**' | |
branches: | |
- 'dev' | |
- 'stable' | |
- 'release-*' | |
# Automatically cancel any previous workflow on new push. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: meson-subproject | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt-get --assume-yes update | |
sudo apt-get --assume-yes install python3-wheel python3-setuptools pkgconf libcurl4-openssl-dev libpkgconf-dev libarchive-dev | |
sudo python3 -m pip install ninja meson | |
- name: Replace branch in wrap-file | |
run: | | |
# FIXME: find a better solution! | |
sed -i 's@\${REPOSITORY}@file:///home/runner/work/rizin/rizin@' .github/subproject_test/subprojects/rizin.wrap | |
#sed -i 's@\${REPOSITORY}@https://github.com/'"${{ github.repository }}"'@' .github/subproject_test/subprojects/rizin.wrap | |
sed -i 's@\${BRANCH}@'"${{ github.ref }}"'@' .github/subproject_test/subprojects/rizin.wrap | |
- name: Meson setup | |
run: meson setup build .github/subproject_test/ | |
- name: Checkout our Testsuite Binaries | |
uses: actions/checkout@v4 | |
with: | |
repository: rizinorg/rizin-testbins | |
path: .github/subproject_teyt/subprojects/rizin/test/bins | |
- name: Ninja compile and install | |
run: ninja -C build && sudo meson -C build install | |
- name: Run unit tests | |
run: meson -C build test | |
- name: Execute test-binary | |
run: | | |
subproj_tester |