Skip to content

Commit

Permalink
trying to fix github actions 12
Browse files Browse the repository at this point in the history
  • Loading branch information
h3fang committed Apr 4, 2024
1 parent 8d0d3e5 commit a291700
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/actions/makepkg/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ sudo sed -i '/^options=(/ s/\bdebug\b/!debug/' /etc/makepkg.conf
sudo sed -i 's/#MAKEFLAGS="-j2"/MAKEFLAGS="-j$(nproc)"/' /etc/makepkg.conf

sudo chown -R builder /github/workspace /github/home
mkdir -p /home/builder/pkgs
mkdir -p pkgs

cd "${INPUT_PKG}"
echo "Running makepkg with $PWD/PKGBUILD"
makepkg -fs --noconfirm
mv -- *.pkg.tar.zst /home/builder/pkgs/
mv -- *.pkg.tar.zst ../pkgs/
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ jobs:
- name: Archive packages
uses: actions/upload-artifact@v4
with:
path: /home/builder/pkgs/
path: pkgs/
release:
runs-on: ubuntu-latest
needs:
- build
steps:
- uses: actions/download-artifact@v4
with:
path: pkgs/
- uses: dev-drprasad/[email protected]
with:
delete_release: true
Expand All @@ -38,6 +40,6 @@ jobs:
name: Optimized packages for AMD Zen 2
omitBody: true
commit: ${{ github.sha }}
artifacts: "*.pkg.tar.zst"
artifacts: "pkgs/*"
draft: false
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a291700

Please sign in to comment.