aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2022-01-03 22:19:23 +0600
committerN-R-K <79544946+N-R-K@users.noreply.github.com>2022-01-06 17:53:02 +0000
commit35a9ca33d607151ccf477942568618afd67a7ef4 (patch)
tree587c7bf030113c1cfefecb5713ae66342e1b7469
parent598f4c7855a8ce537b1eeeb2c5c032bb27a39e8e (diff)
[ci] fetch tcc from a known working commit
avoids our ci failing in case there's a faulty new commit on tcc.
-rw-r--r--.github/workflows/build.yml12
1 files changed, 7 insertions, 5 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index bfac942..2a7ccfa 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -6,7 +6,7 @@ on:
pull_request:
branches: [ master ]
-# NOTE: "stable" tcc is too old and fails at linking. instead using git version.
+# NOTE: "stable" tcc is too old and fails at linking. instead fetching a recent known working commit.
jobs:
full-build:
runs-on: ubuntu-latest
@@ -17,8 +17,9 @@ jobs:
sudo apt-get install libimlib2 libimlib2-dev xserver-xorg-core xserver-xorg-dev \
libxft2 libxft-dev libexif12 libexif-dev \
gcc clang >/dev/null
- git clone --quiet --depth 1 'https://github.com/TinyCC/tinycc.git'
- ( cd tinycc && ./configure && make && sudo make install; ) >/dev/null
+ 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
# vanilla flags
CFLAGS="-std=c99 -Wall -pedantic"
# extra flags
@@ -42,8 +43,9 @@ jobs:
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
- git clone --quiet --depth 1 'https://github.com/TinyCC/tinycc.git'
- ( cd tinycc && ./configure && make && sudo make install; ) >/dev/null
+ 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
# vanilla flags
CFLAGS="-std=c99 -Wall -pedantic"
# extra flags