Skip to content

Commit

Permalink
ci: Run meson dist
Browse files Browse the repository at this point in the history
This requires to change permissions for the directory to avoid git error:

    fatal: detected dubious ownership in repository at '/__w/iputils/iputils'
    To add an exception for this directory, call:

	    git config --global --add safe.directory /__w/iputils/iputils
    Error: Process completed with exit code 128.

(Only an old git 1.8.3.1 from CentOS 7 does not require that.)

Signed-off-by: Petr Vorel <pvorel@suse.cz>
  • Loading branch information
pevik committed Feb 12, 2024
1 parent 16a1098 commit 6fdb1aa
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,11 @@ jobs:
env:
CC: clang
EXTRA_BUILD_OPTS: "-DUSE_GETTEXT=false"
# meson 0.45.1 is too old
# meson error: not using Unicode-compatible locale (ANSI_X3.4-1968)
SKIP_TESTS: true
# meson: error: unrecognized arguments: -C builddir
SKIP_DISC: true

- container: "ubuntu:jammy"
env:
Expand Down Expand Up @@ -103,6 +106,9 @@ jobs:
- name: Git checkout
uses: actions/checkout@v1

- name: Fix permissions
run: chown -Rv $(id -u):$(id -g) .

- name: Install additional packages
run: |
export INSTALL=${{ matrix.container }}
Expand All @@ -128,13 +134,17 @@ jobs:
- name: Show build log
run: ./build.sh build-log

- name: Dist
run: ./build.sh dist
run: if [ ! "$SKIP_DISC" ]; then ./build.sh dist; else echo "meson dist skipped"; fi

- name: Install
run: ./build.sh install

- name: Show install log
run: ./build.sh install-log

- name: Run tests
- name: Tests
run: if [ ! "$SKIP_TESTS" ]; then ./build.sh test; else echo "tests skipped"; fi

- name: Show test log
Expand Down

0 comments on commit 6fdb1aa

Please sign in to comment.