1717 required : false
1818 default : false
1919
20- run-name : CI: Build and test mgconsole
20+ run-name : " CI: Build and test mgconsole"
2121
2222jobs :
2323 build_and_test_ubuntu :
@@ -28,16 +28,19 @@ jobs:
2828 run : |
2929 docker pull memgraph/memgraph:latest
3030 echo "MEMGRAPH_IMAGE=memgraph/memgraph:latest" >> $GITHUB_ENV
31- - uses : actions/checkout@v4
31+
32+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
33+
3234 - name : Install and test mgconsole
3335 run : |
3436 cmake -B build -G Ninja -DMEMGRAPH_USE_DOCKER=ON -DMEMGRAPH_DOCKER_IMAGE=$MEMGRAPH_IMAGE
3537 cmake --build build
3638 sudo cmake --install build
3739 ctest --verbose --test-dir build
40+
3841 - name : Save mgconsole test results
3942 if : always()
40- uses : actions/upload-artifact@v4
43+ uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
4144 with :
4245 name : " mgconsole_ctest.log"
4346 path : build/Testing/Temporary/LastTest.log
5053 shell : msys2 {0}
5154 steps :
5255 - name : Set-up repository
53- uses : actions/checkout@v4
54- - uses : msys2/setup-msys2@v2
56+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
57+
58+ - uses : msys2/setup-msys2@4f806de0a5a7294ffabaff804b38a9b435a73bda # v2.30.0
5559 with :
5660 msystem : MINGW64
5761 update : true
@@ -60,13 +64,15 @@ jobs:
6064 mingw-w64-x86_64-toolchain
6165 mingw-w64-x86_64-cmake
6266 mingw-w64-x86_64-openssl
67+
6368 - name : Build and install mgconsole
6469 run : |
6570 cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release .
6671 cmake --build build --parallel
6772 cmake --install build
73+
6874 - name : Save mgconsole Windows build
69- uses : actions/upload-artifact@v4
75+ uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
7076 with :
7177 name : " mgconsole Windows build"
7278 path : build/src/mgconsole.exe
@@ -76,19 +82,22 @@ jobs:
7682 runs-on : macos-latest
7783 steps :
7884 - name : Set-up repository
79- uses : actions/checkout@v4
85+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8086 # NOTE: CI can't execute end2end tests because there is no way to run
8187 # Memgraph on CI MacOS machines.
88+
8289 - name : Install openssl
8390 run : |
8491 brew update
8592 brew install openssl
93+
8694 - name : Build mgconsole
8795 run : |
8896 cmake -B build -G Ninja -DOPENSSL_ROOT_DIR="$(brew --prefix openssl)" -DCMAKE_BUILD_TYPE=Release .
8997 cmake --build build
98+
9099 - name : Save mgconsole MacOS build
91- uses : actions/upload-artifact@v4
100+ uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
92101 with :
93102 name : " mgconsole MacOS build"
94103 path : build/src/mgconsole
@@ -102,14 +111,14 @@ jobs:
102111 arch : [X64, ARM64]
103112 runs-on : [self-hosted, Linux, "${{ matrix.arch }}" ]
104113 steps :
105- - uses : actions/checkout@v4
114+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
106115
107116 - name : build mgconsole static
108117 run : |
109118 ./build-generic-linux.sh
110119
111120 - name : Save mgconsole static build
112- uses : actions/upload-artifact@v4
121+ uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
113122 with :
114123 name : " mgconsole static Linux build ${{ matrix.arch }}"
115124 path : build/generic/mgconsole
0 commit comments