Skip to content

Commit

Permalink
Merge pull request REVrobotics#16 from REVrobotics/publish-wpilib-hal…
Browse files Browse the repository at this point in the history
…-lib

Publish appropriate WPILib HAL library with GitHub releases
  • Loading branch information
Noah Andrews authored Apr 26, 2023
2 parents 13cfd41 + 410c96e commit 635766e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,22 @@ jobs:
run: |
./gradlew outputVersions publish ${{ matrix.build-options }} -PreleaseMode
- name: Download WPILib HAL artifacts
run : |
halVersion=$(cat wpiHalVersion.txt)
halUrl=https://frcmaven.wpi.edu/artifactory/release/edu/wpi/first/hal/hal-cpp/"$halVersion"/hal-cpp-"$halVersion"-windowsx86-64.zip
curl -o windowsHal.zip "$halUrl"
unzip windowsHal.zip -d windowsHal
# Put release files together in one directory
- name: Create Artifact
run: |
mkdir CANBridge-artifacts
cp -r build/libs/cANBridge/static/windowsx86-64/release/CANBridge.lib CANBridge-artifacts/CANBridge-static.lib
cp -r build/libs/cANBridge/shared/windowsx86-64/release/CANBridge.lib CANBridge-artifacts/CANBridge.dll
cp -r build/libs/cANBridge/shared/windowsx86-64/release/CANBridge.lib CANBridge-artifacts/CANBridge.lib
cp build/libs/cANBridge/static/windowsx86-64/release/CANBridge.lib CANBridge-artifacts/CANBridge-static.lib
cp build/libs/cANBridge/shared/windowsx86-64/release/CANBridge.lib CANBridge-artifacts/CANBridge.dll
cp build/libs/cANBridge/shared/windowsx86-64/release/CANBridge.lib CANBridge-artifacts/CANBridge.lib
cp windowsHal/windows/x86-64/shared/wpiHal.dll CANBridge-artifacts/wpiHal.dll
cp windowsHal/windows/x86-64/shared/wpiHal.lib CANBridge-artifacts/wpiHal.lib
# Upload build artifact
- name: Upload build artifact
Expand Down
1 change: 1 addition & 0 deletions wpiHalVersion.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2023.4.3

0 comments on commit 635766e

Please sign in to comment.