Update build.yml #3
Workflow file for this run
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
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\ |