Skip to content

Commit

Permalink
ci: cleanup toolchain workflows
Browse files Browse the repository at this point in the history
* add name
* add env and devel stage
  • Loading branch information
Mizux committed Jul 5, 2024
1 parent 55ec7a8 commit 4379a5a
Show file tree
Hide file tree
Showing 7 changed files with 110 additions and 88 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/aarch64_toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,29 @@ name: aarch64 Toolchain

on: [push, pull_request, workflow_dispatch]

# Building using the github runner environement directly.
jobs:
# Building using the github runner environement directly.
aarch64:
runs-on: ubuntu-latest
strategy:
matrix:
targets: [
# https://go.dev/doc/install/source#environment
[arm64], # OCI alias
[aarch64-linux-gnu], # linaro
[aarch64_be-linux-gnu], # linaro
[aarch64], # bootlin
[aarch64be] # bootlin
arm64, # alias to aarch64
aarch64-linux-gnu, # linaro
aarch64_be-linux-gnu, # linaro
aarch64, # bootlin
aarch64be # bootlin
]
fail-fast: false
env:
TARGET: ${{ matrix.targets[0] }}
name: Linux • Toolchain ${{ matrix.targets }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: make --directory=ci ${TARGET}_build
- name: Test
run: make --directory=ci ${TARGET}_test
- name: Build env stage
run: make --directory=ci ${{ matrix.targets }}_env
- name: Build devel stage
run: make --directory=ci ${{ matrix.targets }}_devel
- name: Build build stage
run: make --directory=ci ${{ matrix.targets }}_build
- name: Build Test stage
run: make --directory=ci ${{ matrix.targets }}_test
29 changes: 16 additions & 13 deletions .github/workflows/arm_toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,29 @@ name: arm Toolchain

on: [push, pull_request, workflow_dispatch]

# Building using the github runner environement directly.
jobs:
# Building using the github runner environement directly.
arm:
runs-on: ubuntu-latest
strategy:
matrix:
targets: [
# https://go.dev/doc/install/source#environment
[arm-linux-gnueabihf],
[armv8l-linux-gnueabihf],
[arm-linux-gnueabi],
[armeb-linux-gnueabihf],
[armeb-linux-gnueabi]
arm-linux-gnueabihf, # linaro
armv8l-linux-gnueabihf, # linaro
arm-linux-gnueabi, # linaro
armeb-linux-gnueabihf, # linaro
armeb-linux-gnueabi # linaro
]
fail-fast: false
env:
TARGET: ${{ matrix.targets[0] }}
name: Linux • Toolchain ${{ matrix.targets }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: make --directory=ci ${TARGET}_build
- name: Test
run: make --directory=ci ${TARGET}_test
- name: Build env stage
run: make --directory=ci ${{ matrix.targets }}_env
- name: Build devel stage
run: make --directory=ci ${{ matrix.targets }}_devel
- name: Build build stage
run: make --directory=ci ${{ matrix.targets }}_build
- name: Build Test stage
run: make --directory=ci ${{ matrix.targets }}_test
31 changes: 17 additions & 14 deletions .github/workflows/mips64_toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,30 @@ name: mips64 Toolchain

on: [push, pull_request, workflow_dispatch]

# Building using the github runner environement directly.
jobs:
# Building using the github runner environement directly.
mips64:
runs-on: ubuntu-latest
strategy:
matrix:
targets: [
# https://go.dev/doc/install/source#environment
[mips64], # OCI alias
[mips64le], # OCI alias
[mips64-r6],
[mips64el-r6],
[mips64-r2],
[mips64el-r2]
mips64, # alias to mips64-r6
mips64le, # alias to mips64el-r6
mips64-r6, # codescape
mips64el-r6, # codescape
mips64-r2, # codescape
mips64el-r2 # codescape
]
fail-fast: false
env:
TARGET: ${{ matrix.targets[0] }}
name: Linux • Toolchain ${{ matrix.targets }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: make --directory=ci ${TARGET}_build
- name: Test
run: make --directory=ci ${TARGET}_test
- name: Build env stage
run: make --directory=ci ${{ matrix.targets }}_env
- name: Build devel stage
run: make --directory=ci ${{ matrix.targets }}_devel
- name: Build build stage
run: make --directory=ci ${{ matrix.targets }}_build
- name: Build Test stage
run: make --directory=ci ${{ matrix.targets }}_test
31 changes: 17 additions & 14 deletions .github/workflows/mips_toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,30 @@ name: mips Toolchain

on: [push, pull_request, workflow_dispatch]

# Building using the github runner environement directly.
jobs:
# Building using the github runner environement directly.
mips:
runs-on: ubuntu-latest
strategy:
matrix:
targets: [
# https://go.dev/doc/install/source#environment
[mips], # OCI alias
[mipsle], # OCI alias
[mips32-r6],
[mips32el-r6],
[mips32-r2],
[mips32el-r2],
mips, # alias to mips32-r6
mipsle, # alias to mips32el-r6
mips32-r6, # codespace
mips32el-r6, # codespace
mips32-r2, # codespace
mips32el-r2, # codespace
]
fail-fast: false
env:
TARGET: ${{ matrix.targets[0] }}
name: Linux • Toolchain ${{ matrix.targets }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: make --directory=ci ${TARGET}_build
- name: Test
run: make --directory=ci ${TARGET}_test
- name: Build env stage
run: make --directory=ci ${{ matrix.targets }}_env
- name: Build devel stage
run: make --directory=ci ${{ matrix.targets }}_devel
- name: Build build stage
run: make --directory=ci ${{ matrix.targets }}_build
- name: Build Test stage
run: make --directory=ci ${{ matrix.targets }}_test
34 changes: 19 additions & 15 deletions .github/workflows/powerpc_toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,32 @@ name: powerpc Toolchain

on: [push, pull_request, workflow_dispatch]

# Building using the github runner environement directly.
jobs:
# Building using the github runner environement directly.
powerpc:
runs-on: ubuntu-latest
strategy:
matrix:
targets: [
# https://go.dev/doc/install/source#environment
[ppc], # alias
[ppc-440fp],
# [ppc-e500mc], # TODO(mizux) To fix
[ppc64], # OCI alias
[ppc64le], # OCI alias
[ppc64-power8],
[ppc64le-power8],
ppc, # alias to ppc-440fp
ppc-440fp, # bootlin
# [ppc-e500mc], # bootlin TODO(mizux) To fix

ppc64, # alias to ppc64-power8
ppc64le, # alias ppc64le-power8
ppc64-power8, # bootlin
ppc64le-power8, # bootlin
]
fail-fast: false
env:
TARGET: ${{ matrix.targets[0] }}
name: Linux • Toolchain ${{ matrix.targets }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: make --directory=ci ${TARGET}_build
- name: Test
run: make --directory=ci ${TARGET}_test
- name: Build env stage
run: make --directory=ci ${{ matrix.targets }}_env
- name: Build devel stage
run: make --directory=ci ${{ matrix.targets }}_devel
- name: Build build stage
run: make --directory=ci ${{ matrix.targets }}_build
- name: Build Test stage
run: make --directory=ci ${{ matrix.targets }}_test
21 changes: 12 additions & 9 deletions .github/workflows/riscv64_toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,25 @@ name: riscv64 Toolchain

on: [push, pull_request, workflow_dispatch]

# Building using the github runner environement directly.
jobs:
# Building using the github runner environement directly.
riscv64:
runs-on: ubuntu-latest
strategy:
matrix:
targets: [
# https://go.dev/doc/install/source#environment
[riscv64], # bootlin
riscv64, # bootlin
]
fail-fast: false
env:
TARGET: ${{ matrix.targets[0] }}
name: Linux • Toolchain ${{ matrix.targets }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: make --directory=ci ${TARGET}_build
- name: Test
run: make --directory=ci ${TARGET}_test
- name: Build env stage
run: make --directory=ci ${{ matrix.targets }}_env
- name: Build devel stage
run: make --directory=ci ${{ matrix.targets }}_devel
- name: Build build stage
run: make --directory=ci ${{ matrix.targets }}_build
- name: Build Test stage
run: make --directory=ci ${{ matrix.targets }}_test
23 changes: 13 additions & 10 deletions .github/workflows/s390x_toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,25 @@ name: s390x Toolchain

on: [push, pull_request, workflow_dispatch]

# Building using the github runner environement directly.
jobs:
# Building using the github runner environement directly.
powerpc:
runs-on: ubuntu-latest
s390x:
strategy:
matrix:
targets: [
# https://go.dev/doc/install/source#environment
[s390x],
s390x, # bootlin
]
fail-fast: false
env:
TARGET: ${{ matrix.targets[0] }}
name: Linux • Toolchain ${{ matrix.targets }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: make --directory=ci ${TARGET}_build
- name: Test
run: make --directory=ci ${TARGET}_test
- name: Build env stage
run: make --directory=ci ${{ matrix.targets }}_env
- name: Build devel stage
run: make --directory=ci ${{ matrix.targets }}_devel
- name: Build build stage
run: make --directory=ci ${{ matrix.targets }}_build
- name: Build Test stage
run: make --directory=ci ${{ matrix.targets }}_test

0 comments on commit 4379a5a

Please sign in to comment.