-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split up utility targets from main dockerfile
We can not use bake with linked targets to split up ld, sdk-extras and llvm in own subdirectories. Signed-off-by: Tonis Tiigi <[email protected]>
- Loading branch information
1 parent
ebe730a
commit c3679c7
Showing
40 changed files
with
508 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
name: ld | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- 'master' | ||
tags: | ||
- 'v*' | ||
paths: | ||
- 'src/ld/**' | ||
pull_request: | ||
branches: | ||
- 'master' | ||
paths: | ||
- 'src/ld/**' | ||
|
||
jobs: | ||
ld64: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- | ||
name: Build | ||
uses: docker/bake-action@v2 | ||
with: | ||
files: | | ||
./docker-bake.hcl | ||
targets: ld64-tgz | ||
|
||
binutils: | ||
runs-on: ubuntu-latest | ||
continue-on-error: ${{ matrix.allow-failure }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- target: linux-arm64 | ||
- target: linux-amd64 | ||
- target: linux-armv7 | ||
- target: linux-armv6 | ||
- target: linux-ppc64le | ||
- target: linux-386 | ||
- target: linux-riscv64 | ||
- target: linux-s390x | ||
- target: windows-amd64 | ||
- target: windows-386 | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- | ||
name: Build | ||
uses: docker/bake-action@v2 | ||
with: | ||
targets: binutils-${{ matrix.target }}-alpine | ||
|
||
ld: | ||
runs-on: ubuntu-latest | ||
continue-on-error: ${{ matrix.allow-failure }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- target: linux-arm64 | ||
- target: linux-amd64 | ||
- target: linux-armv7 | ||
- target: linux-armv6 | ||
- target: linux-ppc64le | ||
- target: linux-386 | ||
- target: linux-riscv64 | ||
- target: linux-s390x | ||
- target: windows-amd64 | ||
- target: windows-386 | ||
|
||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- | ||
name: Build | ||
uses: docker/bake-action@v2 | ||
with: | ||
targets: ld-${{ matrix.target }}-tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: llvm | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- "master" | ||
tags: | ||
- "v*" | ||
paths: | ||
- "src/llvm/**" | ||
pull_request: | ||
branches: | ||
- "master" | ||
paths: | ||
- "src/llvm/**" | ||
|
||
jobs: | ||
compiler-rt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Build | ||
uses: docker/bake-action@v2 | ||
with: | ||
files: | | ||
./docker-bake.hcl | ||
targets: compiler-rt | ||
libcxx: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Build | ||
uses: docker/bake-action@v2 | ||
with: | ||
files: | | ||
./docker-bake.hcl | ||
targets: compiler-rt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: sdk-extras | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- "master" | ||
tags: | ||
- "v*" | ||
paths: | ||
- "src/sdk-extras/**" | ||
pull_request: | ||
branches: | ||
- "master" | ||
paths: | ||
- "src/sdk-extras/**" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Build | ||
uses: docker/bake-action@v2 | ||
with: | ||
files: | | ||
./docker-bake.hcl | ||
targets: sdk-extras |
Oops, something went wrong.