Skip to content

Commit

Permalink
Merge pull request #219 from robotpy/update-roborio
Browse files Browse the repository at this point in the history
Support our new platform identifier
  • Loading branch information
virtuald authored Oct 23, 2023
2 parents cf0c870 + 76cb772 commit b5765d6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,9 @@ jobs:
max-parallel: ${{ fromJSON(needs.setup_concurrency.outputs.max-parallel).v }}
matrix:
container:
- robotpy/roborio-cross-ubuntu:2023.1
- robotpy/raspbian-cross-ubuntu:2023.1
- wpilib/roborio-cross-ubuntu:2024-22.04-py312
- wpilib/raspbian-cross-ubuntu:bullseye-22.04-py312
- wpilib/aarch64-cross-ubuntu:bullseye-22.04-py312

container:
image: "${{ matrix.container }}"
Expand All @@ -185,6 +186,11 @@ jobs:
name: dist
path: dist

- name: Install setuptools
run: |
/build/venv/bin/build-pip --disable-pip-version-check install setuptools
/build/venv/bin/cross-pip --disable-pip-version-check install setuptools
- name: Install
working-directory: dist
run: |
Expand Down
6 changes: 2 additions & 4 deletions robotpy_build/platforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __post_init__(self):

# key is python platform, value is information about wpilib maven artifacts
_platforms = {
"linux-athena": WPILibMavenPlatform("athena", defines=["__FRC_ROBORIO__"]),
"linux-roborio": WPILibMavenPlatform("athena", defines=["__FRC_ROBORIO__"]),
"linux-raspbian": WPILibMavenPlatform("arm32", defines=["__RASPBIAN__"]),
"linux-armv7l": WPILibMavenPlatform("arm32"),
"linux-x86_64": WPILibMavenPlatform(X86_64),
Expand Down Expand Up @@ -77,9 +77,7 @@ def get_platform(name: typing.Optional[str] = None) -> WPILibMavenPlatform:

distro_id = distro.id()

if distro_id in ("nilrt", "nilrt-academic"):
pyplatform = "linux-athena"
elif distro_id == "raspbian":
if distro_id == "raspbian":
pyplatform = "linux-raspbian"

except Exception:
Expand Down

0 comments on commit b5765d6

Please sign in to comment.