Skip to content

Commit

Permalink
[upstream_utils] Upgrade Sleipnir
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul committed Feb 10, 2025
1 parent 9dbb0c8 commit 2bc162f
Show file tree
Hide file tree
Showing 44 changed files with 3,860 additions and 2,342 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/lint-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install LLVM 19
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 19 all
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-19 200
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-19 200
echo "CC=clang" >> $GITHUB_ENV
echo "CXX=clang++" >> $GITHUB_ENV
- name: Install wpiformat
run: |
python -m venv ${{ runner.temp }}/wpiformat
Expand All @@ -87,9 +96,9 @@ jobs:
- name: List changed files
run: ${{ runner.temp }}/wpiformat/bin/wpiformat -list-changed-files
- name: Run clang-tidy release
run: ${{ runner.temp }}/wpiformat/bin/wpiformat -no-format -tidy-changed -compile-commands=build/TargetedCompileCommands/linuxx86-64release -vv
run: ${{ runner.temp }}/wpiformat/bin/wpiformat -no-format -clang 19 -tidy-changed -compile-commands=build/TargetedCompileCommands/linuxx86-64release -vv
- name: Run clang-tidy debug
run: ${{ runner.temp }}/wpiformat/bin/wpiformat -no-format -tidy-changed -compile-commands=build/TargetedCompileCommands/linuxx86-64debug -vv
run: ${{ runner.temp }}/wpiformat/bin/wpiformat -no-format -clang 19 -tidy-changed -compile-commands=build/TargetedCompileCommands/linuxx86-64debug -vv
javaformat:
name: "Java format"
runs-on: ubuntu-22.04
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/sanitizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,18 @@ jobs:

- uses: actions/checkout@v4

- name: Install LLVM 19
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 19 all
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-19 200
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-19 200
echo "CC=clang" >> $GITHUB_ENV
echo "CXX=clang++" >> $GITHUB_ENV
- name: configure
run: mkdir build && cd build && cmake -G Ninja -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang-14 -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++-14 -DWITH_JAVA=OFF ${{ matrix.cmake-flags }} ..
run: mkdir build && cd build && cmake -G Ninja -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DWITH_JAVA=OFF ${{ matrix.cmake-flags }} ..
env:
SCCACHE_WEBDAV_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
SCCACHE_WEBDAV_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
Expand Down
4 changes: 2 additions & 2 deletions upstream_utils/sleipnir.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def copy_upstream_src(wpilib_root):
def main():
name = "sleipnir"
url = "https://github.com/SleipnirGroup/Sleipnir"
# main on 2024-12-07
tag = "01206ab17d741f4c45a7faeb56b8a5442df1681c"
# main on 2025-02-09
tag = "32a8332471b0edbfa39dcf3692c36f83e1bfd7ce"

sleipnir = Lib(name, url, tag, copy_upstream_src)
sleipnir.main()
Expand Down
2 changes: 1 addition & 1 deletion upstream_utils/sleipnir_patches/0001-Use-fmtlib.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Tyler Veness <calcmogul@gmail.com>
Date: Wed, 29 May 2024 16:29:55 -0700
Subject: [PATCH 1/3] Use fmtlib
Subject: [PATCH 1/5] Use fmtlib

---
include/.styleguide | 1 +
Expand Down
Loading

0 comments on commit 2bc162f

Please sign in to comment.