Debian Codegraph @

.github/workflows/symbols.yml

raw
1 name: Check for exported private symbols
2
3 on:
4 pull_request:
5 branches:
6 - master
7
8 jobs:
9 build:
10 name: symbols
11 runs-on: ubuntu-24.04
12 env:
13 CI_CONTAINER: libblockdev-ci-symbols
14 steps:
15 - name: Checkout libblockdev repository
16 uses: actions/checkout@v6
17
18 - name: Install podman
19 run: |
20 sudo apt -qq update
21 sudo apt -y -qq install podman
22
23 - name: Build the container
24 run: |
25 podman build --no-cache -t ${{ env.CI_CONTAINER }} -f misc/ci.Dockerfile .
26
27 - name: Start the container
28 run: |
29 podman run -d -t --name ${{ env.CI_CONTAINER }} --privileged --volume "$(pwd):/app" --workdir "/app" ${{ env.CI_CONTAINER }}
30
31 - name: Install test dependencies in the container
32 run: |
33 podman exec -it ${{ env.CI_CONTAINER }} bash -c "ansible-playbook -i "localhost," -c local misc/install-test-dependencies.yml -e 'test_dependencies=false'"
34
35 - name: Run check script in the container
36 run: |
37 podman exec -it ${{ env.CI_CONTAINER }} bash -c "/ci/check_new_symbols -p libblockdev"