From c9531d95ed3f12c382a0292e9eb508a9b9c96532 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Thu, 22 Feb 2024 10:09:26 -0300 Subject: build: add print-version target and use in CI To reduce TARNAME hardcoding. Added on commit 6a89ab023 ("ci: run firejail --version after build/install", 2022-05-16) / PR #5148. --- .github/workflows/build-extra.yml | 2 +- .github/workflows/build.yml | 4 ++-- .github/workflows/test.yml | 20 ++++++++++---------- 3 files changed, 13 insertions(+), 13 deletions(-) (limited to '.github') diff --git a/.github/workflows/build-extra.yml b/.github/workflows/build-extra.yml index 918c879ad..0d9ae98ad 100644 --- a/.github/workflows/build-extra.yml +++ b/.github/workflows/build-extra.yml @@ -73,4 +73,4 @@ jobs: - name: make install run: sudo make install - name: print version - run: command -V firejail && firejail --version + run: make print-version diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index df706c898..4880c31e1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -87,5 +87,5 @@ jobs: run: make - name: make install run: sudo make install - - name: print firejail version - run: command -V firejail && firejail --version + - name: print version + run: make print-version diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c76401022..3e7153c46 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -80,8 +80,8 @@ jobs: run: make -j "$(nproc)" - name: make install run: sudo make install - - name: print firejail version - run: command -V firejail && firejail --version + - name: print version + run: make print-version - run: make lab-setup - run: make test-seccomp-extra - run: make test-firecfg @@ -128,8 +128,8 @@ jobs: run: make -j "$(nproc)" - name: make install run: sudo make install - - name: print firejail version - run: command -V firejail && firejail --version + - name: print version + run: make print-version - run: make lab-setup - run: make test-private-etc - run: make test-fs @@ -167,8 +167,8 @@ jobs: run: make -j "$(nproc)" - name: make install run: sudo make install - - name: print firejail version - run: command -V firejail && firejail --version + - name: print version + run: make print-version - run: make lab-setup - run: make test-environment - run: make test-profiles @@ -209,8 +209,8 @@ jobs: run: make -j "$(nproc)" - name: make install run: sudo make install - - name: print firejail version - run: command -V firejail && firejail --version + - name: print version + run: make print-version - run: make lab-setup - run: make test-utils @@ -255,8 +255,8 @@ jobs: run: make -j "$(nproc)" - name: make install run: sudo make install - - name: print firejail version - run: command -V firejail && firejail --version + - name: print version + run: make print-version - run: make lab-setup - run: make test-fnetfilter - run: make test-sysutils -- cgit v1.2.3-54-g00ecf