remove upload of log files #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Arch Linux Package | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| makepkg: | |
| name: Build with makepkg | |
| runs-on: ubuntu-latest | |
| container: | |
| image: archlinux:base-devel | |
| env: | |
| PKGDEST: ${{ github.workspace }}/pkgdest | |
| SRCDEST: ${{ github.workspace }}/srcdest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Prepare pacman | |
| run: | | |
| pacman-key --init | |
| pacman-key --populate archlinux | |
| pacman -Syu --noconfirm --needed git base-devel sudo gnupg | |
| - name: Create build user | |
| run: | | |
| useradd -m builder | |
| echo 'builder ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers.d/builder | |
| chown -R builder:builder "$GITHUB_WORKSPACE" | |
| install -d -m 0755 -o builder -g builder "$PKGDEST" "$SRCDEST" | |
| - name: Import package signing key | |
| run: | | |
| sudo -u builder gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 58117AFA1F85B3EEC154677D615D449FE6E6A235 | |
| - name: Build package with makepkg | |
| run: | | |
| sudo -u builder env \ | |
| PKGDEST="$PKGDEST" \ | |
| SRCDEST="$SRCDEST" \ | |
| MAKEPKG_FLAGS="--syncdeps --cleanbuild --noconfirm --log" \ | |
| bash -lc "makepkg \$MAKEPKG_FLAGS" | |
| - name: Upload package artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: arch-package-${{ github.run_number }} | |
| path: | | |
| ${{ env.PKGDEST }}/*.pkg.tar.zst |