mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-08-31 22:21:13 +02:00
Fix script
Fix script Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
parent
4d683ce967
commit
a4f458751c
1 changed files with 4 additions and 6 deletions
10
.github/workflows/dockcross.yml
vendored
10
.github/workflows/dockcross.yml
vendored
|
@ -67,18 +67,16 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: "Install dependency"
|
|
||||||
run: sudo apt-get update && sudo apt-get install -y ninja-build
|
|
||||||
- name: "Pull ${{ matrix.image_name }}..."
|
- name: "Pull ${{ matrix.image_name }}..."
|
||||||
run: docker pull dockcross/${{ matrix.image_name }}
|
run: docker pull dockcross/${{ matrix.image_name }}
|
||||||
- name: "Make script"
|
- name: "Make script"
|
||||||
run: docker run --rm dockcross/${{ matrix.image_name }} > ./dockcross-${{ matrix.image_name }}
|
run: docker run --rm dockcross/${{ matrix.image_name }} > ./dockcross-${{ matrix.image_name }}
|
||||||
- name: "Config CMakefile"
|
- name: "Config CMakefile"
|
||||||
run: cmake -B dockcross-${{ matrix.image_name }} -S . -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
|
run: ./dockcross-${{ matrix.image_name }} cmake -B dockcross-${{ matrix.image_name }} -S . -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
|
||||||
- name: "Build"
|
- name: "Build"
|
||||||
run: ninja -C dockcross-${{ matrix.image_name }}
|
run: ./dockcross-${{ matrix.image_name }} ninja -C dockcross-${{ matrix.image_name }}
|
||||||
- name: "Test"
|
- name: "Test"
|
||||||
run: |
|
run: |
|
||||||
cd dockcross-${{ matrix.image_name }}
|
cd dockcross-${{ matrix.image_name }}
|
||||||
ctest --build-config ${{ matrix.build_type }}
|
./dockcross-${{ matrix.image_name }} ctest --build-config ${{ matrix.build_type }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue