Skip to content

Commit

Permalink
Update CI workflows to checkout submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
eliaskosunen committed Oct 29, 2023
1 parent 00dc891 commit ab4a158
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- uses: uraimo/run-on-arch-action@v2
name: Build and test
Expand Down Expand Up @@ -70,6 +72,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Create Build Environment
run: cmake -E make_directory ${{ runner.workspace }}/build
Expand All @@ -78,7 +82,7 @@ jobs:
working-directory: ${{ runner.workspace }}/build
shell: bash
run: |
cmake -G "${{ matrix.gen }}" -A ${{ matrix.arch }} -DCMAKE_CROSSCOMPILING=ON -DSCN_CI=ON $GITHUB_WORKSPACE
cmake -G "${{ matrix.gen }}" -A ${{ matrix.arch }} -DCMAKE_CROSSCOMPILING=ON $GITHUB_WORKSPACE
- name: Build
working-directory: ${{ runner.workspace }}/build
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Run CMake
working-directory: ${{ runner.workspace }}/build
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Run CMake
working-directory: ${{ runner.workspace }}/build
Expand Down Expand Up @@ -191,6 +193,8 @@ jobs:

- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Create Build Environment
run: |
Expand Down Expand Up @@ -225,6 +229,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Start docker
run: |
Expand Down Expand Up @@ -276,6 +282,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Run CMake
working-directory: ${{ runner.workspace }}/build
Expand Down Expand Up @@ -305,6 +313,8 @@ jobs:

- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Build scnlib
run: |
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/lite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Run CMake
working-directory: ${{ runner.workspace }}/build
env:
CXX: ${{ matrix.cxx }}
run: |
cmake -G Ninja -DSCN_CI=ON -DSCN_TESTS_LOCALIZED=ON \
cmake -G Ninja -DSCN_WERROR=ON -DSCN_TESTS_LOCALIZED=ON \
-DCMAKE_CXX_STANDARD=${{ matrix.std }} \
$GITHUB_WORKSPACE
Expand All @@ -80,6 +82,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Create Build Environment
run: cmake -E make_directory ${{ runner.workspace }}/build
Expand All @@ -88,7 +92,7 @@ jobs:
working-directory: ${{ runner.workspace }}/build
shell: bash
run: |
cmake -A ${{ matrix.platform }} -DSCN_CI=ON $GITHUB_WORKSPACE
cmake -A ${{ matrix.platform }} $GITHUB_WORKSPACE
- name: Build
working-directory: ${{ runner.workspace }}/build
Expand All @@ -109,6 +113,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Create Build Environment
run: |
Expand All @@ -119,7 +125,7 @@ jobs:
env:
CXX: ${{ matrix.cxx }}
run: |
cmake -DSCN_CI=ON -DCMAKE_CXX_STANDARD=${{ matrix.std }} $GITHUB_WORKSPACE
cmake -DSCN_WERROR=ON -DCMAKE_CXX_STANDARD=${{ matrix.std }} $GITHUB_WORKSPACE
- name: Build
working-directory: ${{ runner.workspace }}/build
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Create Build Environment
run: |
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Create Build Environment
run: cmake -E make_directory ${{ runner.workspace }}/build
Expand Down Expand Up @@ -64,6 +66,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Create Build Environment
run: cmake -E make_directory ${{ runner.workspace }}/build
Expand Down Expand Up @@ -121,6 +125,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Build and test
run: |
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.4)
cmake_minimum_required(VERSION 3.5)

project(scn CXX)

Expand Down

0 comments on commit ab4a158

Please sign in to comment.