Skip to content

Commit c3a5928

Browse files
committed
Attempt a testing xmonad config
1 parent b1578ed commit c3a5928

File tree

2 files changed

+46
-17
lines changed

2 files changed

+46
-17
lines changed

.config/xmonad/stack.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
#
33
# Some commonly used options have been documented as comments in this file.
44
# For advanced use and comprehensive documentation of the format, please see:
5-
# https://docs.haskellstack.org/en/stable/yaml_configuration/
5+
# https://docs.haskellstack.org/en/stable/configure/yaml/
66

7-
# Resolver to choose a 'specific' stackage snapshot or a compiler version.
7+
# A 'specific' Stackage snapshot or a compiler version.
88
# A snapshot resolver dictates the compiler version and the set of packages
99
# to be used for project dependencies. For example:
1010
#
11-
# resolver: lts-3.5
12-
# resolver: nightly-2015-09-21
13-
# resolver: ghc-7.10.2
11+
# snapshot: lts-23.0
12+
# snapshot: nightly-2024-12-13
13+
# snapshot: ghc-9.8.4
1414
#
1515
# The location of a snapshot can be provided as a file or url. Stack assumes
1616
# a snapshot provided as a file might change, whereas a url resource does not.
1717
#
18-
# resolver: ./custom-snapshot.yaml
19-
# resolver: https://example.com/snapshots/2018-01-01.yaml
20-
resolver:
21-
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/18/9.yaml
18+
# snapshot: ./custom-snapshot.yaml
19+
# snapshot: https://example.com/snapshots/2024-01-01.yaml
20+
snapshot:
21+
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/24/4.yaml
2222

2323
# User packages to be built.
2424
# Various formats can be used as shown in the example below.
@@ -32,7 +32,7 @@ resolver:
3232
packages:
3333
- xmonad
3434
- xmonad-contrib
35-
# Dependency packages to be pulled from upstream that are not in the resolver.
35+
# Dependency packages to be pulled from upstream that are not in the snapshot.
3636
# These entries can reference officially published versions as well as
3737
# forks / in-progress versions pinned to a git hash. For example:
3838
#
@@ -42,10 +42,10 @@ packages:
4242
# commit: e7b331f14bcffb8367cd58fbfc8b40ec7642100a
4343
#
4444
# extra-deps: []
45-
dependencies:
46-
- split-0.2.3.5
45+
extra-deps:
46+
- split-0.2.5
4747

48-
# Override default flag values for local packages and extra-deps
48+
# Override default flag values for project packages and extra-deps
4949
# flags: {}
5050

5151
# Extra package databases containing global packages
@@ -54,15 +54,15 @@ dependencies:
5454
# Control whether we use the GHC we find on the path
5555
# system-ghc: true
5656
#
57-
# Require a specific version of stack, using version ranges
57+
# Require a specific version of Stack, using version ranges
5858
# require-stack-version: -any # Default
59-
# require-stack-version: ">=2.5"
59+
# require-stack-version: ">=3.3"
6060
#
61-
# Override the architecture used by stack, especially useful on Windows
61+
# Override the architecture used by Stack, especially useful on Windows
6262
# arch: i386
6363
# arch: x86_64
6464
#
65-
# Extra directories used by stack for building
65+
# Extra directories used by Stack for building
6666
# extra-include-dirs: [/path/to/dir]
6767
# extra-lib-dirs: [/path/to/dir]
6868
#

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
xmonad:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Install dependencies
12+
run: |
13+
sudo apt install -y libx11-dev libxft-dev libxinerama-dev libxrandr-dev libxss-dev haskell-stack
14+
15+
- name: Fetch xmonad and xmonad-contrib
16+
run: |
17+
cd .config/xmonad
18+
git clone --branch v0.18.0 https://github.com/xmonad/xmonad
19+
git clone --branch v0.18.1 https://github.com/xmonad/xmonad-contrib
20+
21+
- name: Build xmonad
22+
run: |
23+
cd .config/xmonad
24+
stack install --allow-newer
25+
26+
- name: Test config
27+
env:
28+
XDG_CONFIG_HOME: "$HOME/dotfiles/.config"
29+
run: ~/.local/bin/xmonad --recompile

0 commit comments

Comments
 (0)