-
Notifications
You must be signed in to change notification settings - Fork 1
74 lines (60 loc) · 1.82 KB
/
periodic_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Periodic build against latest QMK
on:
schedule:
- cron: "0 11 * * *"
- cron: "0 23 * * *"
workflow_dispatch:
env:
RUST_LOG: trace
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/qmk/qmk_cli:latest
steps:
- name: Disable safe.directory check
run: git config --global --add safe.directory '*'
- uses: actions/checkout@v4
with:
sparse-checkout: 'firmware'
sparse-checkout-cone-mode: false
- name: git credentials
run: |
git config --global user.email [email protected]
git config --global user.name elpekenin-ci
- name: QMK deps + config
run: |
pip install Jinja2 fnvhash
pip install --upgrade milc
qmk config compile.parallel=20
- name: Install Rust
run: |
apt-get -y update
apt-get -y install curl
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
- name: Compile qmk_build
run: |
git clone https://github.com/elpekenin/qmk_build
source "$HOME/.cargo/env"
cargo install --path qmk_build
- name: Show environment info
run: |
source "$HOME/.cargo/env"
echo -n " distro: " && uname -a || true
echo -n " pip: " && pip -V || true
echo -n " qmk: " && qmk -V || true
echo -n "qmk config: " && qmk config || true
echo -n " qmk_build: " && qmk_build -V || true
- name: Run qmk_build
run: |
source "$HOME/.cargo/env"
cd firmware
qmk_build
- name: Upload binaries
uses: actions/upload-artifact@v2
with:
name: binaries
path: firmware/binaries/*