Skip to content
Snippets Groups Projects
Commit 5e374a07 authored by Tobias Kregelin's avatar Tobias Kregelin
Browse files

Finish first build

- add artifacts and expire_in for build job
- add input based artifact path (output_file_name)
- fix errors and remove tests from bash script
parent 758f54d1
No related branches found
No related tags found
No related merge requests found
Pipeline #65991 passed
......@@ -22,6 +22,9 @@ spec:
type: array
default: []
description: 'Array of files to be included in build. Defaults to all .asm and .c files'
output_file_name:
default: 'my_program'
description: 'Name of the generated output file'
---
......@@ -45,6 +48,8 @@ variables:
.base_container:
#Base Container loading the defined Docker Image.
image: $CONTAINER_IMAGE
default:
before_script:
- |
format_build_start() {
......@@ -60,12 +65,6 @@ variables:
echo -e $f_rainbow_test_start
echo -e $f_line_white
}
- |
run_tests() {
echo -e "$[[ inputs.program-files ]][1]" #rn used for testing only
}
#TODO run_tests function
#Build default
build-latest:
......@@ -164,8 +163,9 @@ build-latest:
done
fi
- ls
- ld *.o -o my_program
- gcc *.o -o my_program_c
- ld *.o -o '$[[ inputs.output_file_name ]]'
- format_build_end
- run_tests
\ No newline at end of file
artifacts:
paths:
- $[[ inputs.output_file_name ]]
expire_in: 1 day
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment