Krolyxon
Commit 35a9ca3

Branches

Refs →

nsxiv35a9ca3

[ci] fetch tcc from a known working commit

avoids our ci failing in case there's a faulty new commit on tcc.
Author
NRK
Date
2022-01-03 22:19 +0600
Committer
N-R-K · 2022-01-06 17:53 +0000
Parent
598f4c7
Commit
35a9ca33d607151ccf477942568618afd67a7ef4

+7 −5

1 file changed

  1. M .github/workflows/build.yml +7 −5
M .github/workflows/build.yml View
@@ -6,7 +6,7 @@ on:
66 pull_request:
77 branches: [ master ]
88
9−# NOTE: "stable" tcc is too old and fails at linking. instead using git version.
9+# NOTE: "stable" tcc is too old and fails at linking. instead fetching a recent known working commit.
1010 jobs:
1111 full-build:
1212 runs-on: ubuntu-latest
@@ -17,8 +17,9 @@ jobs:
1717 sudo apt-get install libimlib2 libimlib2-dev xserver-xorg-core xserver-xorg-dev \
1818 libxft2 libxft-dev libexif12 libexif-dev \
1919 gcc clang >/dev/null
20− git clone --quiet --depth 1 'https://github.com/TinyCC/tinycc.git'
21− ( cd tinycc && ./configure && make && sudo make install; ) >/dev/null
20+ TCC_SHA="027b8fb9b88fe137447fb8bb1b61079be9702472"
21+ wget --quiet "https://github.com/TinyCC/tinycc/archive/${TCC_SHA}.tar.gz" && tar xzf "${TCC_SHA}.tar.gz"
22+ ( cd "tinycc-$TCC_SHA" && ./configure && make && sudo make install; ) >/dev/null
2223 # vanilla flags
2324 CFLAGS="-std=c99 -Wall -pedantic"
2425 # extra flags
@@ -42,8 +43,9 @@ jobs:
4243 sudo apt-get install libimlib2 libimlib2-dev xserver-xorg-core xserver-xorg-dev \
4344 gcc clang >/dev/null
4445 sudo apt-get remove libxft2 libxft-dev libexif12 libexif-dev >/dev/null
45− git clone --quiet --depth 1 'https://github.com/TinyCC/tinycc.git'
46− ( cd tinycc && ./configure && make && sudo make install; ) >/dev/null
46+ TCC_SHA="027b8fb9b88fe137447fb8bb1b61079be9702472"
47+ wget --quiet "https://github.com/TinyCC/tinycc/archive/${TCC_SHA}.tar.gz" && tar xzf "${TCC_SHA}.tar.gz"
48+ ( cd "tinycc-$TCC_SHA" && ./configure && make && sudo make install; ) >/dev/null
4749 # vanilla flags
4850 CFLAGS="-std=c99 -Wall -pedantic"
4951 # extra flags