|
| 1 | +# Copyright 2024 - 2025 Khalil Estell and the libhal contributors |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +name: 🚀 Deploy 🔧 GCC 14 |
| 16 | + |
| 17 | +on: |
| 18 | + workflow_dispatch: |
| 19 | + workflow_call: |
| 20 | + inputs: |
| 21 | + upload: |
| 22 | + type: boolean |
| 23 | + default: true |
| 24 | + version: |
| 25 | + type: string |
| 26 | + default: "14" |
| 27 | + |
| 28 | +jobs: |
| 29 | + # Native compilation tests |
| 30 | + verify-linux-x86_64: |
| 31 | + uses: ./.github/workflows/verify.yml |
| 32 | + with: |
| 33 | + display_name: Linux x86_64 |
| 34 | + version: ${{ inputs.version }} |
| 35 | + os: ubuntu-24.04 |
| 36 | + |
| 37 | + verify-linux-arm: |
| 38 | + uses: ./.github/workflows/verify.yml |
| 39 | + with: |
| 40 | + display_name: Linux ARM |
| 41 | + version: ${{ inputs.version }} |
| 42 | + os: ubuntu-24.04-arm |
| 43 | + |
| 44 | + verify-windows-x86_64: |
| 45 | + uses: ./.github/workflows/verify.yml |
| 46 | + with: |
| 47 | + display_name: Windows x86_64 |
| 48 | + version: ${{ inputs.version }} |
| 49 | + os: windows-latest |
| 50 | + |
| 51 | + # ARM Cortex-M cross-compilation tests |
| 52 | + verify-linux-x86_64-cortex-m4f: |
| 53 | + uses: ./.github/workflows/verify.yml |
| 54 | + with: |
| 55 | + display_name: Linux x86_64 → Cortex-M4F |
| 56 | + version: ${{ inputs.version }} |
| 57 | + os: ubuntu-24.04 |
| 58 | + host_profile: -pr:h cortex-m4f |
| 59 | + |
| 60 | + verify-linux-arm-cortex-m4: |
| 61 | + uses: ./.github/workflows/verify.yml |
| 62 | + with: |
| 63 | + display_name: Linux ARM → Cortex-M4 |
| 64 | + version: ${{ inputs.version }} |
| 65 | + os: ubuntu-24.04-arm |
| 66 | + host_profile: -pr:h cortex-m4 |
| 67 | + |
| 68 | + verify-windows-x86_64-cortex-m33f: |
| 69 | + uses: ./.github/workflows/verify.yml |
| 70 | + with: |
| 71 | + display_name: Windows x86_64 → Cortex-M33F |
| 72 | + version: ${{ inputs.version }} |
| 73 | + os: windows-latest |
| 74 | + host_profile: -pr:h cortex-m33f |
| 75 | + |
| 76 | + upload-package: |
| 77 | + needs: |
| 78 | + - verify-linux-x86_64 |
| 79 | + - verify-linux-arm |
| 80 | + - verify-windows-x86_64 |
| 81 | + - verify-linux-x86_64-cortex-m4f |
| 82 | + - verify-linux-arm-cortex-m4 |
| 83 | + - verify-windows-x86_64-cortex-m33f |
| 84 | + if: ${{ startsWith(github.ref, 'refs/tags/') && inputs.upload == true }} |
| 85 | + uses: ./.github/workflows/upload.yml |
| 86 | + secrets: inherit |
| 87 | + with: |
| 88 | + version: ${{ inputs.version }} |
0 commit comments