From a9c6cbcd207eed387085647017d14324e63f77dd Mon Sep 17 00:00:00 2001 From: NRK Date: Mon, 3 Jan 2022 22:24:18 +0600 Subject: [ci] separate dep from build removes /dev/null redirections from the dep step so in case some dep fails to install/compile we will have the log. --- .github/workflows/build.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2a7ccfa..67cd347 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,14 +12,16 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: make + - name: dep run: | sudo apt-get install libimlib2 libimlib2-dev xserver-xorg-core xserver-xorg-dev \ libxft2 libxft-dev libexif12 libexif-dev \ - gcc clang >/dev/null + gcc clang TCC_SHA="027b8fb9b88fe137447fb8bb1b61079be9702472" - wget --quiet "https://github.com/TinyCC/tinycc/archive/${TCC_SHA}.tar.gz" && tar xzf "${TCC_SHA}.tar.gz" - ( cd "tinycc-$TCC_SHA" && ./configure && make && sudo make install; ) >/dev/null + wget "https://github.com/TinyCC/tinycc/archive/${TCC_SHA}.tar.gz" && tar xzf "${TCC_SHA}.tar.gz" + ( cd "tinycc-$TCC_SHA" && ./configure && make && sudo make install; ) + - name: build + run: | # vanilla flags CFLAGS="-std=c99 -Wall -pedantic" # extra flags @@ -38,14 +40,16 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: make + - name: dep run: | sudo apt-get install libimlib2 libimlib2-dev xserver-xorg-core xserver-xorg-dev \ - gcc clang >/dev/null - sudo apt-get remove libxft2 libxft-dev libexif12 libexif-dev >/dev/null + gcc clang + sudo apt-get remove libxft2 libxft-dev libexif12 libexif-dev TCC_SHA="027b8fb9b88fe137447fb8bb1b61079be9702472" - wget --quiet "https://github.com/TinyCC/tinycc/archive/${TCC_SHA}.tar.gz" && tar xzf "${TCC_SHA}.tar.gz" - ( cd "tinycc-$TCC_SHA" && ./configure && make && sudo make install; ) >/dev/null + wget "https://github.com/TinyCC/tinycc/archive/${TCC_SHA}.tar.gz" && tar xzf "${TCC_SHA}.tar.gz" + ( cd "tinycc-$TCC_SHA" && ./configure && make && sudo make install; ) + - name: build + run: | # vanilla flags CFLAGS="-std=c99 -Wall -pedantic" # extra flags -- cgit v1.2.3