From d81d471740e3e6bfb6359d9cdc4875a7e0412975 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 20 Mar 2026 20:51:17 +1100 Subject: [PATCH] ci: use ghcr image --- .github/actions/setup-arch/action.yml | 49 --------------------------- .github/workflows/check-format.yml | 3 +- 2 files changed, 1 insertion(+), 51 deletions(-) delete mode 100644 .github/actions/setup-arch/action.yml diff --git a/.github/actions/setup-arch/action.yml b/.github/actions/setup-arch/action.yml deleted file mode 100644 index 456bb444..00000000 --- a/.github/actions/setup-arch/action.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: Set up Arch Linux -description: Install deps needed on Arch - -runs: - using: composite - steps: - - name: Get week - id: date - shell: bash - run: echo "week=$(date +%Y-%U)" >> $GITHUB_OUTPUT - - - name: Restore package cache - uses: actions/cache/restore@v5 - with: - path: | - /var/cache/pacman/pkg - /home/builder/.cache/yay - key: pacman-${{ steps.date.outputs.week }}-${{ hashFiles('.github/actions/setup-arch/action.yml') }} - restore-keys: | - pacman-${{ steps.date.outputs.week }}- - pacman- - - - name: Install deps - shell: bash - run: | - pacman -Syu --needed --noconfirm sudo base-devel cmake ninja fish git clang qt6-declarative python - - - name: Install yay - shell: bash - run: | - useradd -m builder - echo 'builder ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers - chown -R builder:builder /home/builder - - sudo -u builder git clone https://aur.archlinux.org/yay-bin.git /home/builder/yay-bin - cd /home/builder/yay-bin - sudo -u builder makepkg -si --noconfirm - - - name: Install quickshell-git - shell: bash - run: sudo -u builder yay -S --noconfirm quickshell-git - - - name: Save packages to cache - uses: actions/cache/save@v5 - with: - path: | - /var/cache/pacman/pkg - /home/builder/.cache/yay - key: pacman-${{ steps.date.outputs.week }}-${{ hashFiles('.github/actions/setup-arch/action.yml') }} diff --git a/.github/workflows/check-format.yml b/.github/workflows/check-format.yml index f40586db..2f25cb1b 100644 --- a/.github/workflows/check-format.yml +++ b/.github/workflows/check-format.yml @@ -11,11 +11,10 @@ jobs: runs-on: ubuntu-latest container: - image: archlinux:latest + image: ghcr.io/${{ github.repository_owner }}/shell-arch-env:latest steps: - uses: actions/checkout@v6 - - uses: ./.github/actions/setup-arch - name: Check QML format shell: fish {0}