Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/symbols.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Check for exported private symbols

on:
pull_request:
branches:
- master

jobs:
build:
name: symbols
runs-on: ubuntu-24.04
env:
CI_CONTAINER: libblockdev-ci-symbols
steps:
- name: Checkout libblockdev repository
uses: actions/checkout@v5

- name: Install podman
run: |
sudo apt -qq update
sudo apt -y -qq install podman

- name: Build the container
run: |
podman build --no-cache -t ${{ env.CI_CONTAINER }} -f misc/ci.Dockerfile .

- name: Start the container
run: |
podman run -d -t --name ${{ env.CI_CONTAINER }} --privileged --volume "$(pwd):/app" --workdir "/app" ${{ env.CI_CONTAINER }}

- name: Install test dependencies in the container
run: |
podman exec -it ${{ env.CI_CONTAINER }} bash -c "ansible-playbook -i "localhost," -c local misc/install-test-dependencies.yml -e 'test_dependencies=false'"

- name: Run check script in the container
run: |
podman exec -it ${{ env.CI_CONTAINER }} bash -c "/ci/check_new_symbols -p libblockdev"