Skip to content

Commit

Permalink
Publish wpiutil headers with releases
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahAndrews committed Apr 27, 2023
1 parent 890db41 commit f938a28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,13 @@ jobs:
curl -o wpilibSource.zip "$wpilibSourceZipUrl"
# Extract just the HAL header files from the source code zip
halIncludePathPrefix="allwpilib-$halVersion/hal/src/main/native/include"
utilIncludePathPrefix="allwpilib-$halVersion/wpiutil/src/main/native/include"
unzip wpilibSource.zip "$halIncludePathPrefix/**.h" -d wpilibHalHeaders
unzip wpilibSource.zip "$utilIncludePathPrefix/**.h" -d wpilibUtilHeaders
# Gather all of the the needed headers
mkdir headers-for-artifact
cp -r wpilibHalHeaders/"$halIncludePathPrefix"/hal headers-for-artifact
cp -r wpilibUtilHeaders/"$utilIncludePathPrefix"/wpi headers-for-artifact
cp -r src/main/native/include/* headers-for-artifact
# Zip the needed headers and put them in the appropriate location for artifact upload
mkdir -p CANBridge-artifacts
Expand Down

0 comments on commit f938a28

Please sign in to comment.