From b4ca45728d54e7896fe46cb5921cafc3770eead8 Mon Sep 17 00:00:00 2001 From: Matt M Date: Tue, 17 Sep 2024 14:14:48 -0700 Subject: [PATCH] checkout --- .github/workflows/build.yml | 10 ++++++++++ .github/workflows/python.yml | 9 +++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6c7e710ebb..53a00f165d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,6 +26,8 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 + with: + submodules: 'recursive' - name: Setup Node.js uses: actions/setup-node@v4 with: @@ -46,6 +48,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + submodules: 'recursive' - name: Fetch tags run: git fetch --tags --force - name: Install RoboRIO Toolchain @@ -82,6 +85,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + submodules: 'recursive' - name: Fetch tags run: git fetch --tags --force - name: Install Java 17 @@ -115,6 +119,7 @@ jobs: - uses: actions/setup-python@v5 with: python-version: '3.11' + submodules: 'recursive' - name: Install dependencies working-directory: docs run: | @@ -151,6 +156,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + submodules: 'recursive' - name: Install Java 17 uses: actions/setup-java@v4 with: @@ -195,6 +201,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + submodules: 'recursive' - name: Config Git run: | git config --global --add safe.directory /__w/photonvision/photonvision @@ -225,6 +232,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + submodules: 'recursive' - run: git fetch --tags --force # download all maven-* artifacts to outputs/ - uses: actions/download-artifact@v4 @@ -277,6 +285,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + submodules: 'recursive' - name: Install Java 17 uses: actions/setup-java@v4 with: @@ -448,6 +457,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + submodules: 'recursive' - uses: actions/download-artifact@v4 with: name: jar-${{ matrix.artifact-name }} diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 78dc1fb371..7c8c97c0dc 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -41,6 +41,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + submodules: 'recursive' - name: Set up Python uses: actions/setup-python@v5 @@ -101,6 +102,7 @@ jobs: os: - container: wpilib/roborio-cross-ubuntu:2024-22.04-py312 name: roborio + arch-override: linuxathena # - container: wpilib/raspbian-cross-ubuntu:bullseye-22.04-py38 # name: raspbian-py38 @@ -112,6 +114,7 @@ jobs: # name: raspbian-py311 - container: wpilib/raspbian-cross-ubuntu:bullseye-22.04-py312 name: raspbian-py312 + arch-override: linuxarm64 # - container: wpilib/aarch64-cross-ubuntu:bullseye-22.04-py38 # name: raspbian-aarch64-py38 @@ -119,6 +122,7 @@ jobs: # name: raspbian-aarch64-py39 - container: wpilib/aarch64-cross-ubuntu:bullseye-22.04-py310 name: raspbian-aarch64-py310 + arch-override: linuxarm64 # - container: wpilib/aarch64-cross-ubuntu:bullseye-22.04-py311 # name: raspbian-aarch64-py311 # - container: wpilib/aarch64-cross-ubuntu:bullseye-22.04-py312 @@ -130,6 +134,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + submodules: 'recursive' fetch-depth: 0 - name: Install Java 17 @@ -160,8 +165,8 @@ jobs: - run: git fetch --tags --force - run: | chmod +x gradlew - ./gradlew photon-targeting:build photon-lib:build -i -PpythonExecutable=/build/venv/bin/cross-python - ./gradlew photon-lib:installPhotonlibpyNative -PpythonExecutable=/build/venv/bin/cross-python + ./gradlew photon-targeting:build photon-lib:build -i -PpythonExecutable=/build/venv/bin/cross-python -PArchOverride=${{ matrix.arch-override }} + ./gradlew photon-lib:installPhotonlibpyNative -PpythonExecutable=/build/venv/bin/cross-python -PArchOverride=${{ matrix.arch-override }} - name: Build wheel working-directory: ./photon-lib/py