File tree 32 files changed +143
-544
lines changed
32 files changed +143
-544
lines changed Original file line number Diff line number Diff line change 12
12
name : build_linux_assembly
13
13
runs-on : ubuntu-latest
14
14
container :
15
- image : ghcr.io/lasp/adamant:example-latest
16
- env :
17
- INSTALL_DIR : /home/user/env
18
- EXAMPLE_DIR : ${{ github.workspace }}/adamant_example
19
- ADAMANT_DIR : ${{ github.workspace }}/adamant
15
+ image : ghcr.io/lasp/adamant_example:latest
20
16
steps :
21
17
- run : echo "Starting job triggered by a ${{ github.event_name }} event on a ${{ runner.os }} server hosted by GitHub."
22
18
- run : echo "Checking out ${{ github.repository }} on branch ${{ github.ref }}."
31
27
set-safe-directory : true
32
28
repository : lasp/adamant
33
29
path : adamant
34
- - name : Get Adamant alire dependencies
35
- run : alr -n build --release && alr -n toolchain --select gnat_native && alr -n toolchain --select gprbuild
36
- working-directory : ${{ env.ADAMANT_DIR }}
37
30
- name : Build the Linux binary
38
- run : bash adamant_example/docker/ env/github_run.sh "redo adamant_example/src/assembly/linux/main/build/bin/Linux/main.elf"
31
+ run : bash adamant_example/env/github_run.sh "redo adamant_example/src/assembly/linux/main/build/bin/Linux/main.elf"
39
32
- name : Archive Linux binary
40
33
uses : actions/upload-artifact@v3
41
34
with :
Original file line number Diff line number Diff line change 12
12
name : build_pico_assembly
13
13
runs-on : ubuntu-latest
14
14
container :
15
- image : ghcr.io/lasp/adamant:example-latest
16
- env :
17
- INSTALL_DIR : /home/user/env
18
- EXAMPLE_DIR : ${{ github.workspace }}/adamant_example
19
- ADAMANT_DIR : ${{ github.workspace }}/adamant
15
+ image : ghcr.io/lasp/adamant_example:latest
20
16
steps :
21
17
- run : echo "Starting job triggered by a ${{ github.event_name }} event on a ${{ runner.os }} server hosted by GitHub."
22
18
- run : echo "Checking out ${{ github.repository }} on branch ${{ github.ref }}."
31
27
set-safe-directory : true
32
28
repository : lasp/adamant
33
29
path : adamant
34
- - name : Get Adamant alire dependencies
35
- run : alr -n build --release && alr -n toolchain --select gnat_native && alr -n toolchain --select gprbuild
36
- working-directory : ${{ env.ADAMANT_DIR }}
37
- - name : Get example alire dependencies
38
- run : alr -n build --release
39
- working-directory : ${{ env.EXAMPLE_DIR }}
40
30
- name : Build the Pico binary
41
- run : bash adamant_example/docker/ env/github_run.sh "redo adamant_example/src/assembly/pico/main/build/bin/Pico/main.uf2"
31
+ run : bash adamant_example/env/github_run.sh "redo adamant_example/src/assembly/pico/main/build/bin/Pico/main.uf2"
42
32
- name : Archive Pico binary
43
33
uses : actions/upload-artifact@v3
44
34
with :
Original file line number Diff line number Diff line change 12
12
name : test_all
13
13
runs-on : ubuntu-latest
14
14
container :
15
- image : ghcr.io/lasp/adamant:example-latest
16
- env :
17
- INSTALL_DIR : /home/user/env
18
- EXAMPLE_DIR : ${{ github.workspace }}/adamant_example
19
- ADAMANT_DIR : ${{ github.workspace }}/adamant
15
+ image : ghcr.io/lasp/adamant_example:latest
20
16
steps :
21
17
- run : echo "Starting job triggered by a ${{ github.event_name }} event on a ${{ runner.os }} server hosted by GitHub."
22
18
- run : echo "Checking out ${{ github.repository }} on branch ${{ github.ref }}."
31
27
set-safe-directory : true
32
28
repository : lasp/adamant
33
29
path : adamant
34
- - name : Get Adamant alire dependencies
35
- run : alr -n build --release && alr -n toolchain --select gnat_native && alr -n toolchain --select gprbuild
36
- working-directory : ${{ env.ADAMANT_DIR }}
37
- - name : Get example alire dependencies
38
- run : alr -n build --release
39
- working-directory : ${{ env.EXAMPLE_DIR }}
40
30
- name : Build all documentation
41
- run : bash adamant_example/docker/ env/github_run.sh "redo adamant_example/publish"
31
+ run : bash adamant_example/env/github_run.sh "redo adamant_example/publish"
42
32
- run : echo "Finished with status - ${{ job.status }}."
43
33
if : always()
Original file line number Diff line number Diff line change 12
12
name : style_all
13
13
runs-on : ubuntu-latest
14
14
container :
15
- image : ghcr.io/lasp/adamant:example-latest
16
- env :
17
- INSTALL_DIR : /home/user/env
18
- EXAMPLE_DIR : ${{ github.workspace }}/adamant_example
19
- ADAMANT_DIR : ${{ github.workspace }}/adamant
15
+ image : ghcr.io/lasp/adamant_example:latest
20
16
steps :
21
17
- run : echo "Starting job triggered by a ${{ github.event_name }} event on a ${{ runner.os }} server hosted by GitHub."
22
18
- run : echo "Checking out ${{ github.repository }} on branch ${{ github.ref }}."
31
27
set-safe-directory : true
32
28
repository : lasp/adamant
33
29
path : adamant
34
- - name : Get Adamant alire dependencies
35
- run : alr -n build --release && alr -n toolchain --select gnat_native && alr -n toolchain --select gprbuild
36
- working-directory : ${{ env.ADAMANT_DIR }}
37
- - name : Get example alire dependencies
38
- run : alr -n build --release
39
- working-directory : ${{ env.EXAMPLE_DIR }}
40
30
- name : Check all style
41
- run : bash adamant_example/docker/ env/github_run.sh "redo adamant_example/style_all"
31
+ run : bash adamant_example/env/github_run.sh "redo adamant_example/style_all"
42
32
- name : Archive logs for failed style checks
43
33
if : always()
44
34
uses : actions/upload-artifact@v3
Original file line number Diff line number Diff line change 12
12
name : test_all
13
13
runs-on : ubuntu-latest
14
14
container :
15
- image : ghcr.io/lasp/adamant:example-latest
16
- env :
17
- INSTALL_DIR : /home/user/env
18
- EXAMPLE_DIR : ${{ github.workspace }}/adamant_example
19
- ADAMANT_DIR : ${{ github.workspace }}/adamant
15
+ image : ghcr.io/lasp/adamant_example:latest
20
16
steps :
21
17
- run : echo "Starting job triggered by a ${{ github.event_name }} event on a ${{ runner.os }} server hosted by GitHub."
22
18
- run : echo "Checking out ${{ github.repository }} on branch ${{ github.ref }}."
31
27
set-safe-directory : true
32
28
repository : lasp/adamant
33
29
path : adamant
34
- - name : Get Adamant alire dependencies
35
- run : alr -n build --release && alr -n toolchain --select gnat_native && alr -n toolchain --select gprbuild
36
- working-directory : ${{ env.ADAMANT_DIR }}
37
- - name : Get example alire dependencies
38
- run : alr -n build --release
39
- working-directory : ${{ env.EXAMPLE_DIR }}
40
30
- name : Run all unit tests
41
- run : bash adamant_example/docker/ env/github_run.sh "redo adamant_example/test_all"
31
+ run : bash adamant_example/env/github_run.sh "redo adamant_example/test_all"
42
32
- name : Archive logs for failed unit tests
43
33
if : always()
44
34
uses : actions/upload-artifact@v3
Original file line number Diff line number Diff line change 1
- #!/usr/bin/env python
1
+ #!/usr/bin/env python3
2
2
3
+ try :
4
+ from util import performance
5
+ except ModuleNotFoundError :
6
+ import sys
7
+ sys .stderr .write ("Adamant environment not set up! Run:\n source ~/adamant/env/activate\n " )
8
+ sys .exit (1 )
3
9
# Optimize python path:
4
- from util import performance
5
10
performance .optimize_path ()
6
11
7
12
# Imports
Original file line number Diff line number Diff line change 1
- #!/usr/bin/env python
1
+ #!/usr/bin/env python3
2
2
3
+ try :
4
+ from util import performance
5
+ except ModuleNotFoundError :
6
+ import sys
7
+ sys .stderr .write ("Adamant environment not set up! Run:\n source ~/adamant/env/activate\n " )
8
+ sys .exit (1 )
3
9
# Optimize python path:
4
- from util import performance
5
10
performance .optimize_path ()
6
11
7
12
# Imports
@@ -35,6 +40,8 @@ if __name__ == "__main__":
35
40
from rules .build_clean import build_clean as rule_cls
36
41
elif base == "clean_all" :
37
42
from rules .build_clean_all import build_clean_all as rule_cls
43
+ elif base == "clear_cache" :
44
+ from rules .build_clear_cache import build_clear_cache as rule_cls
38
45
elif base == "what" :
39
46
from rules .build_what import build_what as rule_cls
40
47
elif base == "prove" :
Original file line number Diff line number Diff line change 1
- #!/usr/bin/env python
1
+ #!/usr/bin/env python3
2
2
3
+ try :
4
+ from util import performance
5
+ except ModuleNotFoundError :
6
+ import sys
7
+ sys .stderr .write ("Adamant environment not set up! Run:\n source ~/adamant/env/activate\n " )
8
+ sys .exit (1 )
3
9
# Optimize python path:
4
- from util import performance
5
10
performance .optimize_path ()
6
11
7
12
# Imports
Original file line number Diff line number Diff line change 1
- #!/usr/bin/env python
1
+ #!/usr/bin/env python3
2
2
3
+ try :
4
+ from util import performance
5
+ except ModuleNotFoundError :
6
+ import sys
7
+ sys .stderr .write ("Adamant environment not set up! Run:\n source ~/adamant/env/activate\n " )
8
+ sys .exit (1 )
3
9
# Optimize python path:
4
- from util import performance
5
10
performance .optimize_path ()
6
11
7
12
# Imports
Original file line number Diff line number Diff line change 1
- #!/usr/bin/env python
1
+ #!/usr/bin/env python3
2
2
3
+ try :
4
+ from util import performance
5
+ except ModuleNotFoundError :
6
+ import sys
7
+ sys .stderr .write ("Adamant environment not set up! Run:\n source ~/adamant/env/activate\n " )
8
+ sys .exit (1 )
3
9
# Optimize python path:
4
- from util import performance
5
10
performance .optimize_path ()
6
11
7
12
# Imports
Original file line number Diff line number Diff line change 1
- #!/usr/bin/env python
1
+ #!/usr/bin/env python3
2
2
3
+ try :
4
+ from util import performance
5
+ except ModuleNotFoundError :
6
+ import sys
7
+ sys .stderr .write ("Adamant environment not set up! Run:\n source ~/adamant/env/activate\n " )
8
+ sys .exit (1 )
3
9
# Optimize python path:
4
- from util import performance
5
10
performance .optimize_path ()
6
11
7
12
# Imports
Original file line number Diff line number Diff line change 1
- #!/usr/bin/env python
1
+ #!/usr/bin/env python3
2
2
3
+ try :
4
+ from util import performance
5
+ except ModuleNotFoundError :
6
+ import sys
7
+ sys .stderr .write ("Adamant environment not set up! Run:\n source ~/adamant/env/activate\n " )
8
+ sys .exit (1 )
3
9
# Optimize python path:
4
- from util import performance
5
10
performance .optimize_path ()
6
11
7
12
# Imports
Original file line number Diff line number Diff line change 1
- #!/usr/bin/env python
1
+ #!/usr/bin/env python3
2
2
3
+ try :
4
+ from util import performance
5
+ except ModuleNotFoundError :
6
+ import sys
7
+ sys .stderr .write ("Adamant environment not set up! Run:\n source ~/adamant/env/activate\n " )
8
+ sys .exit (1 )
3
9
# Optimize python path:
4
- from util import performance
5
10
performance .optimize_path ()
6
11
7
12
# Imports
Original file line number Diff line number Diff line change 1
- #!/usr/bin/env python
1
+ #!/usr/bin/env python3
2
2
3
+ try :
4
+ from util import performance
5
+ except ModuleNotFoundError :
6
+ import sys
7
+ sys .stderr .write ("Adamant environment not set up! Run:\n source ~/adamant/env/activate\n " )
8
+ sys .exit (1 )
3
9
# Optimize python path:
4
- from util import performance
5
10
performance .optimize_path ()
6
11
7
12
# Imports
You can’t perform that action at this time.
0 commit comments