From b1d4a52e8e2003a95d5827786cd3a72f3c67761a Mon Sep 17 00:00:00 2001 From: fukiame Date: Sun, 13 Aug 2023 09:58:38 +0700 Subject: [PATCH] fedorable; fixup --- .github/workflows/main.yml | 18 ++++++++++-------- toolchains/Eva-GCC.sh | 2 +- toolchains/Neutron-Clang.sh | 2 +- toolchains/ZyC-Clang.sh | 2 +- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9b10f36..036f462 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,18 +31,18 @@ jobs: build: runs-on: ubuntu-latest container: - image: ubuntu:kinetic + image: fedora:latest steps: - name: checkout uses: actions/checkout@master + - name: start of workflow + run: | + bash tg_utils.sh msg "gh $RUN_NUM: workflow started" - name: init build env run: | - apt-get update - apt-get install llvm lld bc bison ca-certificates curl flex gcc git libc6-dev \ - libssl-dev openssl python3 python2 zip zstd make clang gcc-arm-linux-gnueabi \ - software-properties-common device-tree-compiler libxml2 libarchive-tools \ - libelf-dev libssl-dev libtfm-dev wget xz-utils -y + dnf groupinstall "Development tools" -y + dnf install llvm lld bc bison ca-certificates curl flex glibc-devel.i686 glibc-devel binutils-devel openssl python3 python2 zstd clang gcc-arm-linux-gnu dtc libxml2 libarchive openssl-devel tomsfastmath-devel wget xz -y ln -sf "/usr/bin/python3" /usr/bin/python - name: show host info run: | @@ -61,10 +61,12 @@ jobs: run: | cd kernel for file in $(find . -maxdepth 1 -name '*.zip'); do - bash ../tg_utils.sh up "${file}" '$(cat "${file}.info")' + bash ../tg_utils.sh up "${file}" "$(cat '${file}.info')" done for file in $(find . -maxdepth 1 -name '*.log'); do - bash ../tg_utils.sh up "${file}" '$(cat "${file}.info")' + if [[ -e "error_${file}.info" ]]; do + bash ../tg_utils.sh up "${file}" "$(cat 'error_${file}.info')" + fi done - name: if it fails if: ${{ failure() }} diff --git a/toolchains/Eva-GCC.sh b/toolchains/Eva-GCC.sh index d91ef5d..8963da3 100755 --- a/toolchains/Eva-GCC.sh +++ b/toolchains/Eva-GCC.sh @@ -30,6 +30,6 @@ case $1 in OBCOPY=llvm-objcopy \ OBJDUMP=aarch64-elf-objdump \ STRIP=aarch64-elf-strip \ - 2>&1 | tee error_${CUR_TOOLCHAIN}.log + 2>&1 | tee ${CUR_TOOLCHAIN}.log ;; esac diff --git a/toolchains/Neutron-Clang.sh b/toolchains/Neutron-Clang.sh index 13e5448..e7f6813 100755 --- a/toolchains/Neutron-Clang.sh +++ b/toolchains/Neutron-Clang.sh @@ -37,6 +37,6 @@ case $1 in HOSTCXX=clang++ \ HOSTLD=ld.lld \ HOSTAR=llvm-ar \ - 2>&1 | tee error_${CUR_TOOLCHAIN}.log + 2>&1 | tee ${CUR_TOOLCHAIN}.log ;; esac diff --git a/toolchains/ZyC-Clang.sh b/toolchains/ZyC-Clang.sh index dfc321b..6c465ae 100755 --- a/toolchains/ZyC-Clang.sh +++ b/toolchains/ZyC-Clang.sh @@ -35,6 +35,6 @@ case $1 in HOSTCXX=clang++ \ HOSTLD=ld.lld \ HOSTAR=llvm-ar \ - 2>&1 | tee error_${CUR_TOOLCHAIN}.log + 2>&1 | tee ${CUR_TOOLCHAIN}.log ;; esac