init
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled
This commit is contained in:
88
Telegram/ThirdParty/xdg-desktop-portal/.github/workflows/build-and-test.yml
vendored
Normal file
88
Telegram/ThirdParty/xdg-desktop-portal/.github/workflows/build-and-test.yml
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
env:
|
||||
TESTS_TIMEOUT: 10 # in minutes
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
image:
|
||||
required: true
|
||||
type: string
|
||||
image_options:
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
name: Build and Test
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
compiler: ['gcc', 'clang']
|
||||
sanitizer: ['address']
|
||||
|
||||
container:
|
||||
image: ${{ inputs.image }}
|
||||
env:
|
||||
CFLAGS: -Wp,-D_FORTIFY_SOURCE=2
|
||||
CC: ${{ matrix.compiler }}
|
||||
XDP_TEST_IN_CI: 1
|
||||
G_MESSAGES_DEBUG: all
|
||||
options: ${{ inputs.image_options }}
|
||||
|
||||
steps:
|
||||
- name: Configure environment
|
||||
run: |
|
||||
git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||
echo XDG_DATA_DIRS=$GITHUB_WORKSPACE/tests/share:/usr/local/share:/usr/share | tee -a $GITHUB_ENV
|
||||
|
||||
- name: Check out xdg-desktop-portal
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Run pre-commit hooks
|
||||
run: |
|
||||
export PYTHONPATH="/root/.local/lib/python$(python3 -c 'import sys; print("{}.{}".format(*sys.version_info))')/site-packages:$PYTHONPATH"
|
||||
export PATH="/root/.local/bin:$PATH"
|
||||
pre-commit run --show-diff-on-failure --color=always --all-files
|
||||
|
||||
- name: Check POTFILES.in
|
||||
run: .github/workflows/check-potfiles.sh
|
||||
|
||||
- name: Build xdg-desktop-portal
|
||||
run: |
|
||||
meson setup _build \
|
||||
-Dinstalled-tests=true \
|
||||
-Dtests=enabled \
|
||||
-Db_sanitize=${{ matrix.sanitizer }} \
|
||||
-Db_lundef=false
|
||||
meson compile -C _build
|
||||
|
||||
- name: Run xdg-desktop-portal tests
|
||||
run: timeout --signal=KILL -v ${TESTS_TIMEOUT}m meson test -C _build
|
||||
|
||||
- name: Install xdg-desktop-portal
|
||||
run: meson install -C _build
|
||||
|
||||
- name: Run xdg-desktop-portal installed-tests
|
||||
run: |
|
||||
test -n "$(gnome-desktop-testing-runner -l xdg-desktop-portal)"
|
||||
gnome-desktop-testing-runner --report-directory installed-test-logs/ \
|
||||
-t $((TESTS_TIMEOUT * 60)) xdg-desktop-portal
|
||||
|
||||
- name: Check Qt annotations
|
||||
run: find -name "*.xml" | xargs -n1 /usr/lib/qt6/bin/qdbusxml2cpp
|
||||
|
||||
- name: Create dist tarball
|
||||
run: |
|
||||
ls -la
|
||||
timeout --signal=KILL -v ${TESTS_TIMEOUT}m meson dist -C _build
|
||||
|
||||
- name: Upload test logs
|
||||
uses: actions/upload-artifact@v4
|
||||
if: success() || failure()
|
||||
with:
|
||||
name: test logs (${{ matrix.compiler }}, ${{ matrix.sanitizer }})
|
||||
path: |
|
||||
tests/*.log
|
||||
test-*.log
|
||||
installed-test-logs/
|
||||
_build/meson-logs/testlog.txt
|
||||
Reference in New Issue
Block a user