Skip to content

Commit 5805c38

Browse files
mnaczkigcbot
authored andcommitted
Remove build on Ubuntu18 from GithubAction
Remove build on Ubuntu18 from GithubAction. Also remove broken send email notification
1 parent 65fa8d1 commit 5805c38

File tree

3 files changed

+8
-60
lines changed

3 files changed

+8
-60
lines changed

.github/workflows/build-IGC.yml

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,9 @@ jobs:
4747
strategy:
4848
fail-fast: false
4949
matrix:
50-
ubuntu_version: [ '18.04', '20.04']
50+
ubuntu_version: [ '20.04' ]
5151
llvm_ver: [ 10, 11 ]
5252
include:
53-
- ubuntu_version: '20.04'
54-
llvm_ver: 12
5553
- ubuntu_version: '22.04'
5654
llvm_ver: 12
5755
experimental: true
@@ -105,19 +103,10 @@ jobs:
105103
strategy:
106104
fail-fast: false
107105
matrix:
108-
ubuntu_version: [ '18.04', '20.04' ]
106+
ubuntu_version: [ '20.04' ]
109107
llvm_ver: [ 10, 11 ]
110108
compiler: [ gcc, clang ]
111-
exclude:
112-
- ubuntu_version: '18.04'
113-
compiler: clang
114109
include:
115-
- ubuntu_version: '20.04'
116-
llvm_ver: 12
117-
compiler: gcc
118-
- ubuntu_version: '20.04'
119-
llvm_ver: 12
120-
compiler: clang
121110
- ubuntu_version: '22.04'
122111
llvm_ver: 12
123112
compiler: gcc
@@ -210,23 +199,7 @@ jobs:
210199
- name: copying artifact from docker to github host
211200
run: sudo docker cp buildigc:/workspace/igc/build/DEB-FILES ./Artifacts
212201
- uses: actions/upload-artifact@v2
213-
continue-on-error: true
214202
with:
215203
name: IGC_Ubuntu${{ matrix.ubuntu_version }}_llvm${{ matrix.llvm_ver }}_${{ matrix.compiler }}-${{ steps.igc-current-short-Hash.outputs.sha_short }}
216204
path: ./Artifacts/DEB-FILES/*.deb
217205
retention-days: 7
218-
- name: Send mail
219-
if: ${{ failure() }}
220-
uses: dawidd6/action-send-mail@v3
221-
with:
222-
server_address: smtp.gmail.com
223-
server_port: 465
224-
username: ${{secrets.MAIL_ADDRESS}}
225-
password: ${{secrets.MAIL_PASSWORD}}
226-
subject: Github Actions IGC build failed
227-
228-
from: Github Action
229-
secure: true
230-
body: Build Failed. The job ${{github.job}} of ${{github.repository}}--${github.sha} Failed. Run ID ${{github.run_id}}. Run Number ${{github.run_number}}
231-
ignore_cert: true
232-
priority: low

scripts/buildIGC.sh

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#============================ end_copyright_notice =============================
1010

1111
set -e
12-
# UBUNTU_VERSION supported value [ 18, 20 ] default 20
13-
# LLVM_VERSION supported value [ 10, 11, 12 ] default 11
12+
# UBUNTU_VERSION supported value [ 20, 22 ] default 20
13+
# LLVM_VERSION supported value [ 10, 11, 12, 13, 14 ] default 11
1414
# COMPILER supported value [ gcc, clang ] default gcc
1515
# OWN_CMAKE_FLAGS not suported but can be use as WA (each flag should be with -D prefix) default empty
1616
# example run: UBUNTU_VERSION=ubuntu2004 LLVM_VERSION=11 COMPILER=gcc sh /home/buildIGC.sh
@@ -52,25 +52,10 @@ apt-get update
5252
apt-get install -y flex bison libz-dev cmake curl wget build-essential git software-properties-common unzip file
5353
echo "[Build Status] flex bison libz-dev cmake curl wget build-essential git software-properties-common unzip file INSTALLED"
5454

55-
if [ "$UBUNTU_VERSION" = "18.04" ]; then
56-
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add -
57-
apt-add-repository "deb https://apt.kitware.com/ubuntu/ bionic main"
58-
apt update
59-
apt-get install -y cmake
60-
echo "[Build Status] new cmake on Ubuntu18.04 INSTALLED"
61-
wget --no-check-certificate -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
62-
add-apt-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-$LLVM_VERSION main"
63-
apt update
64-
echo '[Build Status] LLVM "$LLVM_VERSION" on Ubuntu18.04 PREPARED'
65-
fi
6655
apt-get install -y llvm-"$LLVM_VERSION" llvm-"$LLVM_VERSION"-dev clang-"$LLVM_VERSION" liblld-"$LLVM_VERSION" liblld-"$LLVM_VERSION"-dev
6756
echo "[Build Status] LLVM INSTALLED"
6857

69-
if [ "$UBUNTU_VERSION" = "18.04" ] && [ "$LLVM_VERSION" = "11" ]; then
70-
LLVM_VERSION_PREFERRED="$LLVM_VERSION".1.0
71-
else
72-
LLVM_VERSION_PREFERRED="$LLVM_VERSION".0.0
73-
fi
58+
LLVM_VERSION_PREFERRED="$LLVM_VERSION".0.0
7459
echo "[Build Status] LLVM_VERSION_PREFERRED = $LLVM_VERSION_PREFERRED"
7560

7661
echo "[Build Status] Prepare install OpenCL Clang"

scripts/buildSLT.sh

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#============================ end_copyright_notice =============================
1010

1111
set -e
12-
# UBUNTU_VERSION supported value [ 18, 20 ] default 20
13-
# LLVM_VERSION supported value [ 10, 11, 12 ] default 11
12+
# UBUNTU_VERSION supported value [ 20, 22 ] default 20
13+
# LLVM_VERSION supported value [ 10, 11, 12, 13, 14 ] default 11
1414
# OWN_CMAKE_FLAGS not suported but can be use as WA (each flag should be with -D prefix) default empty
1515
# example run: UBUNTU_VERSION=ubuntu2004 LLVM_VERSION=11 sh /home/buildSLT.sh
1616

@@ -33,20 +33,10 @@ apt-get update
3333
apt-get install -y flex bison libz-dev cmake curl wget build-essential git software-properties-common unzip
3434
echo "[Build Status] flex bison libz-dev cmake curl wget build-essential git software-properties-common INSTALLED"
3535

36-
if [ "$UBUNTU_VERSION" = "18.04" ]; then
37-
wget --no-check-certificate -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
38-
add-apt-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-$LLVM_VERSION main"
39-
apt update
40-
echo '[Build Status] LLVM "$LLVM_VERSION" on Ubuntu18.04 PREPARED'
41-
fi
4236
apt-get install -y llvm-"$LLVM_VERSION" llvm-"$LLVM_VERSION"-dev clang-"$LLVM_VERSION" liblld-"$LLVM_VERSION" liblld-"$LLVM_VERSION"-dev
4337
echo "[Build Status] LLVM INSTALLED"
4438

45-
if [ "$UBUNTU_VERSION" = "18.04" ] && [ "$LLVM_VERSION" = "11" ]; then
46-
LLVM_VERSION_PREFERRED="$LLVM_VERSION".1.0
47-
else
48-
LLVM_VERSION_PREFERRED="$LLVM_VERSION".0.0
49-
fi
39+
LLVM_VERSION_PREFERRED="$LLVM_VERSION".0.0
5040
echo "[Build Status] LLVM_VERSION_PREFERRED = $LLVM_VERSION_PREFERRED"
5141

5242
echo "[Build Status] build and install SPIRV-LLVM-Translator"

0 commit comments

Comments
 (0)