Skip to content

Update build.yml

Update build.yml #3

Workflow file for this run

name: Build KMonad
on:
push:
branches: ['main']
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
repository: kmonad/kmonad
- name: Set up PowerShell
shell: pwsh
run: |
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
iex "& {$(irm get.scoop.sh)} -RunAsAdmin"
scoop install stack
- name: Clone KMonad repository
run: |
cd $env:USERPROFILE\Downloads
git clone https://github.com/kmonad/kmonad.git
cd kmonad
- name: Compile KMonad
run: |
stack build
- name: Install and Run KMonad
run: |
stack install
- name: Upload KMonad artifact
uses: actions/upload-artifact@v3
with:
name: kmonad-executable
path: $env:APPDATA\local\bin\