From 817170048ff82b2505dabaf5f22958a5523ffbeb Mon Sep 17 00:00:00 2001 From: Paolo Pisati Date: Thu, 21 Oct 2021 12:56:11 +0200 Subject: [PATCH 1/7] .github/workflow: build Linux M68K and pkg it up Signed-off-by: Paolo Pisati --- .github/workflows/build-and-pkg.yml | 61 +++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .github/workflows/build-and-pkg.yml diff --git a/.github/workflows/build-and-pkg.yml b/.github/workflows/build-and-pkg.yml new file mode 100644 index 0000000000000..56989119f1677 --- /dev/null +++ b/.github/workflows/build-and-pkg.yml @@ -0,0 +1,61 @@ +name: M68K Linux build and pkg release + +on: + push: + tags: + - '*' + +env: + M68K_CROSS_URL: https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/11.1.0/x86_64-gcc-11.1.0-nolibc-m68k-linux.tar.gz + M68K_CROSS_DIR: gcc-11.1.0-nolibc + +jobs: + pkg-build: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + + - name: Install Linux build deps / m68k cross compiler + run: | + cp /etc/apt/sources.list . + sed 's/# deb-src/deb-src/' sources.list > tmp + sudo mv tmp /etc/apt/sources.list + sudo apt-get update + sudo apt-get build-dep linux + wget -O - "${M68K_CROSS_URL}" | sudo tar zxvf - -C /usr/local + echo "/usr/local/${M68K_CROSS_DIR}/m68k-linux/bin" >> $GITHUB_PATH + + - name: Build m68k kernel + run: | + mkdir -p output + git clean -ffdx + make CROSS_COMPILE=m68k-linux- ARCH=m68k O=output defconfig + make CROSS_COMPILE=m68k-linux- ARCH=m68k O=output -j`nproc` + make CROSS_COMPILE=m68k-linux- ARCH=m68k O=output dir-pkg + + - name: Tar up built kernel and kmods + run: | + cd output/tar-install + tar zcvf ../tar-install.tgz * + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false + + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./output/tar-install.tgz + asset_name: tar-install.tgz + asset_content_type: application/octet-stream From 904f98305899e896e19632ba02b6d63e30f2f13a Mon Sep 17 00:00:00 2001 From: Paolo Pisati Date: Sat, 6 Nov 2021 16:47:03 +0100 Subject: [PATCH 2/7] .github/workflows: fetch and rebase Signed-off-by: Paolo Pisati --- .github/workflows/fetch-and-rebase.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/fetch-and-rebase.yml diff --git a/.github/workflows/fetch-and-rebase.yml b/.github/workflows/fetch-and-rebase.yml new file mode 100644 index 0000000000000..4ec24b3c1bebf --- /dev/null +++ b/.github/workflows/fetch-and-rebase.yml @@ -0,0 +1,26 @@ +name: Fetch upstream and rebase +on: + schedule: + - cron: "0 */8 * * *" # run every 8 hour + workflow_dispatch: # run manually + +jobs: + sync: + runs-on: ubuntu-20.04 + steps: + - env: + GITHUB_TOKEN: ${{ secrets.MY_TOKEN }} + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Fetch, rebase and push + shell: bash + run: | + set -ex; + git config user.email github-actions@github.com + git config user.name github-actions + + git remote add upstream https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git + git fetch -t upstream master + git rebase upstream/master + git push -fv --follow-tags origin HEAD:master From e40bdc44f4455ecf28c10de7a71e459974b97689 Mon Sep 17 00:00:00 2001 From: Paolo Pisati Date: Fri, 11 Mar 2022 13:20:34 +0100 Subject: [PATCH 3/7] Update fetch-and-rebase.yml --- .github/workflows/fetch-and-rebase.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fetch-and-rebase.yml b/.github/workflows/fetch-and-rebase.yml index 4ec24b3c1bebf..e80b333a8d7de 100644 --- a/.github/workflows/fetch-and-rebase.yml +++ b/.github/workflows/fetch-and-rebase.yml @@ -4,12 +4,13 @@ on: - cron: "0 */8 * * *" # run every 8 hour workflow_dispatch: # run manually +env: + GITHUB_TOKEN: ${{ secrets.PUSHTOKEN }} + jobs: sync: runs-on: ubuntu-20.04 steps: - - env: - GITHUB_TOKEN: ${{ secrets.MY_TOKEN }} - uses: actions/checkout@v2 with: fetch-depth: 0 From aee86bb8dbdfd3cab27de610bf245073afc5c2c0 Mon Sep 17 00:00:00 2001 From: Paolo Pisati Date: Sun, 15 May 2022 18:18:54 +0200 Subject: [PATCH 4/7] .github/workflows: remove github token Signed-off-by: Paolo Pisati --- .github/workflows/fetch-and-rebase.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/fetch-and-rebase.yml b/.github/workflows/fetch-and-rebase.yml index e80b333a8d7de..c4b6e8441d3de 100644 --- a/.github/workflows/fetch-and-rebase.yml +++ b/.github/workflows/fetch-and-rebase.yml @@ -4,9 +4,6 @@ on: - cron: "0 */8 * * *" # run every 8 hour workflow_dispatch: # run manually -env: - GITHUB_TOKEN: ${{ secrets.PUSHTOKEN }} - jobs: sync: runs-on: ubuntu-20.04 From c11c6ad8282bb5f4df7e2dec8694eaf6f196a72b Mon Sep 17 00:00:00 2001 From: Paolo Pisati Date: Sun, 15 May 2022 18:57:48 +0200 Subject: [PATCH 5/7] .github/workflows: use FETCH_REBASE_TOKEN during checkout Signed-off-by: Paolo Pisati --- .github/workflows/fetch-and-rebase.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/fetch-and-rebase.yml b/.github/workflows/fetch-and-rebase.yml index c4b6e8441d3de..7d817d63590f6 100644 --- a/.github/workflows/fetch-and-rebase.yml +++ b/.github/workflows/fetch-and-rebase.yml @@ -8,9 +8,11 @@ jobs: sync: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - name: Checkout Repo + uses: actions/checkout@v2 with: fetch-depth: 0 + token: ${{ secrets.FETCH_REBASE_TOKEN }} - name: Fetch, rebase and push shell: bash run: | From db0bfc5c021d864e75fec434f700342ffcff9000 Mon Sep 17 00:00:00 2001 From: Paolo Pisati Date: Sun, 15 May 2022 21:32:54 +0200 Subject: [PATCH 6/7] .github/workflows: run fetch & rebase every 2h Signed-off-by: Paolo Pisati --- .github/workflows/fetch-and-rebase.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fetch-and-rebase.yml b/.github/workflows/fetch-and-rebase.yml index 7d817d63590f6..2312bdcf26a6b 100644 --- a/.github/workflows/fetch-and-rebase.yml +++ b/.github/workflows/fetch-and-rebase.yml @@ -1,8 +1,8 @@ name: Fetch upstream and rebase on: schedule: - - cron: "0 */8 * * *" # run every 8 hour - workflow_dispatch: # run manually + - cron: "0 */2 * * *" # run every 2 hour + workflow_dispatch: # run manually jobs: sync: From 331d4f27ec5d0510c060df13d995b957cfa53bab Mon Sep 17 00:00:00 2001 From: Paolo Pisati Date: Sun, 8 Jun 2025 12:35:53 +0200 Subject: [PATCH 7/7] fetch-and-rebase: bump runs-on to ubuntu-24.04 --- .github/workflows/fetch-and-rebase.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fetch-and-rebase.yml b/.github/workflows/fetch-and-rebase.yml index 2312bdcf26a6b..6baa8ec44a49c 100644 --- a/.github/workflows/fetch-and-rebase.yml +++ b/.github/workflows/fetch-and-rebase.yml @@ -6,7 +6,7 @@ on: jobs: sync: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Checkout Repo uses: actions/checkout@v2