diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5286f05..c51e481 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,17 +6,18 @@ on: jobs: apk: - runs-on: self-hosted - timeout-minutes: 3000 - if: github.actor == 'robertsLando' && github.event.issue.url == 'https://api.github.com/repos/robertsLando/pkg-binaries/issues/5' + runs-on: ubuntu-latest + timeout-minutes: 360 + if: (github.actor == 'robertsLando' || github.actor == 'n1ru4l') && github.event.issue.url == 'https://api.github.com/repos/robertsLando/pkg-binaries/issues/5' steps: - uses: actions/checkout@v2 - uses: crazy-max/ghaction-docker-buildx@v1 - name: "Build ${{ github.event.comment.body }}" - timeout-minutes: 3000 + timeout-minutes: 360 id: build run: | + sudo apt-get install -y rename chmod +x build.sh ./build.sh ${{ github.event.comment.body }} FETCHED=$(ls | grep fetched) diff --git a/build.sh b/build.sh index cd83fef..98a6437 100755 --- a/build.sh +++ b/build.sh @@ -154,6 +154,8 @@ else NPROC=$(nproc) fi +NPROC=$(($NPROC+1)) + docker buildx build --progress plain -f Dockerfile.build \ --platform $platform \ --build-arg PKG_NODE="$pkg_node" \