Skip to content

Commit

Permalink
🚀 run builds on github action runner (#13)
Browse files Browse the repository at this point in the history
* 🚀 run builds on github action runner

* 🐛 fix: workflow syntax
  • Loading branch information
n1ru4l authored Aug 25, 2020
1 parent adbdbd4 commit 914f0e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down

0 comments on commit 914f0e6

Please sign in to comment.