Skip to content

Commit

Permalink
update VW slim CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
byronxu99 committed Dec 6, 2023
1 parent b1b55f1 commit e816100
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 20 deletions.
32 changes: 31 additions & 1 deletion .github/workflows/build_vw_slim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,40 @@ jobs:
- uses: actions/checkout@v1
with:
submodules: recursive

- name: Configure VW Slim
shell: bash
run: |
rm -rf build
cmake -S . -B build -G Ninja \
-DBUILD_TESTING=On \
-DVW_FEAT_FLATBUFFERS=Off \
-DRAPIDJSON_SYS_DEP=Off \
-DFMT_SYS_DEP=Off \
-DSPDLOG_SYS_DEP=Off \
-DVW_ZLIB_SYS_DEP=Off \
-DVW_BOOST_MATH_SYS_DEP=Off
- name: Build VW Slim
shell: bash
run: ./.scripts/linux/build-slim.sh
run: cmake --build build --target vw_cli_bin vw_slim vw_slim_test

- name: Test VW Slim
shell: bash
working-directory: build
run: ctest --output-on-failure --no-tests=error --tests-regex "VowpalWabbitSlim|ExploreSlim|CommandLineOptionsSlim" --parallel 2

- name: Generate test data with new VW executable
shell: bash
working-directory: vowpalwabbit/slim/test/data/
run: ./generate_data.sh ${{github.workspace}}/build/vowpalwabbit/cli/vw

- name: Build VW Slim again
shell: bash
run: cmake --build build --target vw_slim vw_slim_test

- name: Test VW Slim again
shell: bash
working-directory: build
run: ctest --output-on-failure --no-tests=error --tests-regex "VowpalWabbitSlim|ExploreSlim|CommandLineOptionsSlim" --parallel 2

19 changes: 0 additions & 19 deletions .scripts/linux/build-slim.sh

This file was deleted.

0 comments on commit e816100

Please sign in to comment.