27
27
steps :
28
28
- uses : actions/checkout@v2
29
29
- name : Build the container
30
- run : docker build -t ubuntucontainer tss-esapi/tests/ --file tss-esapi/tests/Dockerfile-ubuntu
30
+ run : docker build -t ubuntucontainer tss-esapi/tests/ --file tss-esapi/tests/Dockerfile-ubuntu --target tpm2-tools
31
31
- name : Run the container
32
32
run : docker run -v $(pwd):/tmp/rust-tss-esapi -w /tmp/rust-tss-esapi/tss-esapi --env RUST_TOOLCHAIN_VERSION=1.66.0 ubuntucontainer /tmp/rust-tss-esapi/tss-esapi/tests/all-ubuntu.sh
33
33
# All in one job as I think it is a big overhead to build and run the Docker
@@ -38,19 +38,29 @@ jobs:
38
38
steps :
39
39
- uses : actions/checkout@v2
40
40
- name : Build the container
41
- run : docker build -t ubuntucontainer tss-esapi/tests/ --file tss-esapi/tests/Dockerfile-ubuntu
41
+ run : docker build -t ubuntucontainer tss-esapi/tests/ --file tss-esapi/tests/Dockerfile-ubuntu --target tpm2-tools
42
42
- name : Run the container
43
43
run : docker run -v $(pwd):/tmp/rust-tss-esapi -w /tmp/rust-tss-esapi/tss-esapi ubuntucontainer /tmp/rust-tss-esapi/tss-esapi/tests/all-ubuntu.sh
44
44
- name : Run the cross-compilation script
45
45
run : docker run -v $(pwd):/tmp/rust-tss-esapi -w /tmp/rust-tss-esapi/tss-esapi ubuntucontainer /tmp/rust-tss-esapi/tss-esapi/tests/cross-compile.sh
46
46
47
- tests-ubuntu-v4 :
48
- name : Ubuntu tests on v4.x.y of tpm2-tss
47
+ tests-ubuntu-v4-pkg :
48
+ name : Ubuntu tests on v4.x.y of tpm2-tss libraries found using pkg-config --target tpm2-tools
49
49
runs-on : ubuntu-latest
50
50
steps :
51
51
- uses : actions/checkout@v2
52
52
- name : Build the container
53
- run : docker build -t ubuntucontainer tss-esapi/tests/ --build-arg TPM2_TSS_VERSION=4.0.1 --file tss-esapi/tests/Dockerfile-ubuntu
53
+ run : docker build -t ubuntucontainer tss-esapi/tests/ --build-arg TPM2_TSS_VERSION=4.0.1 --file tss-esapi/tests/Dockerfile-ubuntu --target tpm2-tools
54
+ - name : Run the container
55
+ run : docker run -v $(pwd):/tmp/rust-tss-esapi -w /tmp/rust-tss-esapi/tss-esapi ubuntucontainer /tmp/rust-tss-esapi/tss-esapi/tests/all-ubuntu.sh
56
+
57
+ test-ubuntu-v4-path :
58
+ name : Ubuntu tests on v4.x.y of tpm2-tss libraries found using a path
59
+ runs-on : ubuntu-latest
60
+ steps :
61
+ - uses : actions/checkout@v2
62
+ - name : Build the container
63
+ run : docker build -t ubuntucontainer tss-esapi/tests/ --build-arg TPM2_TSS_VERSION=4.0.1 --file tss-esapi/tests/Dockerfile-ubuntu --target tpm2-tss-install-dir
54
64
- name : Run the container
55
65
run : docker run -v $(pwd):/tmp/rust-tss-esapi -w /tmp/rust-tss-esapi/tss-esapi ubuntucontainer /tmp/rust-tss-esapi/tss-esapi/tests/all-ubuntu.sh
56
66
82
92
steps :
83
93
- uses : actions/checkout@v2
84
94
- name : Build the container
85
- run : docker build -t ubuntucontainer tss-esapi/tests/ --file tss-esapi/tests/Dockerfile-ubuntu
95
+ run : docker build -t ubuntucontainer tss-esapi/tests/ --file tss-esapi/tests/Dockerfile-ubuntu --target tpm2-tools
86
96
- name : Run the tests
87
97
run : docker run -v $(pwd):/tmp/rust-tss-esapi -w /tmp/rust-tss-esapi/tss-esapi ubuntucontainer /tmp/rust-tss-esapi/tss-esapi/tests/valgrind.sh
88
98
93
103
steps :
94
104
- uses : actions/checkout@v2
95
105
- name : Build the container
96
- run : docker build -t ubuntucontainer tss-esapi/tests/ --file tss-esapi/tests/Dockerfile-ubuntu
106
+ run : docker build -t ubuntucontainer tss-esapi/tests/ --file tss-esapi/tests/Dockerfile-ubuntu --target tpm2-tools
97
107
- name : Check documentation
98
108
run : docker run -v $(pwd):/tmp/rust-tss-esapi -w /tmp/rust-tss-esapi/tss-esapi -e RUSTDOCFLAGS="-Dwarnings" ubuntucontainer cargo doc --document-private-items --no-deps
99
109
0 commit comments