mirror of
https://github.com/ohwgiles/laminar.git
synced 2025-06-13 12:54:29 +00:00
Expand hello-world-example for saving compiled binary in the archive
This commit is contained in:
parent
d89f159fca
commit
521257e57a
@ -119,8 +119,17 @@ tar xzf hello-2.10.tar.gz
|
|||||||
cd hello-2.10
|
cd hello-2.10
|
||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
|
|
||||||
|
# save permanently to the job's run archive directory
|
||||||
|
mv ./hello "$ARCHIVE/"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If everything went well, the absolute path to the freshly compiled `hello` binary is `$LAMINAR_HOME/archive/hello/latest/hello`, which prints
|
||||||
|
```
|
||||||
|
Hello, world!
|
||||||
|
```
|
||||||
|
upon execution.
|
||||||
|
|
||||||
Laminar uses your script's exit code to determine whether to mark the run as successful or failed. If your script is written in bash, the [`-e` option](http://tldp.org/LDP/abs/html/options.html) is helpful for this. See also [Exit and Exit Status](http://tldp.org/LDP/abs/html/exit-status.html).
|
Laminar uses your script's exit code to determine whether to mark the run as successful or failed. If your script is written in bash, the [`-e` option](http://tldp.org/LDP/abs/html/options.html) is helpful for this. See also [Exit and Exit Status](http://tldp.org/LDP/abs/html/exit-status.html).
|
||||||
|
|
||||||
Don't forget to mark the script executable:
|
Don't forget to mark the script executable:
|
||||||
|
Loading…
Reference in New Issue
Block a user