Skip to content

Use github-mirror-action@v3 #20

Use github-mirror-action@v3

Use github-mirror-action@v3 #20

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/linux-stable-rc.git'
GITHUB_TOKEN: ${{ secrets.PAT }}
- name: check_env
run: |
pwd
ls -l
git status || true
git checkout linux-6.6.y || true
if git log --oneline HEAD~1 | grep "Linux\ .*\-rc.*"; then
echo "build"
echo "call linux-6.6.y test-build workflow"
else
echo "nobuild"
fi
cd ..
ls -l
# check_matrix:
# needs: mirror
# strategy:
# # Don't cancel the remaining running jobs if some job(s) fail(s)
# fail-fast: false
# matrix:
# branch: ['linux-6.6.y', 'linux-6.1.y' ]
# max-parallel: 1
# steps:
# - name: check
# run: |
# pwd
# ls -l
# if [[ -e Makefile ]]; then
# make mrproper || true
# fi
# git checkout ${{ matrix.branch }}
# if git log --oneline | grep "Linux\ .*\-rc.*"; then
# echo "build for ${{ matrix.branch }}"
# else
# echo "nobuild for ${{ matrix.branch }}"
# fi
# ls -l
# cd ..
# ls -l
# exit 0
# 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
#