1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2025-01-31 00:36:44 +00:00
dotfiles/.github/workflows/setup.yml

34 lines
948 B
YAML
Raw Normal View History

2024-10-25 16:18:45 +00:00
name: Test dotfiles run
on:
workflow_dispatch: # allow manual trigger
push:
branches:
- main
jobs:
setup: # try setting up user with setup script
runs-on: ubuntu-latest
container: archlinux:latest
steps:
- name: Install git on container and add user
run: |
pacman -S --noconfirm git sudo
useradd -m glados
echo 'glados ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/glados
- name: Checkout repo
uses: actions/checkout@v4
- name: Bump submodules
run: |
git config --global --add safe.directory /__w/aurbuild/aurbuild
cp -r /__w/dotfiles/dotfiles /home/glados/.dotfiles
sudo -u glados /home/glados/.dotfiles/bin/setup
mkdwarfs -i /home/glados -o /home.dwarfs
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: home.dwarfs
path: /home.dwarfs