From 306f4b8355239ea8c3e7caf756ffdbd3e5e29635 Mon Sep 17 00:00:00 2001 From: AKuHAK <621640+AKuHAK@users.noreply.github.com> Date: Sun, 17 Apr 2022 21:18:08 +0300 Subject: [PATCH 01/14] CI: Provided Github Action for kernel --- .github/workflows/compilation.yml | 50 +++++++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 51 insertions(+) create mode 100644 .github/workflows/compilation.yml diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml new file mode 100644 index 00000000000000..a38c53ba382dac --- /dev/null +++ b/.github/workflows/compilation.yml @@ -0,0 +1,50 @@ +name: CI-compile + +on: + push: + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + # container: ghcr.io/${{ github.repository_owner }}/mipsr5900el-gentoo-linux-gnu:main + container: ghcr.io/AKuHAK/mipsr5900el-gentoo-linux-gnu:main + steps: + - uses: actions/checkout@v3 + + - name: Compile project + env: + INSTALL_MOD_PATH: ../initramfs/ps2/ + INSTALL_MOD_STRIP: 1 + run: | + mv -rf ../svr/iniramfs ../ + make -j $(getconf _NPROCESSORS_ONLN) ps2_defconfig + make -j $(getconf _NPROCESSORS_ONLN) oldconfig + make -j $(getconf _NPROCESSORS_ONLN) vmlinux + make -j $(getconf _NPROCESSORS_ONLN) modules + make -j $(getconf _NPROCESSORS_ONLN) modules_install + make -j $(getconf _NPROCESSORS_ONLN) vmlinuz + cp vmlinuz PS2Linux5.4-${{ github.sha }}.ELF + + - name: Upload initramfs as artifact + uses: actions/upload-artifact@v3 + with: + name: initramfs + path: initramfs + + - name: Upload kernel as artifact + if: ${{ success() }} + uses: actions/upload-artifact@v3 + with: + name: "PS2Linux5.4-${{ github.sha }}.ELF" + path: linux/PS2Linux5.4-${{ github.sha }}.ELF + + - name: Upload kernel as pre-release + if: github.ref == 'refs/heads/ps2-main' + uses: marvinpinto/action-automatic-releases@latest + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + prerelease: true + automatic_release_tag: "latest" + title: PS2Linux5.4-${{ github.sha }}.ELF + files: linux/PS2Linux5.4-${{ github.sha }}.ELF diff --git a/.gitignore b/.gitignore index 70580bdd352ccf..febb69159dbc42 100644 --- a/.gitignore +++ b/.gitignore @@ -91,6 +91,7 @@ modules.order !.gitattributes !.gitignore !.mailmap +!.github # # Generated include files From fbfb18d5713e3106ff8fc74b14a80983402bbdc2 Mon Sep 17 00:00:00 2001 From: AKuHAK <621640+AKuHAK@users.noreply.github.com> Date: Sun, 17 Apr 2022 21:20:24 +0300 Subject: [PATCH 02/14] test --- .github/workflows/compilation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml index a38c53ba382dac..5ef810c58df600 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/compilation.yml @@ -8,7 +8,7 @@ jobs: build: runs-on: ubuntu-latest # container: ghcr.io/${{ github.repository_owner }}/mipsr5900el-gentoo-linux-gnu:main - container: ghcr.io/AKuHAK/mipsr5900el-gentoo-linux-gnu:main + container: ghcr.io/frno7/mipsr5900el-gentoo-linux-gnu:main steps: - uses: actions/checkout@v3 From c360ddb4b9e38a72e747f6b91abbe7783bfe1b21 Mon Sep 17 00:00:00 2001 From: AKuHAK <621640+AKuHAK@users.noreply.github.com> Date: Sun, 17 Apr 2022 21:33:39 +0300 Subject: [PATCH 03/14] Update compilation.yml --- .github/workflows/compilation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml index 5ef810c58df600..cb132d6be0079f 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/compilation.yml @@ -17,7 +17,7 @@ jobs: INSTALL_MOD_PATH: ../initramfs/ps2/ INSTALL_MOD_STRIP: 1 run: | - mv -rf ../svr/iniramfs ../ + mv -f ../svr/iniramfs ../ make -j $(getconf _NPROCESSORS_ONLN) ps2_defconfig make -j $(getconf _NPROCESSORS_ONLN) oldconfig make -j $(getconf _NPROCESSORS_ONLN) vmlinux From 6ffef9c59bcfa8e7165f8792353fb46e6fb6dc22 Mon Sep 17 00:00:00 2001 From: AKuHAK <621640+AKuHAK@users.noreply.github.com> Date: Sun, 17 Apr 2022 21:37:40 +0300 Subject: [PATCH 04/14] Update compilation.yml --- .github/workflows/compilation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml index cb132d6be0079f..181533011fd493 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/compilation.yml @@ -17,7 +17,7 @@ jobs: INSTALL_MOD_PATH: ../initramfs/ps2/ INSTALL_MOD_STRIP: 1 run: | - mv -f ../svr/iniramfs ../ + mv -f ../srv/iniramfs ../ make -j $(getconf _NPROCESSORS_ONLN) ps2_defconfig make -j $(getconf _NPROCESSORS_ONLN) oldconfig make -j $(getconf _NPROCESSORS_ONLN) vmlinux From 74a61890b81a7a387b7ac788341f35eaaf33ca00 Mon Sep 17 00:00:00 2001 From: AKuHAK <621640+AKuHAK@users.noreply.github.com> Date: Sun, 17 Apr 2022 22:44:00 +0300 Subject: [PATCH 05/14] Update compilation.yml --- .github/workflows/compilation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml index 181533011fd493..dc3101b2257a15 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/compilation.yml @@ -17,7 +17,7 @@ jobs: INSTALL_MOD_PATH: ../initramfs/ps2/ INSTALL_MOD_STRIP: 1 run: | - mv -f ../srv/iniramfs ../ + mv -f ../srv/initramfs ../ make -j $(getconf _NPROCESSORS_ONLN) ps2_defconfig make -j $(getconf _NPROCESSORS_ONLN) oldconfig make -j $(getconf _NPROCESSORS_ONLN) vmlinux From 101a1d74a51e38bc940f5a6763eb91c712fd8cd2 Mon Sep 17 00:00:00 2001 From: AKuHAK <621640+AKuHAK@users.noreply.github.com> Date: Mon, 18 Apr 2022 09:39:00 +0300 Subject: [PATCH 06/14] Update compilation.yml --- .github/workflows/compilation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml index dc3101b2257a15..49f5865eb3bb06 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/compilation.yml @@ -17,7 +17,7 @@ jobs: INSTALL_MOD_PATH: ../initramfs/ps2/ INSTALL_MOD_STRIP: 1 run: | - mv -f ../srv/initramfs ../ + mv -f /srv/initramfs ../ make -j $(getconf _NPROCESSORS_ONLN) ps2_defconfig make -j $(getconf _NPROCESSORS_ONLN) oldconfig make -j $(getconf _NPROCESSORS_ONLN) vmlinux From c6a8bc2b30014ce8c68596b1c914053c01c9b400 Mon Sep 17 00:00:00 2001 From: AKuHAK <621640+AKuHAK@users.noreply.github.com> Date: Mon, 18 Apr 2022 14:26:29 +0300 Subject: [PATCH 07/14] Update compilation.yml --- .github/workflows/compilation.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml index 49f5865eb3bb06..a97c016e3d7fd4 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/compilation.yml @@ -30,14 +30,14 @@ jobs: uses: actions/upload-artifact@v3 with: name: initramfs - path: initramfs + path: ../initramfs - name: Upload kernel as artifact if: ${{ success() }} uses: actions/upload-artifact@v3 with: name: "PS2Linux5.4-${{ github.sha }}.ELF" - path: linux/PS2Linux5.4-${{ github.sha }}.ELF + path: PS2Linux5.4-${{ github.sha }}.ELF - name: Upload kernel as pre-release if: github.ref == 'refs/heads/ps2-main' @@ -47,4 +47,4 @@ jobs: prerelease: true automatic_release_tag: "latest" title: PS2Linux5.4-${{ github.sha }}.ELF - files: linux/PS2Linux5.4-${{ github.sha }}.ELF + files: PS2Linux5.4-${{ github.sha }}.ELF From 963e422de53b6a1d2d6101ab5ebf355fc2608f22 Mon Sep 17 00:00:00 2001 From: AKuHAK <621640+AKuHAK@users.noreply.github.com> Date: Mon, 18 Apr 2022 22:58:15 +0300 Subject: [PATCH 08/14] Update compilation.yml --- .github/workflows/compilation.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml index a97c016e3d7fd4..5981fc99c0d3e4 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/compilation.yml @@ -26,11 +26,11 @@ jobs: make -j $(getconf _NPROCESSORS_ONLN) vmlinuz cp vmlinuz PS2Linux5.4-${{ github.sha }}.ELF - - name: Upload initramfs as artifact - uses: actions/upload-artifact@v3 - with: - name: initramfs - path: ../initramfs + + + + + - name: Upload kernel as artifact if: ${{ success() }} From 65a4a98b505cef72e70ae23aea8b969f44b98059 Mon Sep 17 00:00:00 2001 From: AKuHAK <621640+AKuHAK@users.noreply.github.com> Date: Tue, 19 Apr 2022 10:47:33 +0300 Subject: [PATCH 09/14] Update compilation.yml --- .github/workflows/compilation.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml index 5981fc99c0d3e4..a07c04ce79d56e 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/compilation.yml @@ -8,7 +8,7 @@ jobs: build: runs-on: ubuntu-latest # container: ghcr.io/${{ github.repository_owner }}/mipsr5900el-gentoo-linux-gnu:main - container: ghcr.io/frno7/mipsr5900el-gentoo-linux-gnu:main + container: ghcr.io/${{ github.repository_owner }}/mipsr5900el-gentoo-linux-gnu:main steps: - uses: actions/checkout@v3 @@ -26,12 +26,6 @@ jobs: make -j $(getconf _NPROCESSORS_ONLN) vmlinuz cp vmlinuz PS2Linux5.4-${{ github.sha }}.ELF - - - - - - - name: Upload kernel as artifact if: ${{ success() }} uses: actions/upload-artifact@v3 @@ -39,6 +33,13 @@ jobs: name: "PS2Linux5.4-${{ github.sha }}.ELF" path: PS2Linux5.4-${{ github.sha }}.ELF + - name: Upload initramfs as artifact + if: ${{ success() }} + uses: actions/upload-artifact@v3 + with: + name: Initramfs + path: usr/initramfs_data.cpio* + - name: Upload kernel as pre-release if: github.ref == 'refs/heads/ps2-main' uses: marvinpinto/action-automatic-releases@latest @@ -46,5 +47,7 @@ jobs: repo_token: "${{ secrets.GITHUB_TOKEN }}" prerelease: true automatic_release_tag: "latest" - title: PS2Linux5.4-${{ github.sha }}.ELF - files: PS2Linux5.4-${{ github.sha }}.ELF + title: Development build + files: | + PS2Linux5.4-${{ github.sha }}.ELF + usr/initramfs_data.cpio* From d975f53ac48663cb696f37bad2f47e92a5e77f9e Mon Sep 17 00:00:00 2001 From: AKuHAK <621640+AKuHAK@users.noreply.github.com> Date: Tue, 19 Apr 2022 10:49:35 +0300 Subject: [PATCH 10/14] Update compilation.yml --- .github/workflows/compilation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml index a07c04ce79d56e..d27e2bd99b4566 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/compilation.yml @@ -8,7 +8,7 @@ jobs: build: runs-on: ubuntu-latest # container: ghcr.io/${{ github.repository_owner }}/mipsr5900el-gentoo-linux-gnu:main - container: ghcr.io/${{ github.repository_owner }}/mipsr5900el-gentoo-linux-gnu:main + container: ghcr.io/frno7/mipsr5900el-gentoo-linux-gnu:main steps: - uses: actions/checkout@v3 From 315628fa2afc2f6bf3e41f0861d1cc4ee09cd2a3 Mon Sep 17 00:00:00 2001 From: AKuHAK <621640+AKuHAK@users.noreply.github.com> Date: Tue, 19 Apr 2022 11:03:27 +0300 Subject: [PATCH 11/14] Update compilation.yml --- .github/workflows/compilation.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml index d27e2bd99b4566..fc8d40990d73fd 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/compilation.yml @@ -7,8 +7,7 @@ on: jobs: build: runs-on: ubuntu-latest - # container: ghcr.io/${{ github.repository_owner }}/mipsr5900el-gentoo-linux-gnu:main - container: ghcr.io/frno7/mipsr5900el-gentoo-linux-gnu:main + container: ghcr.io/${{ github.repository_owner }}/mipsr5900el-gentoo-linux-gnu:main steps: - uses: actions/checkout@v3 From ccd32593d60bcce7acdfeda7f4144e0be69075aa Mon Sep 17 00:00:00 2001 From: AKuHAK <621640+AKuHAK@users.noreply.github.com> Date: Wed, 20 Apr 2022 20:33:01 +0300 Subject: [PATCH 12/14] Update compilation.yml --- .github/workflows/compilation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml index fc8d40990d73fd..ead21464f88f7d 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/compilation.yml @@ -30,7 +30,7 @@ jobs: uses: actions/upload-artifact@v3 with: name: "PS2Linux5.4-${{ github.sha }}.ELF" - path: PS2Linux5.4-${{ github.sha }}.ELF + path: PS2Linux-${{ github.ref_name }}-${{ github.sha }}.ELF - name: Upload initramfs as artifact if: ${{ success() }} From 81795e2074f705ef1b52b038d8ec9ab1be08fd9c Mon Sep 17 00:00:00 2001 From: AKuHAK <621640+AKuHAK@users.noreply.github.com> Date: Wed, 20 Apr 2022 20:34:46 +0300 Subject: [PATCH 13/14] Update compilation.yml --- .github/workflows/compilation.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml index ead21464f88f7d..f45e92e25a7054 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/compilation.yml @@ -23,13 +23,13 @@ jobs: make -j $(getconf _NPROCESSORS_ONLN) modules make -j $(getconf _NPROCESSORS_ONLN) modules_install make -j $(getconf _NPROCESSORS_ONLN) vmlinuz - cp vmlinuz PS2Linux5.4-${{ github.sha }}.ELF + cp vmlinuz PS2Linux-${{ github.ref_name }}-${{ github.sha }}.ELF - name: Upload kernel as artifact if: ${{ success() }} uses: actions/upload-artifact@v3 with: - name: "PS2Linux5.4-${{ github.sha }}.ELF" + name: "PS2Linux-${{ github.ref_name }}-${{ github.sha }}.ELF" path: PS2Linux-${{ github.ref_name }}-${{ github.sha }}.ELF - name: Upload initramfs as artifact @@ -48,5 +48,5 @@ jobs: automatic_release_tag: "latest" title: Development build files: | - PS2Linux5.4-${{ github.sha }}.ELF + PS2Linux-${{ github.ref_name }}-${{ github.sha }}.ELF usr/initramfs_data.cpio* From e9304d76ad47154e5380a0cc097b08374a2b4176 Mon Sep 17 00:00:00 2001 From: AKuHAK <621640+AKuHAK@users.noreply.github.com> Date: Sat, 23 Apr 2022 18:21:09 +0300 Subject: [PATCH 14/14] Update compilation.yml --- .github/workflows/compilation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml index f45e92e25a7054..979ea8f9052d40 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/compilation.yml @@ -7,7 +7,7 @@ on: jobs: build: runs-on: ubuntu-latest - container: ghcr.io/${{ github.repository_owner }}/mipsr5900el-gentoo-linux-gnu:main + container: ghcr.io/frno7/mipsr5900el-gentoo-linux-gnu:main steps: - uses: actions/checkout@v3