CI #71
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
--- | |
# CI config for https://github.com | |
name: CI | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: '0 0 1 * *' | |
jobs: | |
check: | |
name: make test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Fix Checkout | |
run: | | |
git fetch --force --tags | |
- name: Prepare environment | |
run: | | |
touch .config | |
sudo make build-deps | |
- name: Test with both patches enabled | |
run: | | |
make patch_enable_keyboard patch_enable_battery | |
make test | |
- name: Test with batteryonly targets | |
run: | | |
make patch_disable_keyboard patch_enable_battery | |
make test.batteryonly | |
- name: Test with default build | |
run: | | |
rm -f .config | |
make test | |
- name: Test we can download all known Lenovo files | |
run: | | |
make test.img.orig | |
- name: Make a test report | |
run: | | |
make test.report | |
- name: Upload lenovo files | |
uses: actions/upload-artifact@v3 | |
with: | |
name: lenovo-files | |
path: | | |
*.iso.orig | |
*.exe.orig |