-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
37 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
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
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) | ||
|
||
|
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