Skip to content

Commit

Permalink
chore: local dev changes for workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
disconn3ct committed Jan 18, 2024
1 parent af9d61a commit 7010f46
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/quartz64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jobs:
CROSS_COMPILE: 'aarch64-linux-gnu-'
ARCH: 'arm64'
steps:
- name: Apt update for 'gh act'
run: "{ sudo apt-get -q update;}"
# https://github.com/hendrikmuhs/ccache-action
- name: ccache
uses: hendrikmuhs/[email protected]
# https://github.com/actions/setup-python/tags
- uses: actions/setup-python@v5
with:
Expand All @@ -26,8 +31,8 @@ jobs:
run: |
{ python3 -m pip install --no-cache-dir -U pip setuptools wheel; python3 -m pip install --no-cache-dir -U pyelftools; } &
{ sudo apt-get -q update; sudo DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends -qq install make gcc libc6-dev flex bison gcc-aarch64-linux-gnu bc libssl-dev swig; } &
{ curl -fLO "https://github.com/u-boot/u-boot/archive/v$uboot_version.tar.gz"; tar xf "v$uboot_version.tar.gz"; rm "v$uboot_version.tar.gz"; } &
{ curl -fO 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/snapshot/linux-rolling-stable.tar.gz'; tar xf linux-rolling-stable.tar.gz; rm linux-rolling-stable.tar.gz; } &
{ curl -fLsS "https://github.com/u-boot/u-boot/archive/v$uboot_version.tar.gz"| tar xzf - ; } &
{ curl -fLsS 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/snapshot/linux-rolling-stable.tar.gz' | tar xzf - ; } &
wait
curl -sSfo "u-boot-$uboot_version/ddr.bin" 'https://raw.githubusercontent.com/JeffyCN/mirrors/ddf03c1/bin/rk35/rk3568_ddr_1560MHz_v1.13.bin' &
curl -sSfo "u-boot-$uboot_version/bl31.elf" 'https://raw.githubusercontent.com/JeffyCN/mirrors/6186deb/bin/rk35/rk3568_bl31_v1.28.elf' &
Expand All @@ -41,6 +46,7 @@ jobs:
wait
- name: Build U-Boot
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
export ROCKCHIP_TPL='ddr.bin'
export BL31='bl31.elf'
cd "u-boot-$uboot_version"
Expand All @@ -60,6 +66,7 @@ jobs:
- name: Build Linux
run: |
cd linux-rolling-stable
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
make quartz64_defconfig
make -j$(nproc)
cp arch/arm64/boot/Image.gz ../firmware-quartz64a/boot/vmlinuz
Expand Down Expand Up @@ -168,12 +175,12 @@ jobs:
dpkg-deb -b -Zxz -z9 -Sextreme firmware-quartz64b
dpkg-deb -b -Zxz -z9 -Sextreme firmware-soquartz
sudo rm -R firmware-quartz64a firmware-quartz64b firmware-soquartz
cp *.deb ~/
- name: Upload
run: |
[ -d ~/.ssh ] || mkdir ~/.ssh
umask 377
echo '${{ secrets.KNOWN_HOSTS }}' > ~/.ssh/known_hosts
echo '${{ secrets.SSH_KEY }}' > ~/.ssh/id_ed25519
curl -T "firmware-{quartz64a,quartz64b,soquartz}.deb" --key ~/.ssh/id_ed25519 '${{ secrets.UPLOAD_URL }}all/'
curl 'https://api.cloudflare.com/client/v4/zones/${{ secrets.CF_ZONE }}/purge_cache' -H 'Authorization: Bearer ${{ secrets.CF_TOKEN }}' -H 'Content-Type: application/json' \
--data '{"files":["https://dietpi.com/downloads/binaries/testing/","https://dietpi.com/downloads/binaries/testing/firmware-quartz64a.deb","https://dietpi.com/downloads/binaries/testing/firmware-quartz64b.deb","https://dietpi.com/downloads/binaries/testing/firmware-soquartz.deb"]}'
uses: actions/upload-artifact@v3
with:
name: firmware-images
path: |
~/firmware-quartz64a.deb
~/firmware-quartz64b.deb
~/firmware-soquartz.deb

0 comments on commit 7010f46

Please sign in to comment.