mirror of
https://github.com/Phantop/dotfiles
synced 2025-01-31 00:36:44 +00:00
34 lines
948 B
YAML
34 lines
948 B
YAML
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
|