@@ -12,45 +12,36 @@ jobs:
1212 # You can convert this to a matrix build if you need cross-platform coverage.
1313 # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
1414 runs-on : ubuntu-latest
15- container : gcc:13
1615
1716 steps :
1817 - uses : actions/checkout@v4
19-
20- - name : Install system dep
21- run : |
22- apt update -y
23- apt install -y cmake
24- apt install -y python3-pip
25- shell : bash
2618
2719 # Update references
2820 - name : Git Sumbodule Update
2921 run : |
30- git config --global --add safe.directory /__w/C2LinuxImplant/C2LinuxImplant
3122 git submodule update --init
32-
23+
3324 - name : Get Conan
34- run : |
35- pip3 install conan --break-system-packages
36- shell : bash
25+ # You may pin to the exact commit or the version.
26+ # uses: turtlebrowser/get-conan@c171f295f3f507360ee018736a6608731aa2109d
27+ uses : turtlebrowser/[email protected] 3728
3829 - name : Create default profile
3930 run : conan profile detect
4031
4132 - name : Configure CMake
42- run : cmake -B /__w/C2LinuxImplant/C2LinuxImplant/ build -DWITH_TESTS=ON -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=/__w/C2LinuxImplant/C2LinuxImplant /conan_provider.cmake
33+ run : cmake -B ${{github.workspace}}/ build -DWITH_TESTS=OFF -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=${{github.workspace}} /conan_provider.cmake
4334
4435 - name : Build
45- run : cmake --build /__w/C2LinuxImplant/C2LinuxImplant /build --config ${{env.BUILD_TYPE}} -j 18
36+ run : cmake --build ${{github.workspace}} /build --config ${{env.BUILD_TYPE}} -j 18
4637
4738 - name : Run unit tests
4839 run : ctest --test-dir build -C Release
4940
5041 - name : Configure CMake like the release
51- run : cmake -B /__w/C2LinuxImplant/C2LinuxImplant/ buildRelease -DWITH_TESTS=OFF -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=/__w/C2LinuxImplant/C2LinuxImplant /conan_provider.cmake
42+ run : cmake -B ${{github.workspace}}/ buildRelease -DWITH_TESTS=OFF -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=${{github.workspace}} /conan_provider.cmake
5243
5344 - name : Build like the release
54- run : cmake --build /__w/C2LinuxImplant/C2LinuxImplant /buildRelease -j 18
45+ run : cmake --build ${{github.workspace}} /buildRelease -j 18
5546
5647
0 commit comments