Skip to content

Commit

Permalink
chore: split up linux builds
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken committed May 24, 2024
1 parent 992cd5a commit d7015ed
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 95 deletions.
23 changes: 0 additions & 23 deletions .github/docker/Dockerfile.win

This file was deleted.

68 changes: 0 additions & 68 deletions .github/scripts/buildx.mjs

This file was deleted.

13 changes: 9 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
name: build

jobs:
macos_windows_builds:
host_builds:
strategy:
matrix:
os: [macos-11, macos-latest, windows-2019]
Expand All @@ -30,10 +30,13 @@ jobs:
retention-days: 1
compression-level: 0

linux_builds:
container_builds:
outputs:
artifact_id: ${{ steps.upload.outputs.artifact-id }}
runs-on: ubuntu-latest
strategy:
matrix:
linux_arch: [linux/s390x, linux/arm64, linux/amd64]
steps:
- uses: actions/checkout@v4

Expand All @@ -44,7 +47,9 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Run Buildx
run: node .github/scripts/buildx.mjs
run: |
docker buildx create --name builder --bootstrap --use
docker buildx build --platform ${{ matrix.linux_arch }} --ouput type=local,dest=./prebuilds,platform-split=false -f ./.github/docker/Dockerfile.glibc .
- id: upload
name: Upload prebuild
Expand All @@ -57,7 +62,7 @@ jobs:
compression-level: 0

collect:
needs: [linux_builds, macos_windows_builds]
needs: [host_builds, container_builds]
runs-on: ubunutu-latest
steps:
- uses: actions/download-artifact@v4
Expand Down

0 comments on commit d7015ed

Please sign in to comment.