Skip to content

Commit 73251a0

Browse files
committed
CI: uefi-only: Use actions/checkout for linux/u-boot repos
Signed-off-by: Janne Grunau <[email protected]>
1 parent f140e96 commit 73251a0

1 file changed

Lines changed: 26 additions & 21 deletions

File tree

.github/workflows/installer.yml

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,27 @@ jobs:
2121
runs-on: ubuntu-latest
2222

2323
steps:
24-
- uses: actions/checkout@v5
24+
- name: Checkout
25+
uses: actions/checkout@v5
2526
with:
2627
submodules: recursive
2728

29+
- name: Checkout linux
30+
uses: actions/checkout@v5
31+
with:
32+
repository: AsahiLinux/linux
33+
ref: 'asahi'
34+
path: linux
35+
sparse-checkout: 'arch/arm64/boot/dts/apple/'
36+
fetch-tags: 'true'
37+
38+
- name: Checkout u-boot
39+
uses: actions/checkout@v5
40+
with:
41+
repository: AsahiLinux/u-boot
42+
ref: 'asahi-releng'
43+
path: u-boot
44+
2845
- name: Install aarch64-linux-gnu- toolchain
2946
run: |
3047
sudo apt-get update
@@ -41,37 +58,25 @@ jobs:
4158
- name: Build
4259
run: make -k -j2 ARCH=aarch64-linux-gnu- RELEASE=1
4360

44-
- name: Fetch u-boot and downstream device trees
45-
run: |
46-
mkdir -p uefi-only
47-
git clone --depth 1 --no-tags --single-branch -b asahi-releng \
48-
https://github.com/AsahiLinux/u-boot.git uefi-only/u-boot
49-
git clone --depth=1 --no-tags --single-branch -b asahi \
50-
--no-checkout --filter=tree:0 \
51-
https://github.com/AsahiLinux/linux.git uefi-only/linux
52-
cd uefi-only/linux
53-
git sparse-checkout set --no-cone /arch/arm64/boot/dts/apple/
54-
git checkout
55-
5661
- name: Update u-boot apple device trees
5762
run: |
58-
cp -f uefi-only/linux/arch/arm64/boot/dts/apple/*.dts \
59-
uefi-only/linux/arch/arm64/boot/dts/apple/*.dtsi \
60-
uefi-only/linux/arch/arm64/boot/dts/apple/*.h \
61-
uefi-only/u-boot/arch/arm/dts/
63+
cp -f linux/arch/arm64/boot/dts/apple/*.dts \
64+
linux/arch/arm64/boot/dts/apple/*.dtsi \
65+
linux/arch/arm64/boot/dts/apple/*.h \
66+
u-boot/arch/arm/dts/
6267
6368
- name: Build u-boot
6469
run: |
65-
cd uefi-only/u-boot
70+
cd u-boot
6671
make CROSS_COMPILE=aarch64-linux-gnu- apple_m1_defconfig
6772
make CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm -k -j2
6873
6974
- name: Create m1n1 uefi only boot.bin
7075
run: |
71-
gzip -k uefi-only/u-boot/u-boot-nodtb.bin
76+
gzip -k u-boot/u-boot-nodtb.bin
7277
cat build/m1n1.bin \
73-
uefi-only/u-boot/arch/arm/dts/t60*.dtb \
74-
uefi-only/u-boot/arch/arm/dts/t81*.dtb \
78+
u-boot/arch/arm/dts/t60*.dtb \
79+
u-boot/arch/arm/dts/t81*.dtb \
7580
> uefi-only/boot.bin
7681
7782
- uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)