Skip to content

Commit

Permalink
(CI) Speed up?
Browse files Browse the repository at this point in the history
  • Loading branch information
elpekenin committed Feb 21, 2024
1 parent 9525602 commit 983b677
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 18 deletions.
50 changes: 33 additions & 17 deletions .github/workflows/periodic_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,45 +8,61 @@ on:
env:
RUST_LOG: trace

defaults:
run:
shell: bash

jobs:
build:
runs-on: ubuntu-latest

container:
image: ghcr.io/qmk/qmk_cli:latest

steps:
- name: Set up git
- 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: Set up QMK
- name: QMK deps + config
run: |
pip install qmk Jinja2 fnvhash
qmk setup -H ~/workspace/qmk --yes
pip install Jinja2 fnvhash
pip install --upgrade milc
qmk config compile.parallel=20
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- 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: Set up qmk_build
- name: Compile qmk_build
run: |
git clone https://github.com/elpekenin/qmk_build
source "$HOME/.cargo/env"
cargo install --path qmk_build
- name: Copy repo files
uses: actions/[email protected]

- name: Show environment info
run: |
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
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
Expand Down
2 changes: 1 addition & 1 deletion firmware/keyboards/elpekenin/access/compile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/bin/bash

# Utility script to compile both halves at once (with EE_HANDS)

Expand Down
3 changes: 3 additions & 0 deletions firmware/users/elpekenin/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ USER_INCLUDE = $(USER_PATH)/include

VPATH += $(USER_INCLUDE)

# do not error if an attribute is unknown
CFLAGS += -Wno-attributes

SRC += $(USER_SRC)/build_info.c \
$(USER_SRC)/crash.c \
$(USER_SRC)/elpekenin.c \
Expand Down

0 comments on commit 983b677

Please sign in to comment.