diff options
| author | Egor Tensin <egor@tensin.name> | 2026-10-04 23:23:45 +0500 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-10-04 23:23:45 +0500 |
| commit | 3f82f5720c18043624c9087f262a792a08856f08 (patch) | |
| tree | 6917a57fc16e6cbd7d6a13b0e116c590119e0c21 /.github/workflows/aur.yml | |
| parent | remove annoying trailing period from repo URLs (diff) | |
| download | cmake-common-3f82f5720c18043624c9087f262a792a08856f08.tar.gz cmake-common-3f82f5720c18043624c9087f262a792a08856f08.zip | |
workflows/aur: move setup steps to aur:Makefilev6.1.8
Diffstat (limited to '')
| -rw-r--r-- | .github/workflows/aur.yml | 33 |
1 files changed, 4 insertions, 29 deletions
diff --git a/.github/workflows/aur.yml b/.github/workflows/aur.yml index ae85941..83caa62 100644 --- a/.github/workflows/aur.yml +++ b/.github/workflows/aur.yml @@ -10,6 +10,9 @@ jobs: runs-on: ubuntu-latest container: image: archlinux:base-devel + env: + SSH_KEY: | + ${{ secrets.SSH_KEY }} steps: # This step must be done before actions/checkout. From the latter's # output: @@ -19,39 +22,11 @@ jobs: - name: Install dependencies run: | pacman -Syu --noconfirm git openssh - - name: Checkout uses: actions/checkout@v7 with: ref: aur token: '${{ secrets.GH_TOKEN }}' - - # makepkg for no reason hard-forbids running as root. Kill me now. - - name: Add builder user - run: | - useradd -m -s /bin/bash builder - passwd -d builder - echo 'builder ALL=(ALL) ALL' >> /etc/sudoers - chown -R builder:builder -- "$GITHUB_WORKSPACE" - - - name: Configure SSH - run: | - mkdir -p /home/builder/.ssh/ - cat > /home/builder/.ssh/config <<'EOF' - StrictHostKeyChecking no - EOF - cat > /home/builder/.ssh/id_ed25519 <<'EOF' - ${{ secrets.SSH_KEY }} - EOF - chown -R builder:builder /home/builder/.ssh - chmod 0600 /home/builder/.ssh/id_ed25519 - - - name: Configure git - run: | - # See https://github.com/actions/checkout#push-a-commit-using-the-built-in-token - runuser -u builder -- git -C "$GITHUB_WORKSPACE" config user.name "github-actions[bot]" - runuser -u builder -- git -C "$GITHUB_WORKSPACE" config user.email "41898282+github-actions[bot]@users.noreply.github.com" - - name: Run maintenance run: | - runuser -u builder -- make -C "$GITHUB_WORKSPACE" maintenance + make -C "$GITHUB_WORKSPACE" ci |
