From b924df44646c2391198fa8c79ebd28c16255c5d3 Mon Sep 17 00:00:00 2001 From: probonopd Date: Mon, 21 Feb 2022 19:49:04 +0100 Subject: [PATCH] set -ex --- .github/workflows/build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cff69e7..a56ca30 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,9 +18,11 @@ jobs: - uses: actions/checkout@v2 - name: Recursively pull git submodules run: | + set -ex git submodule update --init --recursive - name: Install toolchains run: | + set -ex wget -q https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2021.07/binrel/gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf.tar.xz tar xf *-aarch64-none-elf.tar.xz wget -q https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2021.07/binrel/gcc-arm-10.3-2021.07-x86_64-arm-none-eabi.tar.xz @@ -28,21 +30,25 @@ jobs: mkdir -p kernels - name: Build for Raspberry Pi 4 run: | + set -ex export PATH=$(readlink -f ./gcc-*aarch64-none*/bin/):$PATH RPI=4 bash -ex build.sh cp ./src/kernel*.img ./kernels/ - name: Build for Raspberry Pi 3 run: | + set -ex export PATH=$(readlink -f ./gcc-*aarch64-none*/bin/):$PATH RPI=3 bash -ex build.sh cp ./src/kernel*.img ./kernels/ - name: Build for Raspberry Pi 2 run: | + set -ex export PATH=$(readlink -f ./gcc-*arm-none*/bin/):$PATH RPI=2 bash -ex build.sh cp ./src/kernel*.img ./kernels/ - name: Get Raspberry Pi boot files run: | + set -ex export PATH=$(readlink -f ./gcc-*aarch64-none*/bin/):$PATH cp ./kernels/* ./circle-stdlib/libs/circle/boot/ || true cd ./circle-stdlib/libs/circle/boot @@ -59,5 +65,6 @@ jobs: - name: Upload to GitHub Releases (only when building from main branch) if: ${{ github.ref == 'refs/heads/main' }} run: | + set -ex wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh bash ./upload.sh ./MiniDexed*.zip