diff options
author | Dmitry V. Levin <ldv@strace.io> | 2024-10-14 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2024-10-23 08:00:00 +0000 |
commit | 4aa31119988c4dcceaa9edce74121d2c057ad1f8 (patch) | |
tree | 69c7fabd96ce8ced1bb759ed20016bab17c536ea | |
parent | cd1533a5cc0b3f083054f6821ac6dec0dbf385a7 (diff) | |
download | pam-4aa31119988c4dcceaa9edce74121d2c057ad1f8.tar.gz pam-4aa31119988c4dcceaa9edce74121d2c057ad1f8.tar.bz2 pam-4aa31119988c4dcceaa9edce74121d2c057ad1f8.zip |
ci: drop autotools support
-rw-r--r-- | .github/workflows/ci.yml | 456 | ||||
-rwxr-xr-x | ci/build.sh | 53 | ||||
-rwxr-xr-x | ci/install-dependencies.sh | 11 |
3 files changed, 154 insertions, 366 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f70fd00..c28e98fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,10 +13,9 @@ jobs: - name: check run: git diff-index --check --cached 4b825dc642cb6eb9a060e54bf8d69288fbee4904 - meson-gcc14-x86_64-vendordir: + gcc14-x86_64-vendordir: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-14 TARGET: x86_64 VENDORDIR: ${prefix}/share/etc @@ -27,12 +26,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc14-x86_64-openssl: + gcc14-x86_64-openssl: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-14 TARGET: x86_64 USE_OPENSSL: yes @@ -43,12 +41,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc14-x86_64-sanitizers: + gcc14-x86_64-sanitizers: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-14 CFLAGS: '-O1 -g -fsanitize=address -fsanitize-address-use-after-scope -fno-omit-frame-pointer -fsanitize=undefined -Wno-error=inline -Wno-error=format-overflow' LDFLAGS: '-fsanitize=address -fsanitize-address-use-after-scope -fno-omit-frame-pointer -fsanitize=undefined' @@ -62,12 +59,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc14-x86_64: + gcc14-x86_64: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-14 TARGET: x86_64 steps: @@ -77,12 +73,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc14-x86_64-debug: + gcc14-x86_64-debug: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-14 TARGET: x86_64 ENABLE_DEBUG: yes @@ -93,12 +88,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc13-x86_64-vendordir: + gcc13-x86_64-vendordir: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-13 TARGET: x86_64 VENDORDIR: ${prefix}/share/etc @@ -109,12 +103,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc13-x86_64-openssl: + gcc13-x86_64-openssl: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-13 TARGET: x86_64 USE_OPENSSL: yes @@ -125,12 +118,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc13-x86_64-sanitizers: + gcc13-x86_64-sanitizers: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-13 CFLAGS: '-O1 -g -fsanitize=address -fsanitize-address-use-after-scope -fno-omit-frame-pointer -fsanitize=undefined -Wno-error=inline -Wno-error=format-overflow' LDFLAGS: '-fsanitize=address -fsanitize-address-use-after-scope -fno-omit-frame-pointer -fsanitize=undefined' @@ -144,12 +136,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc13-x86_64: + gcc13-x86_64: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-13 TARGET: x86_64 steps: @@ -159,12 +150,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc13-x86_64-debug: + gcc13-x86_64-debug: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-13 TARGET: x86_64 ENABLE_DEBUG: yes @@ -175,12 +165,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc12-x86_64-vendordir: + gcc12-x86_64-vendordir: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-12 TARGET: x86_64 VENDORDIR: ${prefix}/share/etc @@ -191,12 +180,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc12-x86_64-openssl: + gcc12-x86_64-openssl: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-12 TARGET: x86_64 USE_OPENSSL: yes @@ -207,12 +195,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc12-x86_64-sanitizers: + gcc12-x86_64-sanitizers: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-12 CFLAGS: '-O1 -g -fsanitize=address -fsanitize-address-use-after-scope -fno-omit-frame-pointer -fsanitize=undefined -Wno-error=inline -Wno-error=format-overflow' LDFLAGS: '-fsanitize=address -fsanitize-address-use-after-scope -fno-omit-frame-pointer -fsanitize=undefined' @@ -226,12 +213,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc12-x86_64: + gcc12-x86_64: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-12 TARGET: x86_64 steps: @@ -241,12 +227,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc12-x86_64-debug: + gcc12-x86_64-debug: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-12 TARGET: x86_64 ENABLE_DEBUG: yes @@ -257,12 +242,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc11-x86_64-vendordir: + gcc11-x86_64-vendordir: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-11 TARGET: x86_64 VENDORDIR: ${prefix}/share/etc @@ -273,12 +257,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc11-x86_64-openssl: + gcc11-x86_64-openssl: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-11 TARGET: x86_64 USE_OPENSSL: yes @@ -289,12 +272,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc11-x86_64-sanitizers: + gcc11-x86_64-sanitizers: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-11 CFLAGS: '-O1 -g -fsanitize=address -fsanitize-address-use-after-scope -fno-omit-frame-pointer -fsanitize=undefined -Wno-error=inline -Wno-error=format-overflow' LDFLAGS: '-fsanitize=address -fsanitize-address-use-after-scope -fno-omit-frame-pointer -fsanitize=undefined' @@ -308,12 +290,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc11-x86_64: + gcc11-x86_64: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-11 TARGET: x86_64 steps: @@ -323,12 +304,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc11-x86_64-debug: + gcc11-x86_64-debug: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-11 TARGET: x86_64 ENABLE_DEBUG: yes @@ -339,12 +319,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc10-x86_64-vendordir: + gcc10-x86_64-vendordir: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-10 TARGET: x86_64 VENDORDIR: ${prefix}/share/etc @@ -355,12 +334,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc10-x86_64-openssl: + gcc10-x86_64-openssl: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-10 TARGET: x86_64 USE_OPENSSL: yes @@ -371,12 +349,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc10-x86_64-sanitizers: + gcc10-x86_64-sanitizers: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-10 CFLAGS: '-O1 -g -fsanitize=address -fsanitize-address-use-after-scope -fno-omit-frame-pointer -fsanitize=undefined -Wno-error=inline -Wno-error=format-overflow' LDFLAGS: '-fsanitize=address -fsanitize-address-use-after-scope -fno-omit-frame-pointer -fsanitize=undefined' @@ -390,12 +367,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc10-x86_64: + gcc10-x86_64: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-10 TARGET: x86_64 steps: @@ -405,12 +381,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc10-x86_64-debug: + gcc10-x86_64-debug: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-10 TARGET: x86_64 ENABLE_DEBUG: yes @@ -421,12 +396,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc9-x86_64-vendordir: + gcc9-x86_64-vendordir: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-9 TARGET: x86_64 VENDORDIR: ${prefix}/share/etc @@ -437,12 +411,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc9-x86_64-openssl: + gcc9-x86_64-openssl: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-9 TARGET: x86_64 USE_OPENSSL: yes @@ -453,12 +426,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc9-x86_64-sanitizers: + gcc9-x86_64-sanitizers: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-9 CFLAGS: '-O1 -g -fsanitize=address -fsanitize-address-use-after-scope -fno-omit-frame-pointer -fsanitize=undefined -Wno-error=inline -Wno-error=format-overflow' LDFLAGS: '-fsanitize=address -fsanitize-address-use-after-scope -fno-omit-frame-pointer -fsanitize=undefined' @@ -472,12 +444,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc9-x86_64: + gcc9-x86_64: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-9 TARGET: x86_64 steps: @@ -487,12 +458,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-gcc9-x86_64-debug: + gcc9-x86_64-debug: runs-on: ubuntu-24.04 env: - BUILD: meson CC: gcc-9 TARGET: x86_64 ENABLE_DEBUG: yes @@ -503,12 +473,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-clang18-x86_64-vendordir: + clang18-x86_64-vendordir: runs-on: ubuntu-24.04 env: - BUILD: meson CC: clang-18 TARGET: x86_64 VENDORDIR: ${prefix}/share/etc @@ -519,12 +488,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-clang18-x86_64-openssl: + clang18-x86_64-openssl: runs-on: ubuntu-24.04 env: - BUILD: meson CC: clang-18 TARGET: x86_64 USE_OPENSSL: yes @@ -535,12 +503,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-clang18-x86_64: + clang18-x86_64: runs-on: ubuntu-24.04 env: - BUILD: meson CC: clang-18 TARGET: x86_64 steps: @@ -550,12 +517,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-clang18-x86_64-debug: + clang18-x86_64-debug: runs-on: ubuntu-24.04 env: - BUILD: meson CC: clang-18 TARGET: x86_64 ENABLE_DEBUG: yes @@ -566,12 +532,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-clang17-x86_64-vendordir: + clang17-x86_64-vendordir: runs-on: ubuntu-24.04 env: - BUILD: meson CC: clang-17 TARGET: x86_64 VENDORDIR: ${prefix}/share/etc @@ -582,12 +547,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-clang17-x86_64-openssl: + clang17-x86_64-openssl: runs-on: ubuntu-24.04 env: - BUILD: meson CC: clang-17 TARGET: x86_64 USE_OPENSSL: yes @@ -598,12 +562,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-clang17-x86_64: + clang17-x86_64: runs-on: ubuntu-24.04 env: - BUILD: meson CC: clang-17 TARGET: x86_64 steps: @@ -613,12 +576,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-clang17-x86_64-debug: + clang17-x86_64-debug: runs-on: ubuntu-24.04 env: - BUILD: meson CC: clang-17 TARGET: x86_64 ENABLE_DEBUG: yes @@ -629,12 +591,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-clang16-x86_64-vendordir: + clang16-x86_64-vendordir: runs-on: ubuntu-24.04 env: - BUILD: meson CC: clang-16 TARGET: x86_64 VENDORDIR: ${prefix}/share/etc @@ -645,12 +606,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-clang16-x86_64-openssl: + clang16-x86_64-openssl: runs-on: ubuntu-24.04 env: - BUILD: meson CC: clang-16 TARGET: x86_64 USE_OPENSSL: yes @@ -661,12 +621,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-clang16-x86_64: + clang16-x86_64: runs-on: ubuntu-24.04 env: - BUILD: meson CC: clang-16 TARGET: x86_64 steps: @@ -676,12 +635,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-clang16-x86_64-debug: + clang16-x86_64-debug: runs-on: ubuntu-24.04 env: - BUILD: meson CC: clang-16 TARGET: x86_64 ENABLE_DEBUG: yes @@ -692,12 +650,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-clang15-x86_64-vendordir: + clang15-x86_64-vendordir: runs-on: ubuntu-24.04 env: - BUILD: meson CC: clang-15 TARGET: x86_64 VENDORDIR: ${prefix}/share/etc @@ -708,12 +665,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-clang15-x86_64-openssl: + clang15-x86_64-openssl: runs-on: ubuntu-24.04 env: - BUILD: meson CC: clang-15 TARGET: x86_64 USE_OPENSSL: yes @@ -724,12 +680,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-clang15-x86_64: + clang15-x86_64: runs-on: ubuntu-24.04 env: - BUILD: meson CC: clang-15 TARGET: x86_64 steps: @@ -739,12 +694,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-clang15-x86_64-debug: + clang15-x86_64-debug: runs-on: ubuntu-24.04 env: - BUILD: meson CC: clang-15 TARGET: x86_64 ENABLE_DEBUG: yes @@ -755,12 +709,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-clang14-x86_64-vendordir: + clang14-x86_64-vendordir: runs-on: ubuntu-24.04 env: - BUILD: meson CC: clang-14 TARGET: x86_64 VENDORDIR: ${prefix}/share/etc @@ -771,12 +724,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-clang14-x86_64-openssl: + clang14-x86_64-openssl: runs-on: ubuntu-24.04 env: - BUILD: meson CC: clang-14 TARGET: x86_64 USE_OPENSSL: yes @@ -787,12 +739,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-clang14-x86_64: + clang14-x86_64: runs-on: ubuntu-24.04 env: - BUILD: meson CC: clang-14 TARGET: x86_64 steps: @@ -802,12 +753,11 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh + run: ci/build.sh - meson-clang14-x86_64-debug: + clang14-x86_64-debug: runs-on: ubuntu-24.04 env: - BUILD: meson CC: clang-14 TARGET: x86_64 ENABLE_DEBUG: yes @@ -818,210 +768,4 @@ jobs: - name: install dependencies run: ci/install-dependencies.sh - name: build check - run: ci/meson-build.sh - - gcc13-x86_64-vendordir: - runs-on: ubuntu-24.04 - env: - CC: gcc-13 - TARGET: x86_64 - VENDORDIR: ${prefix}/share/etc - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: install dependencies - run: ci/install-dependencies.sh - - name: build check - run: ci/autotools-build.sh - - gcc13-x86_64-openssl: - runs-on: ubuntu-24.04 - env: - CC: gcc-13 - TARGET: x86_64 - USE_OPENSSL: yes - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: install dependencies - run: ci/install-dependencies.sh - - name: build check - run: ci/autotools-build.sh - - gcc13-x86_64-sanitizers: - runs-on: ubuntu-24.04 - env: - CC: gcc-13 - CFLAGS: '-O1 -g -fsanitize=address -fsanitize-address-use-after-scope -fno-omit-frame-pointer -fsanitize=undefined -Wno-error=inline -Wno-error=format-overflow' - LDFLAGS: '-fsanitize=address -fsanitize-address-use-after-scope -fno-omit-frame-pointer -fsanitize=undefined' - ASAN_OPTIONS: strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1 - UBSAN_OPTIONS: print_stacktrace=1:print_summary=1:halt_on_error=1 - TARGET: x86_64 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: install dependencies - run: ci/install-dependencies.sh - - name: build check - run: ci/autotools-build.sh - - gcc13-x86_64: - runs-on: ubuntu-24.04 - env: - CC: gcc-13 - TARGET: x86_64 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: install dependencies - run: ci/install-dependencies.sh - - name: build check - run: ci/autotools-build.sh - - gcc13-x86_64-debug: - runs-on: ubuntu-24.04 - env: - CC: gcc-13 - TARGET: x86_64 - ENABLE_DEBUG: yes - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: install dependencies - run: ci/install-dependencies.sh - - name: build check - run: ci/autotools-build.sh - - gcc12-x86_64: - runs-on: ubuntu-24.04 - env: - CC: gcc-12 - TARGET: x86_64 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: install dependencies - run: ci/install-dependencies.sh - - name: build check - run: ci/autotools-build.sh - - gcc11-x86_64: - runs-on: ubuntu-24.04 - env: - CC: gcc-11 - TARGET: x86_64 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: install dependencies - run: ci/install-dependencies.sh - - name: build check - run: ci/autotools-build.sh - - gcc10-x86_64: - runs-on: ubuntu-24.04 - env: - CC: gcc-10 - TARGET: x86_64 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: install dependencies - run: ci/install-dependencies.sh - - name: build check - run: ci/autotools-build.sh - - gcc9-x86_64: - runs-on: ubuntu-24.04 - env: - CC: gcc-9 - TARGET: x86_64 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: install dependencies - run: ci/install-dependencies.sh - - name: build check - run: ci/autotools-build.sh - - clang15-x86_64-vendordir: - runs-on: ubuntu-24.04 - env: - CC: clang-15 - TARGET: x86_64 - VENDORDIR: ${prefix}/share/etc - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: install dependencies - run: ci/install-dependencies.sh - - name: build check - run: ci/autotools-build.sh - - clang15-x86_64-openssl: - runs-on: ubuntu-24.04 - env: - CC: clang-15 - TARGET: x86_64 - USE_OPENSSL: yes - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: install dependencies - run: ci/install-dependencies.sh - - name: build check - run: ci/autotools-build.sh - - clang15-x86_64: - runs-on: ubuntu-24.04 - env: - CC: clang-15 - TARGET: x86_64 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: install dependencies - run: ci/install-dependencies.sh - - name: build check - run: ci/autotools-build.sh - - clang15-x86_64-debug: - runs-on: ubuntu-24.04 - env: - CC: clang-15 - TARGET: x86_64 - ENABLE_DEBUG: yes - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: install dependencies - run: ci/install-dependencies.sh - - name: build check - run: ci/autotools-build.sh - - clang14-x86_64: - runs-on: ubuntu-24.04 - env: - CC: clang-14 - TARGET: x86_64 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: install dependencies - run: ci/install-dependencies.sh - - name: build check - run: ci/autotools-build.sh + run: ci/build.sh diff --git a/ci/build.sh b/ci/build.sh new file mode 100755 index 00000000..c50bb7f2 --- /dev/null +++ b/ci/build.sh @@ -0,0 +1,53 @@ +#!/bin/sh -ex +# +# Copyright (c) 2018-2024 The strace developers. +# All rights reserved. +# +# SPDX-License-Identifier: GPL-2.0-or-later + +opts='-Doptimization=2 -Dwerror=true -Dpam_lastlog=enabled' + +case "${VENDORDIR-}" in + */*) + opts="$opts -Dvendordir=$VENDORDIR" + ;; +esac + +case "${USE_OPENSSL-}" in + yes) + opts="$opts -Dopenssl=enabled" + ;; +esac + +case "${ENABLE_DEBUG-}" in + yes) + opts="$opts -Dpam-debug=true" + ;; +esac + +echo 'BEGIN OF BUILD ENVIRONMENT INFORMATION' +uname -a |head -1 +libc="$(ldd /bin/sh |sed -n 's|^[^/]*\(/[^ ]*/libc\.so[^ ]*\).*|\1|p' |head -1)" +$libc |head -1 +$CC --version |head -1 +meson --version |head -1 +ninja --version |head -1 +kver="$(printf '%s\n%s\n' '#include <linux/version.h>' 'LINUX_VERSION_CODE' | $CC -E -P -)" +printf 'kernel-headers %s.%s.%s\n' $((kver/65536)) $((kver/256%256)) $((kver%256)) +echo 'END OF BUILD ENVIRONMENT INFORMATION' + +mkdir build +meson setup $opts build + +# If "meson dist" supported -v option, it could be used here +# instead of all subsequent individual meson commands. + +meson compile -v -C build +mkdir build/destdir +DESTDIR=$(pwd)/build/destdir meson install -C build +meson test -v -C build + +if git status --porcelain |grep '^?'; then + echo >&2 'git status reported untracked files' + exit 1 +fi diff --git a/ci/install-dependencies.sh b/ci/install-dependencies.sh index 6583311b..d38aba98 100755 --- a/ci/install-dependencies.sh +++ b/ci/install-dependencies.sh @@ -9,7 +9,6 @@ j=-j`nproc` || j= type sudo >/dev/null 2>&1 && sudo=sudo || sudo= packages=" bison -bzip2 docbook5-xml docbook-xsl-ns flex @@ -20,6 +19,7 @@ libfl-dev libselinux1-dev libssl-dev libxml2-utils +meson pkg-config sed w3m @@ -47,15 +47,6 @@ apt_get_install() install -y "$@" } -case "${BUILD-}" in - meson) - packages="$packages meson" - ;; - *) - packages="$packages autoconf automake autopoint libtool make" - ;; -esac - case "$CC" in gcc-*) retry_if_failed \ |