Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP Github Workflows #103

Merged
merged 1 commit into from
Nov 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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