diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9731143..e58d8e4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,16 +14,6 @@ on: required: true jobs: - test: - runs-on: ubuntu-latest - container: - image: ghcr.io/inko-lang/aur:main - steps: - - uses: actions/checkout@v4 - - name: Updating permissions - run: setfacl -R -m u:build:rwx . - - name: Running tests - run: bash scripts/test.sh "${{ inputs.name }}" release: needs: - test diff --git a/scripts/test.sh b/scripts/test.sh deleted file mode 100644 index cc2082f..0000000 --- a/scripts/test.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash - -set -e -source ./scripts/setup.sh - -name="${1}" - -if [[ "${name}" = '' ]] -then - error 'The package name must be specified as the first argument' -fi - -cd "${name}" - -info 'Running test build' - -if [[ -v CI ]] -then - sudo -u build makepkg --cleanbuild --force --noconfirm --clean --syncdeps \ - --noconfirm --noprogressbar -else - makepkg --cleanbuild --force --noconfirm --clean --syncdeps --noconfirm \ - --noprogressbar -fi - -rm *.tar.gz -rm *.zst diff --git a/scripts/update.sh b/scripts/update.sh index 639c733..caa0419 100644 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -40,7 +40,19 @@ else makepkg --printsrcinfo > .SRCINFO fi +info 'Running test build' + +if [[ -v CI ]] +then + sudo -u build makepkg --cleanbuild --force --noconfirm --clean --syncdeps \ + --noconfirm --noprogressbar +else + makepkg --cleanbuild --force --noconfirm --clean --syncdeps --noconfirm \ + --noprogressbar +fi + rm *.tar.gz +rm *.zst info 'Pushing changes' git add PKGBUILD .SRCINFO