Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@ jobs:
fail-fast: false
matrix:
include:
# Build native on both ubuntu 22.04
# Build native on both ubuntu 22.04 and 24.04
- os: ubuntu-22.04
- os: ubuntu-24.04

runs-on: ${{ matrix.os }}
steps:
# Checkout code
- uses: actions/checkout@v3

# Perform Phoenix Pro installation process
- name: Add Phoenix Pro to local apt
# Perform Phoenix 6 installation process
- name: Add Phoenix 6 to local apt
run: |
sudo curl -s --compressed -o /usr/share/keyrings/ctr-pubkey.gpg "https://deb.ctr-electronics.com/ctr-pubkey.gpg"
sudo curl -s --compressed -o /etc/apt/sources.list.d/ctr2026.list "https://deb.ctr-electronics.com/ctr2026.list"
Expand Down Expand Up @@ -56,19 +57,19 @@ jobs:
fail-fast: false
matrix:
include:
# 64-bit arm on bullseye
- arch: aarch64
distro: bullseye
# 64-bit arm on bookworm
- arch: aarch64
distro: bookworm
# 64-bit arm on trixie
- arch: none
distro: none
base_image: arm64v8/debian:bookworm
# 64-bit arm on ubuntu 20.04
- arch: aarch64
distro: ubuntu20.04
base_image: --platform=linux/arm64 arm64v8/debian:trixie
# 64-bit arm on ubuntu 22.04
- arch: aarch64
distro: ubuntu22.04
# 64-bit arm on ubuntu 24.04
- arch: aarch64
distro: ubuntu24.04

runs-on: ubuntu-latest

Expand All @@ -77,7 +78,7 @@ jobs:
- uses: actions/checkout@v3

# Do all the same steps as the above code, but all at once under the architecture
- uses: uraimo/run-on-arch-action@v2
- uses: uraimo/run-on-arch-action@v3
name: Build on arch
with:
arch: ${{ matrix.arch }}
Expand Down
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
cmake_minimum_required(VERSION 3.6)
project(Phoenix6-Example)

# Use C++17
set(CMAKE_CXX_STANDARD 17)
# Use C++20
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# Set compiler flags
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -Og")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")

Expand Down
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Robot : public RobotBase {
private:
/* This can be a CANivore name, CANivore serial number,
* SocketCAN interface, or "*" to select any CANivore. */
static constexpr char const *CANBUS = CANBus("*");
static constexpr CANBus CANBUS{"*"};

/* devices */
hardware::TalonFX leftLeader{0, CANBUS};
Expand Down