Skip to content

Commit

Permalink
Updated test example
Browse files Browse the repository at this point in the history
  • Loading branch information
soumeh01 committed Nov 18, 2024
1 parent dde63dd commit 9d15fc7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion test/data/executes/project/project.cproject.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ project:
- file: ./source1.c

executes:
- execute: Sign Artifact
- execute: Sign_Artifact
run: ${CMAKE_COMMAND} -DINPUT=$input$ -DOUTPUT=$output$ -P $input(0)$
input:
- $SolutionDir()$/script/sign.cmake
Expand Down
19 changes: 9 additions & 10 deletions test/data/executes/solution.csolution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ solution:
device: ARMCM0

build-types:
- type: Debug
- type: Release

compiler: AC6
Expand All @@ -21,26 +20,26 @@ solution:
- project: project/project.cproject.yml

executes:
- execute: Generate Project Sources
- execute: Generate_Project_Sources
run: ${CMAKE_COMMAND} -DINPUT_1=$input(1)$ -DOUTPUT_0=$output(0)$ -DOUTPUT_1=$output(1)$ -P $input(0)$
input:
- script/generate-sources.cmake
- $ProjectDir(project)$/source.c.template
- $ProjectDir()$/source.c.template
output:
- $ProjectDir(project)$/source0.c
- $ProjectDir(project)$/source1.c
- execute: Archive Artifacts
- $ProjectDir()$/source0.c
- $ProjectDir()$/source1.c
- execute: Archive_Artifacts
run: ${CMAKE_COMMAND} -DINPUT=$input$ -DOUTPUT=$output$ -P $input(0)$
input:
- script/archive.cmake
- $elf(project.Release+ARMCM0)$
- $elf(project.Release+ARMCM0)$.signed
- $elf()$
- $elf()$.signed
output:
- $SolutionDir()$/artifacts.zip
- execute: Run Always
- execute: Run_Always
run: ${CMAKE_COMMAND} -E echo "Execute Run Always"
always:
- execute: Run After Archiving
- execute: Run_After_Archiving
run: ${CMAKE_COMMAND} -E echo "Archive has been updated"
input:
- $SolutionDir()$/artifacts.zip

0 comments on commit 9d15fc7

Please sign in to comment.