Skip to content

Commit fb569bf

Browse files
committed
update
1 parent 361df1d commit fb569bf

File tree

1 file changed

+161
-158
lines changed

1 file changed

+161
-158
lines changed

.github/workflows/c.yaml

Lines changed: 161 additions & 158 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ jobs:
4949
5050
- name: Checkout
5151
run: |
52-
git submodule update --recursive --init
52+
git clone --depth 1 --filter=blob:none --no-checkout https://github.com/swift-nav/libsbp .
53+
git fetch --depth 1 origin ${{ github.sha }}
54+
git checkout ${{ github.sha }}
55+
git submodule update --depth=1 --recursive --init
5356
5457
- name: Configure
5558
run: |
@@ -79,161 +82,161 @@ jobs:
7982
cmake -S c/test_package -B c/test_package/build -DCMAKE_PREFIX_PATH="$PWD/install"
8083
cmake --build c/test_package/build
8184
82-
macos:
83-
name: macOS
84-
runs-on: macos-13
85-
steps:
86-
- uses: actions/checkout@v4
87-
with:
88-
submodules: recursive
89-
fetch-depth: 0
90-
91-
- name: Configure
92-
run: |
93-
cmake -S c -B build \
94-
-DCMAKE_BUILD_TYPE=Release \
95-
-DCMAKE_C_COMPILER=clang \
96-
-DCMAKE_CXX_COMPILER=clang++ \
97-
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/install" \
98-
-DINSTALL_GTEST=false
99-
100-
- name: Build
101-
run: cmake --build build
102-
103-
- name: Test
104-
run: cmake --build build --target do-all-tests
105-
106-
- name: Install
107-
run: cmake --build build --target install
108-
109-
- name: Test Package
110-
run: |
111-
cmake -S c/test_package -B c/test_package/build -DCMAKE_PREFIX_PATH="${{ github.workspace }}/install"
112-
cmake --build c/test_package/build
113-
114-
115-
big-endian:
116-
name: Test Big Endian
117-
runs-on: ubuntu-20.04
118-
steps:
119-
- uses: actions/checkout@v4
120-
with:
121-
submodules: recursive
122-
fetch-depth: 0
123-
124-
- name: Setup
125-
run: |
126-
sudo apt-get -qq update
127-
sudo apt-get -qq install gcc-multilib-mips-linux-gnu gcc-mips-linux-gnu qemu-user g++-mips-linux-gnu
128-
129-
- name: Run big endian tests
130-
run: make test-c-modern
131-
env:
132-
CC: mips-linux-gnu-gcc
133-
CXX: mips-linux-gnu-g++
134-
135-
CMAKEFLAGS: -DCMAKE_EXE_LINKER_FLAGS_RELEASE="-static" -Dgtest_disable_pthreads=ON
136-
137-
bazel:
138-
name: Bazel
139-
runs-on: ubuntu-20.04
140-
steps:
141-
- uses: actions/checkout@v4
142-
with:
143-
submodules: recursive
144-
145-
- uses: bazelbuild/setup-bazelisk@v3
146-
147-
- name: Mount bazel cache
148-
uses: actions/cache@v4
149-
with:
150-
path: "~/.cache/bazel"
151-
key: bazel
152-
153-
- name: Bazel Build & Test
154-
run: |
155-
bazel test //...
156-
157-
158-
asan:
159-
name: ASAN
160-
runs-on: ubuntu-20.04
161-
steps:
162-
- uses: actions/checkout@v4
163-
with:
164-
submodules: recursive
165-
166-
- uses: bazelbuild/setup-bazelisk@v3
167-
168-
- name: Mount bazel cache
169-
uses: actions/cache@v4
170-
with:
171-
path: "~/.cache/bazel"
172-
key: bazel
173-
174-
- name: Bazel Build & Test
175-
run: |
176-
bazel test --config=asan //...
177-
178-
179-
ubsan:
180-
name: UBSAN
181-
runs-on: ubuntu-20.04
182-
steps:
183-
- uses: actions/checkout@v4
184-
with:
185-
submodules: recursive
186-
187-
- uses: bazelbuild/setup-bazelisk@v3
188-
189-
- name: Mount bazel cache
190-
uses: actions/cache@v4
191-
with:
192-
path: "~/.cache/bazel"
193-
key: bazel
194-
195-
- name: Bazel Build & Test
196-
run: |
197-
bazel test --config=ubsan //...
198-
199-
200-
windows-2019:
201-
strategy:
202-
matrix:
203-
generator: [ "MinGW Makefiles", "Visual Studio 16 2019" ]
204-
build_shared_libraries: [ true, false ]
205-
name: "Windows 2019 (Generator: ${{ matrix.generator }}, Shared Library: ${{ matrix.build_shared_libraries }})"
206-
runs-on: windows-2019
207-
steps:
208-
- uses: actions/checkout@v4
209-
with:
210-
submodules: recursive
211-
fetch-depth: 0
212-
213-
- name: Configure
214-
run: |
215-
cmake -G "${{ matrix.generator }}" -S c -B build `
216-
-DCMAKE_BUILD_TYPE=Release `
217-
-DBUILD_SHARED_LIBS=${{ matrix.build_shared_libraries }} `
218-
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/install" `
219-
-Dgtest_force_shared_crt=true `
220-
-DINSTALL_GTEST=false
221-
222-
- name: Build
223-
run: cmake --build build
224-
225-
- name: Build Test
226-
run: cmake --build build --target build-all-tests
227-
228-
- name: Run Test
229-
run: cmake --build build --target do-all-tests
230-
if: ${{ !matrix.build_shared_libraries }}
231-
232-
- name: Install
233-
run: cmake --build build --target install
234-
235-
- name: Test Package
236-
run: |
237-
cmake -G "${{ matrix.generator }}" -S c/test_package -B c/test_package/build -DCMAKE_PREFIX_PATH="${{ github.workspace }}/install"
238-
cmake --build c/test_package/build
85+
# macos:
86+
# name: macOS
87+
# runs-on: macos-13
88+
# steps:
89+
# - uses: actions/checkout@v4
90+
# with:
91+
# submodules: recursive
92+
# fetch-depth: 0
93+
94+
# - name: Configure
95+
# run: |
96+
# cmake -S c -B build \
97+
# -DCMAKE_BUILD_TYPE=Release \
98+
# -DCMAKE_C_COMPILER=clang \
99+
# -DCMAKE_CXX_COMPILER=clang++ \
100+
# -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/install" \
101+
# -DINSTALL_GTEST=false
102+
103+
# - name: Build
104+
# run: cmake --build build
105+
106+
# - name: Test
107+
# run: cmake --build build --target do-all-tests
108+
109+
# - name: Install
110+
# run: cmake --build build --target install
111+
112+
# - name: Test Package
113+
# run: |
114+
# cmake -S c/test_package -B c/test_package/build -DCMAKE_PREFIX_PATH="${{ github.workspace }}/install"
115+
# cmake --build c/test_package/build
116+
117+
118+
# big-endian:
119+
# name: Test Big Endian
120+
# runs-on: ubuntu-20.04
121+
# steps:
122+
# - uses: actions/checkout@v4
123+
# with:
124+
# submodules: recursive
125+
# fetch-depth: 0
126+
127+
# - name: Setup
128+
# run: |
129+
# sudo apt-get -qq update
130+
# sudo apt-get -qq install gcc-multilib-mips-linux-gnu gcc-mips-linux-gnu qemu-user g++-mips-linux-gnu
131+
132+
# - name: Run big endian tests
133+
# run: make test-c-modern
134+
# env:
135+
# CC: mips-linux-gnu-gcc
136+
# CXX: mips-linux-gnu-g++
137+
138+
# CMAKEFLAGS: -DCMAKE_EXE_LINKER_FLAGS_RELEASE="-static" -Dgtest_disable_pthreads=ON
139+
140+
# bazel:
141+
# name: Bazel
142+
# runs-on: ubuntu-20.04
143+
# steps:
144+
# - uses: actions/checkout@v4
145+
# with:
146+
# submodules: recursive
147+
148+
# - uses: bazelbuild/setup-bazelisk@v3
149+
150+
# - name: Mount bazel cache
151+
# uses: actions/cache@v4
152+
# with:
153+
# path: "~/.cache/bazel"
154+
# key: bazel
155+
156+
# - name: Bazel Build & Test
157+
# run: |
158+
# bazel test //...
159+
160+
161+
# asan:
162+
# name: ASAN
163+
# runs-on: ubuntu-20.04
164+
# steps:
165+
# - uses: actions/checkout@v4
166+
# with:
167+
# submodules: recursive
168+
169+
# - uses: bazelbuild/setup-bazelisk@v3
170+
171+
# - name: Mount bazel cache
172+
# uses: actions/cache@v4
173+
# with:
174+
# path: "~/.cache/bazel"
175+
# key: bazel
176+
177+
# - name: Bazel Build & Test
178+
# run: |
179+
# bazel test --config=asan //...
180+
181+
182+
# ubsan:
183+
# name: UBSAN
184+
# runs-on: ubuntu-20.04
185+
# steps:
186+
# - uses: actions/checkout@v4
187+
# with:
188+
# submodules: recursive
189+
190+
# - uses: bazelbuild/setup-bazelisk@v3
191+
192+
# - name: Mount bazel cache
193+
# uses: actions/cache@v4
194+
# with:
195+
# path: "~/.cache/bazel"
196+
# key: bazel
197+
198+
# - name: Bazel Build & Test
199+
# run: |
200+
# bazel test --config=ubsan //...
201+
202+
203+
# windows-2019:
204+
# strategy:
205+
# matrix:
206+
# generator: [ "MinGW Makefiles", "Visual Studio 16 2019" ]
207+
# build_shared_libraries: [ true, false ]
208+
# name: "Windows 2019 (Generator: ${{ matrix.generator }}, Shared Library: ${{ matrix.build_shared_libraries }})"
209+
# runs-on: windows-2019
210+
# steps:
211+
# - uses: actions/checkout@v4
212+
# with:
213+
# submodules: recursive
214+
# fetch-depth: 0
215+
216+
# - name: Configure
217+
# run: |
218+
# cmake -G "${{ matrix.generator }}" -S c -B build `
219+
# -DCMAKE_BUILD_TYPE=Release `
220+
# -DBUILD_SHARED_LIBS=${{ matrix.build_shared_libraries }} `
221+
# -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/install" `
222+
# -Dgtest_force_shared_crt=true `
223+
# -DINSTALL_GTEST=false
224+
225+
# - name: Build
226+
# run: cmake --build build
227+
228+
# - name: Build Test
229+
# run: cmake --build build --target build-all-tests
230+
231+
# - name: Run Test
232+
# run: cmake --build build --target do-all-tests
233+
# if: ${{ !matrix.build_shared_libraries }}
234+
235+
# - name: Install
236+
# run: cmake --build build --target install
237+
238+
# - name: Test Package
239+
# run: |
240+
# cmake -G "${{ matrix.generator }}" -S c/test_package -B c/test_package/build -DCMAKE_PREFIX_PATH="${{ github.workspace }}/install"
241+
# cmake --build c/test_package/build
239242

0 commit comments

Comments
 (0)