Skip to content

Commit

Permalink
Use reusable workflows for platform and targets checks
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlafleur-zip committed Mar 9, 2025
1 parent d320fbc commit cdbc487
Showing 1 changed file with 18 additions and 60 deletions.
78 changes: 18 additions & 60 deletions .github/workflows/standard_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,66 +6,24 @@ on:

jobs:
cfr24:
runs-on: self-hosted
container:
image: docker://ghcr.io/concordia-fsae/containers/ubuntu-noble-lts:v1.0.0
steps:
- name: Clean
uses: AutoModality/action-clean@1077775f5ef0022fc3a9d6f93377921ea3701fa7
- name: Pull Branch
uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: 'true'
submodules: 'recursive'
- name: Execute build for CFR24
run: |
scons --platform=cfr24 -j32 --flashable-bootloader --package
- name: Archive Artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts-cfr24
path: platform-artifacts/
uses: concordia-fsae/firmware/.github/workflows/build.yml@master
with:
build-targets: cfr24
flags: -j32 --flashable-bootloader --package
build-type: platform
artifact-name: artifact-cfr24
cfr25:
runs-on: self-hosted
container:
image: docker://ghcr.io/concordia-fsae/containers/ubuntu-noble-lts:v1.0.0
steps:
- name: Clean
uses: AutoModality/action-clean@1077775f5ef0022fc3a9d6f93377921ea3701fa7
- name: Pull Branch
uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: 'true'
submodules: 'recursive'
- name: Execute build for CFR25
run: |
scons --platform=cfr25 -j32 --flashable-bootloader --package
- name: Archive Artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts-cfr25
path: platform-artifacts/
uses: concordia-fsae/firmware/.github/workflows/build.yml@master
with:
build-targets: cfr25
flags: -j32 --flashable-bootloader --package
build-type: platform
artifact-name: artifact-cfr25
updaters:
runs-on: self-hosted
needs: [ cfr24, cfr25 ]
container:
image: docker://ghcr.io/concordia-fsae/containers/ubuntu-noble-lts:v1.0.0
steps:
- name: Clean
uses: AutoModality/action-clean@1077775f5ef0022fc3a9d6f93377921ea3701fa7
- name: Pull Branch
uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: 'true'
submodules: 'recursive'
- name: Execute build for all bootloader updaters
run: |
scons --targets=bl:1000,1001,1002,1003,1004,1005,1010,1011,1030,1031,1032 -j32 --package
- name: Archive Artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts-bootloader_updater
path: platform-artifacts/
uses: concordia-fsae/firmware/.github/workflows/build.yml@master
with:
build-targets: bl:1000,1001,1002,1003,1004,1005,1010,1011,1030,1031,1032
flags: -j32 --package
build-type: targets
artifact-name: artifact-bootloader-updaters

0 comments on commit cdbc487

Please sign in to comment.