explicitly test on CentOS and Fedora and publish to linux-thinkpad-devel repo #63
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| tags: | |
| - '**' | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.ref_name }}-${{ github.workflow }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.host }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| linux: | |
| - v6.1 | |
| - master | |
| host: | |
| - ubuntu-22.04 | |
| cc: | |
| - gcc | |
| include: | |
| - linux: master | |
| host: ubuntu-24.04 | |
| cc: clang | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| path: tp_smapi | |
| - uses: actions/checkout@v5 | |
| with: | |
| repository: torvalds/linux | |
| ref: ${{ matrix.linux }} | |
| path: linux | |
| - run: sudo apt-get install -y libelf-dev ccache | |
| - uses: hendrikmuhs/[email protected] | |
| with: | |
| key: ${{ matrix.linux }}-${{ matrix.cc }} | |
| - name: Configure kernel | |
| run: | | |
| make -C linux tinyconfig CC=${{ matrix.cc }} | |
| echo -e "CONFIG_64BIT=y\nCONFIG_X86_64=y\nCONFIG_MODULES=y\nCONFIG_INPUT=y" > linux/kernel/configs/ci.config | |
| make -C linux ci.config CC=${{ matrix.cc }} | |
| - name: Run make -C linux CC=${{ matrix.cc }} | |
| run: | | |
| export PATH="/usr/lib/ccache:$PATH" | |
| make -C linux -j $(nproc) CC=${{ matrix.cc }} | |
| - run: make -C tp_smapi modules KBUILD=../linux HDAPS=1 CC=${{ matrix.cc }} |