Skip to content

Commit 914f0e6

Browse files
authored
🚀 run builds on github action runner (#13)
* 🚀 run builds on github action runner * 🐛 fix: workflow syntax
1 parent adbdbd4 commit 914f0e6

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,18 @@ on:
66

77
jobs:
88
apk:
9-
runs-on: self-hosted
10-
timeout-minutes: 3000
11-
if: github.actor == 'robertsLando' && github.event.issue.url == 'https://api.github.com/repos/robertsLando/pkg-binaries/issues/5'
9+
runs-on: ubuntu-latest
10+
timeout-minutes: 360
11+
if: (github.actor == 'robertsLando' || github.actor == 'n1ru4l') && github.event.issue.url == 'https://api.github.com/repos/robertsLando/pkg-binaries/issues/5'
1212
steps:
1313
- uses: actions/checkout@v2
1414
- uses: crazy-max/ghaction-docker-buildx@v1
1515

1616
- name: "Build ${{ github.event.comment.body }}"
17-
timeout-minutes: 3000
17+
timeout-minutes: 360
1818
id: build
1919
run: |
20+
sudo apt-get install -y rename
2021
chmod +x build.sh
2122
./build.sh ${{ github.event.comment.body }}
2223
FETCHED=$(ls | grep fetched)

build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ else
154154
NPROC=$(nproc)
155155
fi
156156

157+
NPROC=$(($NPROC+1))
158+
157159
docker buildx build --progress plain -f Dockerfile.build \
158160
--platform $platform \
159161
--build-arg PKG_NODE="$pkg_node" \

0 commit comments

Comments
 (0)