Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] make Nightly-build CI run on changes to CI #2971

Merged
merged 11 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 5 additions & 28 deletions .ci/env/apt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,36 +59,11 @@ function install_qemu_emulation_apt {
}

function install_qemu_emulation_deb {
set +e

versions=(9.0.2 9.0.1 8.2.4)
suffixes=("" "~bpo12+1")
found_version=""
for version in ${versions[@]}; do
for suffix in ${suffixes[@]}; do
qemu_deb="qemu-user-static_${version}+ds-1${suffix}_amd64.deb"
echo "Checking for http://ftp.debian.org/debian/pool/main/q/qemu/${qemu_deb}"
if wget -q --method=HEAD http://ftp.debian.org/debian/pool/main/q/qemu/${qemu_deb} &> /dev/null;
then
echo "Found qemu version ${version}"
found_version=${qemu_deb}
break 2
fi
done
done

set -eo pipefail
if [[ -z "${found_version}" ]] ; then
# If nothing is found, error out and fail
echo "None of the requested qemu versions ${versions[*]} are available."
false
fi

# get last version of qemu listed on debian, changes may need to occur to this with version 10 of qemu
found_version=$(wget -q http://ftp.debian.org/debian/pool/main/q/qemu/ -O - | grep -oP "(?<=\")$1_.*_amd64.deb(?=\")" | tail -1)
wget http://ftp.debian.org/debian/pool/main/q/qemu/${found_version}
sudo dpkg -i ${found_version}

sudo systemctl restart systemd-binfmt.service
set +eo pipefail
}

function install_llvm_version {
Expand Down Expand Up @@ -140,7 +115,9 @@ elif [ "${component}" == "qemu-apt" ]; then
install_qemu_emulation_apt
elif [ "${component}" == "qemu-deb" ]; then
update
install_qemu_emulation_deb
install_qemu_emulation_deb qemu-user
install_qemu_emulation_deb qemu-user-binfmt
install_qemu_emulation_deb qemu-user-static
elif [ "${component}" == "llvm-version" ] ; then
update
install_llvm_version "$2"
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,27 @@ name: Nightly-build
on:
schedule:
- cron: '0 21 * * *'
pull_request:
branches:
- main
paths:
- .github/workflows/nightly-build.yml
- .ci/pipeline/ci.yml
- makefile
- '.ci/env/**'
- '.ci/scripts/**'
- 'dev/make/**'
- 'dev/make/compiler_definitions/**'
- 'dev/make/function_definitions/**'
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

env:
WINDOWS_ALL_COMPONENTS: 'intel.oneapi.win.cpp-dpcpp-common:intel.oneapi.win.mkl.devel:intel.oneapi.win.tbb.devel'

Expand Down
2 changes: 1 addition & 1 deletion dev/make/compiler_definitions/dpcpp.mk
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ CMPLRDIRSUFF.dpcpp = _dpcpp

CORE.SERV.COMPILER.dpcpp = generic

-Zl.dpcpp = $(if $(OS_is_win),-Zl,) $(-Q)no-intel-lib
-Zl.dpcpp = $(if $(OS_is_win),-Zl -Q,-)no-intel-lib
-DEBC.dpcpp = $(if $(OS_is_win),-debug:all -Z7,-g) -fno-system-debug

COMPILER.lnx.dpcpp = icpx -fsycl -m64 -stdlib=libstdc++ -fgnu-runtime -fwrapv \
Expand Down
Loading