Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch: null
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- uses: canonical/setup-lxd@v0.1.3
- name: Launch LXD instance
run: |
lxc launch ubuntu:24.04 ci \
--config security.nesting=true \
--config cloud-init.user-data="$(cat src/installer/cloud-init.yml)" \
--quiet
lxc exec ci -- cloud-init status --wait
lxc file push \
src/installer/config.toml \
src/installer/install.py \
ci/usr/local/libexec/dotfiles/ \
--create-dirs \
--uid 1000 --gid 1000
- name: Smoke test
run: |
lxc exec ci -- su - ubuntu -c '/usr/bin/python3 /usr/local/libexec/dotfiles/install.py'
11 changes: 11 additions & 0 deletions src/installer/cloud-init.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#cloud-config
package_upgrade: true
packages:
- python3
- python3-attr
- python3-cattr
- python3-rich
- sudo
runcmd:
- ["/bin/sh", "-c", "curl -fL https://get.docker.com | sh"]
- ["usermod", "-aG", "docker", "ubuntu"]
66 changes: 66 additions & 0 deletions src/installer/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
[apt_get]
packages = [
"build-essential",
]

[snap]
snaps = [
{ name = "aws-cli", options = [ "--classic" ] },
{ name = "google-cloud-sdk", options = [ "--classic" ] },
]

[mise]
core = [
"go",
"node",
"rust",
]
tools = [
"aqua:BurntSushi/ripgrep",
"aqua:astral-sh/uv",
"aqua:cli/cli",
"aqua:ducaale/xh",
"aqua:eza-community/eza",
"aqua:jdx/usage",
"aqua:jqlang/jq",
"aqua:lsd-rs/lsd",
"aqua:mikefarah/yq",
"aqua:sharkdp/bat",
"aqua:sharkdp/fd",
"aqua:starship/starship",
"npm:@github/copilot",
"npm:@anthropic-ai/claude-code",
"npm:@google/gemini-cli",
"npm:@dotenvx/dotenvx",
"npm:@openai/codex",
]

[uv_python]
versions = [
"3.10",
"3.11",
"3.12",
"3.13",
"3.13t",
"3.14",
"3.14t",
]

[uv_tool]
packages = [
"hatch",
"httpie",
{ name = "openhands", options = [ "--python=3.12" ] },
"pdm",
"poetry",
{ name = "posting", options = [ "--python=3.13" ] },
]

[docker]
images = [
"docker.io/library/buildpack-deps:trixie",
"docker.io/library/buildpack-deps:noble",
"mcr.microsoft.com/devcontainers/base:trixie",
"mcr.microsoft.com/devcontainers/base:noble",
"mcr.microsoft.com/devcontainers/universal:2-linux",
]
Loading
Loading