DAHDI Kernel CI for linux-next #413
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: DAHDI Kernel CI for linux-next | |
on: | |
schedule: | |
- cron: 00 02 * * * | |
pull_request: | |
jobs: | |
kernel_test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cache kernel git repo | |
id: cache-kernel-git | |
uses: actions/cache@v3 | |
with: | |
path: ./linux-next | |
key: kernel-next-git-cache | |
- if: ${{ steps.cache-kernel-git.outputs.cache-hit != 'true' }} | |
name: Clone Kernel repo | |
run: git clone git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git | |
- name: Update kernel git | |
run: git fetch | |
working-directory: ./linux-next | |
- name: Switch to desired branch | |
run: git checkout master | |
working-directory: ./linux-next | |
- name: Fetch dahdi-linux | |
uses: actions/checkout@v3 | |
with: | |
path: dahdi-linux | |
- name: Create build container | |
run: docker build ./ci -t dahdi-builder | |
working-directory: ./dahdi-linux | |
- name: Build dahdi-linux | |
run: "docker run -v ${PWD}/dahdi-linux:/src -v ${PWD}/linux-next:/linux dahdi-builder" | |