build(deps): bump github/codeql-action from 3.25.11 to 3.26.11 #338
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: GitHub CI | |
on: | |
pull_request: | |
branches: [ master ] | |
paths: | |
- 'meson.build' | |
- '.github/workflows/**' | |
- '**.c' | |
push: | |
branches: [ master ] | |
paths: | |
- 'meson.build' | |
- '.github/workflows/**' | |
- '**.c' | |
permissions: # added using https://github.com/step-security/secure-workflows | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
env: | |
- { CC: "gcc" } | |
- { CC: "clang" } | |
env: ${{ matrix.env }} | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 | |
with: | |
egress-policy: block | |
allowed-endpoints: > | |
archive.ubuntu.com:80 | |
azure.archive.ubuntu.com:80 | |
github.com:443 | |
security.ubuntu.com:80 | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Install packages | |
run: sudo apt-get install build-essential gcc clang meson libsystemd-dev libselinux1-dev | |
- name: Setup | |
run: meson setup builddir/ | |
- name: Compile with (${{ env.CC }}) | |
run: meson compile -C builddir/ -v | |
- name: Test | |
run: meson test -C builddir/ -v |