Skip to content

Commit

Permalink
Add automated workflow to build CFR24 on PR into master
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLafleur committed Nov 24, 2024
1 parent 2e9d2b1 commit de4c753
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/cfr24.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 'Build entire platform: CFR24'

on:
pull_request:
branches: [ master ]

jobs:
cfr24:
runs-on: self-hosted
container:
image: docker://ghcr.io/concordia-fsae/containers/ubuntu-noble-lts:v1.0.0
steps:
- 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
5 changes: 4 additions & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ from oyaml import safe_load

# create a global environment which all targets can start from
GlobalEnv = Environment(REPO_ROOT_DIR=Dir("#"), tools=[])
GlobalEnv["ENV"]["TERM"] = environ["TERM"]
try:
GlobalEnv["ENV"]["TERM"] = environ["TERM"]
except Exception:
print("No terminal environment specified...")

# add option to choose target or platforam
AddOption("--targets", dest="targets", type="string", action="store")
Expand Down

0 comments on commit de4c753

Please sign in to comment.