Skip to content

Commit 28913bc

Browse files
committed
Add Cpp-Interop exercise
1 parent 093cf7e commit 28913bc

File tree

23 files changed

+2902
-2003
lines changed

23 files changed

+2902
-2003
lines changed

.github/workflows/parallel-build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ jobs:
6262
- name: Test exercise-solutions and examples
6363
run: |
6464
. build_fns.sh
65+
# We have to download this so as to keep copyright of our codebase
66+
curl -o exercise-solutions/cpp-interop/src/rapidcsv.h https://raw.githubusercontent.com/d99kris/rapidcsv/a98b85e663114b8fdc9c0dc03abf22c296f38241/src/rapidcsv.h
6567
test_examples exercise-solutions
6668
6769
test_exercise_solutions_standalone_crates:
@@ -175,7 +177,10 @@ jobs:
175177
runs-on: ubuntu-24.04
176178
steps:
177179
- uses: actions/checkout@v4
178-
- run: rustup toolchain install stable --profile minimal
180+
- run: |
181+
rustup toolchain install stable --profile minimal
182+
# We have to download this so as to keep copyright of our codebase
183+
curl -o exercise-templates/cpp-interop/src/rapidcsv.h https://raw.githubusercontent.com/d99kris/rapidcsv/a98b85e663114b8fdc9c0dc03abf22c296f38241/src/rapidcsv.h
179184
- uses: Swatinem/rust-cache@v2
180185
- name: Check exercise-templates
181186
run: |

build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ set -euo pipefail
44

55
OUTPUT_NAME=${1:-./output}
66

7+
# `rapidcsv.h` is a 3rd party library, so we have to download it
8+
curl -o exercise-solutions/cpp-interop/src/rapidcsv.h https://raw.githubusercontent.com/d99kris/rapidcsv/a98b85e663114b8fdc9c0dc03abf22c296f38241/src/rapidcsv.h
9+
cp exercise-solutions/cpp-interop/src/rapidcsv.h exercise-templates/cpp-interop/src/rapidcsv.h
10+
711
# Build and test the solutions
812
pushd exercise-solutions
913
cargo test --locked

0 commit comments

Comments
 (0)