From 12199f08ae535ca42f8bafac7b74e4e5ed37167c Mon Sep 17 00:00:00 2001 From: Unai Martinez-Corral Date: Wed, 15 Jun 2022 19:54:40 +0200 Subject: [PATCH] ci/sphinx-tuttest: cleanup Signed-off-by: Unai Martinez-Corral --- .github/workflows/sphinx-tuttest.yml | 35 +++++++++++----------------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/.github/workflows/sphinx-tuttest.yml b/.github/workflows/sphinx-tuttest.yml index 5968cae..ecf319b 100644 --- a/.github/workflows/sphinx-tuttest.yml +++ b/.github/workflows/sphinx-tuttest.yml @@ -51,16 +51,12 @@ jobs: submodules: recursive - name: Install utils - if: ${{matrix.os == 'ubuntu' || matrix.os == 'debian'}} - run: apt -qqy update && apt -qqy install wget locales && locale-gen $LANG - - - name: Install utils - if: ${{matrix.os == 'centos'}} - run: yum -y install wget - - - name: Install utils - if: ${{matrix.os == 'fedora'}} - run: dnf install -y wget + run: | + case ${{ matrix.os }} in + ubuntu|debian) apt -qqy update && apt -qqy install git wget locales && locale-gen $LANG ;; + centos) yum -y install git wget ;; + fedora) dnf install -y git wget ;; + esac - name: Install tuttest run: | @@ -102,23 +98,20 @@ jobs: container: ${{matrix.os}}:${{matrix.os-version}} steps: - - name: Install utils - if: ${{matrix.os == 'ubuntu' || matrix.os == 'debian'}} - run: apt -qqy update && apt -qqy install git wget locales && locale-gen $LANG - - - name: Install utils - if: ${{matrix.os == 'centos'}} - run: yum -y install git wget - - - name: Install utils - if: ${{matrix.os == 'fedora'}} - run: dnf install -y git wget - name: Setup repository uses: actions/checkout@v3 with: submodules: recursive + - name: Install utils + run: | + case ${{ matrix.os }} in + ubuntu|debian) apt -qqy update && apt -qqy install git wget locales && locale-gen $LANG ;; + centos) yum -y install git wget ;; + fedora) dnf install -y git wget ;; + esac + - name: Install tuttest run: | wget https://github.com/antmicro/tuttest/releases/download/v0.2-beta/tuttest -O /usr/bin/tuttest