Skip to content

Bump rollup from 4.18.0 to 4.22.4 (#92) #252

Bump rollup from 4.18.0 to 4.22.4 (#92)

Bump rollup from 4.18.0 to 4.22.4 (#92) #252

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- 'docs/**'
release:
types:
- published
pull_request:
paths-ignore:
- 'docs/**'
jobs:
root_fs:
runs-on: ubuntu-latest
env:
VERSION: ${{github.event.release.tag_name}}
steps:
- uses: actions/checkout@v4
- name: Checkout flashing utils
uses: actions/checkout@v4
with:
repository: qmk/qmk_toolbox
sparse-checkout: windows
path: .build/qmk_toolbox
- name: Copy flashing utils
run: |
cp -r .build/qmk_toolbox/windows/QMK\ Toolbox/Resources/* src/usr/bin/
- name: Populate config
run: |
echo "VERSION_ID=$GITHUB_SHA" >> src/etc/qmk-release
echo "VERSION=${VERSION:-2.0.0}" >> src/etc/qmk-release
- name: Build Docker image
run: |
docker build -t qmkfm/qmk_distro_wsl .
- name: Export Docker image
run: |
docker export $(docker create qmkfm/qmk_distro_wsl:latest) | gzip > .build/install.tar.gz
- uses: actions/upload-artifact@v4
with:
name: artifacts-rootfs
path: .build/*.tar.gz
include-hidden-files: true
drivers:
runs-on: ubuntu-latest
steps:
- uses: Legion2/[email protected]
with:
repository: qmk/qmk_driver_installer
tag: 'latest'
path: .build/
file: qmk_driver_installer.exe
- name: Download Config
run: |
sudo wget -P .build/ https://raw.githubusercontent.com/qmk/qmk_firmware/master/util/drivers.txt
- uses: actions/upload-artifact@v4
with:
name: artifacts-drivers
path: .build/*
include-hidden-files: true
launcher:
runs-on: ubuntu-latest
steps:
- uses: Legion2/[email protected]
with:
repository: yuk7/wsldl
tag: '22020900'
path: .build/
file: wsldl.exe
- name: Configure Launcher
run: |
sudo mv .build/wsldl.exe .build/QMK.exe
- uses: actions/upload-artifact@v4
with:
name: artifacts-launcher
path: .build/*
include-hidden-files: true
build:
runs-on: windows-latest
needs: [root_fs, launcher, drivers]
env:
VERSION: ${{github.event.release.tag_name}}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: .build
pattern: artifacts-*
merge-multiple: true
- name: Create Installer
shell: 'bash {0}'
run: |
iscc installer/install.iss //DMyAppVersion=${VERSION:-0.0.0}
sha256sum .build/QMK_WSL.exe > .build/QMK_WSL.exe.sha256
- uses: actions/upload-artifact@v4
with:
name: installer
path: .build/QMK_WSL.*
include-hidden-files: true
- uses: geekyeggo/delete-artifact@v5
with:
name: artifacts-*
test:
runs-on: windows-latest
needs: [build]
steps:
- uses: actions/download-artifact@v4
with:
name: installer
- name: Run Install
run: |
Start-Process QMK_WSL.exe -ArgumentList "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART" -wait
- name: Run QMK cli
shell: cmd
run: |
wsl -d QMK -u root -- bash -c "qmk -h | grep 'CLI wrapper for running QMK commands'"
publish_release:
runs-on: ubuntu-latest
needs: [test]
if: github.event.release.tag_name
steps:
- uses: actions/download-artifact@v4
with:
name: installer
path: .build
- uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: ${{ github.event.release.name }}
files: |
.build/*
publish_beta:
runs-on: ubuntu-latest
needs: [test]
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
steps:
- uses: actions/download-artifact@v4
with:
name: installer
path: .build
- uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "beta"
prerelease: true
title: "Latest Beta"
files: |
.build/*