Skip to content

Use github-mirror-action@v3 #14

Use github-mirror-action@v3

Use github-mirror-action@v3 #14

Workflow file for this run

name: 'mirror and test'
on:
push:
branches:
- __mirror
schedule:
# Run everyday at 3 AM UTC
- cron: '0 3 * * *'
workflow_dispatch:
jobs:
#mirror:
# runs-on: ubuntu-latest
# name: mirror
# steps:
# - name: mirror
# id: mirror
# uses: bridgelightcloud/github-mirror-action@v3
# with:
# origin: 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/l inux-stable-rc.git'
# GITHUB_TOKEN: ${{ secrets.PAT }}
build_matrix:
runs-on: ubuntu-latest
strategy:
# Don't cancel the remaining running jobs if some job(s) fail(s)
fail-fast: false
matrix:
branch: ['linux-6.1.y', 'linux-5.15.y' ]
steps:
- uses: actions/checkout@v3
with:
ref: ${{ matrix.branch }}
- name: build
run: |
if git log --oneline | grep "Linux\ .*\-rc.*"; then
echo "build"
build_dir=$( pwd )
pushd ../
wget 'https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/13.2.0/x86_64-gcc-13.2.0-nolibc-ia64-linux.tar.xz' -O ./tarball.tar.xz
wget 'https://raw.githubusercontent.com/johnny-mnemonic/linux-stable-rc/__mirror/make-kernel.bash' && chmod +x make-kernel.bash
wget 'https://raw.githubusercontent.com/johnny-mnemonic/linux-stable-rc/__mirror/rx2620-rx2660-rx2800-i2-combined-localmodconfig'
wget 'https://raw.githubusercontent.com/johnny-mnemonic/linux-stable-rc/__mirror/ia64-linux-workaround-ice-with-gcc-13.patch'
tar -xf tarball.tar.xz
ls -l
PATH=$PATH:$PWD/gcc-13.2.0-nolibc/ia64-linux/bin
popd
patch -p1 < ../ia64-linux-workaround-ice-with-gcc-13.patch
pushd ../
time ./make-kernel.bash ./rx2620-rx2660-rx2800-i2-combined-localmodconfig ia64 ${build_dir}
else
echo "nobuild"
fi