Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: viamrobotics/rust-utils
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.1
Choose a base ref
...
head repository: viamrobotics/rust-utils
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Sep 21, 2023

  1. Copy the full SHA
    2d69fb3 View commit details
  2. Bump regex from 0.2.11 to 1.9.1 in /examples (#78)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Sep 21, 2023
    Copy the full SHA
    39e453c View commit details

Commits on Sep 26, 2023

  1. RSDK-4447: Add dial timeout (#80)

    Co-authored-by: hexbabe <sean.yu@viam.com>
    hexbabe and hexbabe authored Sep 26, 2023
    Copy the full SHA
    ec2921a View commit details

Commits on Sep 28, 2023

  1. Copy the full SHA
    e8d6a91 View commit details

Commits on Oct 19, 2023

  1. Bump rustix from 0.37.23 to 0.37.25 in /examples (#82)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 19, 2023
    Copy the full SHA
    5c39ad6 View commit details

Commits on Nov 22, 2023

  1. Bump rustix from 0.37.23 to 0.37.26 (#83)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 22, 2023
    Copy the full SHA
    f279332 View commit details

Commits on Dec 15, 2023

  1. Copy the full SHA
    fb68a9c View commit details
  2. Copy the full SHA
    542b13d View commit details

Commits on Dec 21, 2023

  1. Copy the full SHA
    a925831 View commit details
  2. Copy the full SHA
    c8ea8e0 View commit details

Commits on Dec 27, 2023

  1. Copy the full SHA
    a810ed2 View commit details
  2. Copy the full SHA
    4d6c736 View commit details

Commits on Jan 10, 2024

  1. [RSDK-6152] Downgrade build image requirement (#88)

    Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
    njooma and github-actions[bot] authored Jan 10, 2024
    Copy the full SHA
    a1b57e3 View commit details
  2. Migrate runners (#89)

    njooma authored Jan 10, 2024
    Copy the full SHA
    a7b589f View commit details
  3. Copy the full SHA
    2fc17ce View commit details
  4. Upgrade runners (#90)

    njooma authored Jan 10, 2024
    Copy the full SHA
    142ba3b View commit details
  5. Copy the full SHA
    161f29b View commit details

Commits on Jan 12, 2024

  1. Automated Protos Update (#84)

    Co-authored-by: viambot <viambot@users.noreply.github.com>
    github-actions[bot] and viambot authored Jan 12, 2024
    Copy the full SHA
    55ab2e9 View commit details

Commits on Feb 21, 2024

  1. Bump h2 from 0.3.20 to 0.3.24 in /examples (#91)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Feb 21, 2024
    Copy the full SHA
    fe9da31 View commit details

Commits on Feb 22, 2024

  1. Copy the full SHA
    aab08d5 View commit details

Commits on Feb 27, 2024

  1. Automated Protos Update (#94)

    Co-authored-by: viambot <viambot@users.noreply.github.com>
    github-actions[bot] and viambot authored Feb 27, 2024
    Copy the full SHA
    aeec64e View commit details
  2. Bump h2 from 0.3.23 to 0.3.24 (#92)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Feb 27, 2024
    Copy the full SHA
    0386de8 View commit details

Commits on Feb 29, 2024

  1. Copy the full SHA
    91f3c50 View commit details
  2. Copy the full SHA
    72e9adc View commit details

Commits on Mar 4, 2024

  1. Bump mio from 0.8.10 to 0.8.11 (#97)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 4, 2024
    Copy the full SHA
    d02c745 View commit details
  2. Bump mio from 0.8.8 to 0.8.11 in /examples (#98)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 4, 2024
    Copy the full SHA
    cd53ccc View commit details

Commits on Mar 7, 2024

  1. Update comment style (#99)

    njooma authored Mar 7, 2024
    Copy the full SHA
    6ce7567 View commit details
  2. Copy the full SHA
    526ad2e View commit details
  3. Copy the full SHA
    b63e88b View commit details
  4. Copy the full SHA
    313239b View commit details
  5. Fix test image (#103)

    njooma authored Mar 7, 2024
    Copy the full SHA
    8c46ce9 View commit details
  6. RSDK-4857 musllinux binaries for python sdk (#102)

    Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
    biotinker and github-actions[bot] authored Mar 7, 2024
    Copy the full SHA
    682f6e9 View commit details

Commits on Mar 18, 2024

  1. Copy the full SHA
    b6c4a62 View commit details
  2. Automated Protos Update (#104)

    Co-authored-by: viambot <viambot@users.noreply.github.com>
    Co-authored-by: Naveed Jooma <naveed@viam.com>
    3 people authored Mar 18, 2024
    Copy the full SHA
    3a72feb View commit details

Commits on Mar 28, 2024

  1. Bump version number

    njooma committed Mar 28, 2024
    Copy the full SHA
    c1420f8 View commit details
  2. Copy the full SHA
    0f67b83 View commit details
  3. Copy the full SHA
    cf51da2 View commit details

Commits on Apr 4, 2024

  1. Copy the full SHA
    bcf637a View commit details
  2. Copy the full SHA
    6d55b53 View commit details

Commits on Apr 11, 2024

  1. Automated Protos Update (#106)

    Co-authored-by: viambot <viambot@users.noreply.github.com>
    github-actions[bot] and viambot authored Apr 11, 2024
    Copy the full SHA
    cc3ba06 View commit details

Commits on Apr 17, 2024

  1. Bump h2 from 0.3.24 to 0.3.26 in /examples (#108)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Apr 17, 2024
    Copy the full SHA
    13f4450 View commit details

Commits on Apr 18, 2024

  1. Copy the full SHA
    3f6a4a7 View commit details

Commits on Apr 25, 2024

  1. Copy the full SHA
    c542c8f View commit details
  2. Copy the full SHA
    6466300 View commit details

Commits on May 1, 2024

  1. Copy the full SHA
    90c30e4 View commit details

Commits on May 16, 2024

  1. Copy the full SHA
    4985d83 View commit details
  2. Copy the full SHA
    936f380 View commit details

Commits on May 23, 2024

  1. Copy the full SHA
    513ca40 View commit details
  2. Copy the full SHA
    2c995a8 View commit details

Commits on Jun 3, 2024

  1. Copy the full SHA
    fadd59d View commit details
14 changes: 14 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[target.x86_64-unknown-linux-musl]
rustflags = [ "-C", "target-feature=-crt-static" ]

[target.aarch64-unknown-linux-musl]
rustflags = [ "-C", "target-feature=-crt-static" ]

[target.arm-unknown-linux-musleabihf]
rustflags = [ "-C", "target-feature=-crt-static" ]

[target.armv7-unknown-linux-musleabihf]
rustflags = [ "-C", "target-feature=-crt-static" ]

[target.i686-unknown-linux-musl]
rustflags = [ "-C", "target-feature=-crt-static" ]
6 changes: 2 additions & 4 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -12,14 +12,12 @@ on:
jobs:
checks:
if: github.repository_owner == 'viamrobotics'
runs-on: [self-hosted, x64]
container:
image: ghcr.io/viamrobotics/canon:amd64
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- name: Checkout PR/Push/Workflow Dispatch
uses: actions/checkout@v2
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: clippy
8 changes: 3 additions & 5 deletions .github/workflows/license_finder.yml
Original file line number Diff line number Diff line change
@@ -10,24 +10,22 @@ on:
jobs:
license_finder:
name: Audit 3rd-Party Licenses
runs-on: [x64, qemu-host]
runs-on: ubuntu-latest
container:
image: ghcr.io/viamrobotics/canon:amd64-cache
options: --platform linux/amd64
timeout-minutes: 30

steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
default: true
override: true

- name: Run license finder
run: license_finder
8 changes: 3 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -7,9 +7,7 @@ on:
jobs:
publish:
if: github.repository_owner == 'viamrobotics'
runs-on: [self-hosted, x64]
container:
image: ghcr.io/viamrobotics/canon:amd64
runs-on: ubuntu-latest

steps:
- name: Check if organization member
@@ -26,10 +24,10 @@ jobs:
if: |
github.event_name == 'workflow_dispatch' && steps.is_organization_member.outputs.result == 'false'
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable

153 changes: 115 additions & 38 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -16,31 +16,18 @@ on:
jobs:
prepare:
if: github.repository_owner == 'viamrobotics'
runs-on: [self-hosted, x64]
container:
image: ghcr.io/viamrobotics/canon:amd64
runs-on: buildjet-8vcpu-ubuntu-2204-arm
outputs:
version: ${{ steps.which_version.outputs.version }}
sha: ${{ steps.commit.outputs.commit_long_sha }}
steps:
- name: Check if organization member
id: is_organization_member
uses: jamessingleton/is-organization-member@1.0.1
with:
organization: viamrobotics
username: ${{ github.actor }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Cancelling - user not part of organization
uses: andymckay/cancel-action@0.2
if: |
steps.is_organization_member.outputs.result == 'false'
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.REPO_READ_TOKEN }}

- name: Setup rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable

@@ -81,9 +68,9 @@ jobs:
build_macos:
if: github.repository_owner == 'viamrobotics'
needs: [prepare]
runs-on: [self-hosted, ARM64, macOS]
runs-on: macos-latest
strategy:
fail-fast: false
fail-fast: true
matrix:
include:
- target: aarch64-apple-darwin
@@ -92,7 +79,7 @@ jobs:
platform: macosx_x86_64
steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ needs.prepare.outputs.sha }}
- name: Setup rust toolchain
@@ -113,31 +100,80 @@ jobs:
run: |
install_name_tool -id "@rpath/libviam_rust_utils.dylib" builds/libviam_rust_utils-${{ matrix.platform }}.dylib
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: builds
path: builds
name: builds-${{ matrix.platform }}
path: builds/*

build_linux:
if: github.repository_owner == 'viamrobotics'
needs: [prepare]
runs-on: [self-hosted, x64]
runs-on: ${{ matrix.runs-on }}
container:
image: ghcr.io/cross-rs/${{ matrix.image }}
image: ${{ matrix.image }}
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: 'true'
strategy:
fail-fast: false
fail-fast: true
matrix:
include:
- target: aarch64-unknown-linux-gnu
platform: linux_aarch64
image: aarch64-unknown-linux-gnu:main-centos
image: ubuntu:20.04
runs-on: buildjet-8vcpu-ubuntu-2204-arm
- target: x86_64-unknown-linux-gnu
platform: linux_x86_64
image: x86_64-unknown-linux-gnu:main-centos
image: ubuntu:20.04
runs-on: buildjet-4vcpu-ubuntu-2204
- target: x86_64-unknown-linux-musl
platform: musllinux_x86_64
image: alpine
runs-on: buildjet-4vcpu-ubuntu-2204
- target: aarch64-unknown-linux-musl
platform: musllinux_aarch64
image: ghcr.io/cross-rs/aarch64-unknown-linux-musl:main
runs-on: buildjet-4vcpu-ubuntu-2204
- target: arm-unknown-linux-gnueabihf
platform: linux_armv6l
image: arm-unknown-linux-gnueabihf:main
image: ghcr.io/cross-rs/arm-unknown-linux-gnueabihf:main
runs-on: buildjet-4vcpu-ubuntu-2204
- target: arm-unknown-linux-musleabihf
platform: musllinux_armv6l
image: ghcr.io/cross-rs/arm-unknown-linux-musleabihf:main
runs-on: buildjet-4vcpu-ubuntu-2204
- target: armv7-unknown-linux-musleabihf
platform: musllinux_armv7l
image: ghcr.io/cross-rs/armv7-unknown-linux-musleabihf:main
runs-on: buildjet-4vcpu-ubuntu-2204
- target: i686-unknown-linux-musl
platform: musllinux_x86
image: ghcr.io/cross-rs/i686-unknown-linux-musl:main
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- name: Setup dependencies
if: ${{ startsWith(matrix.image, 'ubuntu') }}
shell: bash
run: | # (njooma) These are the deps that cross uses. I haven't tried pruning/optimizing
apt-get update && apt-get upgrade -y
apt-get install -y autoconf \
automake \
binutils \
ca-certificates \
curl \
file \
gcc \
git \
libtool \
m4 \
make
- name: Setup alpine dependencies
if: ${{ startsWith(matrix.image, 'alpine') }}
shell: sh
run: |
apk add libgcc \
curl \
build-base \
bash
- name: Checkout Code
uses: actions/checkout@v3
with:
@@ -154,26 +190,67 @@ jobs:
shell: bash
run: |
source "$HOME/.cargo/env"
cargo build --release --target=${{ matrix.target }}
cargo build --release --locked --target=${{ matrix.target }}
- name: Copy
run: |
cp target/${{ matrix.target }}/release/libviam_rust_utils.so builds/libviam_rust_utils-${{ matrix.platform }}.so
cp target/${{ matrix.target }}/release/libviam_rust_utils.a builds/libviam_rust_utils-${{ matrix.platform }}.a
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: builds-${{ matrix.platform }}
path: builds/*

build_windows:
if: github.repository_owner == 'viamrobotics'
needs: [prepare]
runs-on: windows-latest
strategy:
fail-fast: true
matrix:
include:
- platform: windows_x86_64
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
ref: ${{ needs.prepare.outputs.sha }}
- name: Setup rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Setup build directory
run: mkdir builds
- name: Build
run: |
cargo build --release
- name: Copy
run: |
cp target/release/viam_rust_utils.dll builds/libviam_rust_utils-${{ matrix.platform }}.dll
cp target/release/viam_rust_utils.lib builds/viam_rust_utils-${{ matrix.platform }}.lib
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: builds-${{ matrix.platform }}
path: builds/*

merge:
needs: [build_macos, build_linux, build_windows]
runs-on: ubuntu-latest
steps:
- name: Merge artifacts
uses: actions/upload-artifact/merge@v4
with:
name: builds
path: builds
pattern: builds-*

release:
needs: [prepare, build_macos, build_linux]
needs: [prepare, merge]
if: github.repository_owner == 'viamrobotics'
runs-on: [self-hosted, x64]
container:
image: ghcr.io/viamrobotics/canon:amd64
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4

- name: Release
uses: softprops/action-gh-release@v1
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -12,14 +12,16 @@ on:
jobs:
test:
if: github.repository_owner == 'viamrobotics'
runs-on: [self-hosted, x64]
runs-on: buildjet-4vcpu-ubuntu-2204
container:
image: ghcr.io/viamrobotics/canon:amd64
# Use rdk-devenv for now which has a go version >= 1.20 in order to run
# tests with goutils which requires at least 1.20.
image: ghcr.io/viamrobotics/rdk-devenv:amd64-cache
steps:
- name: Checkout PR/Push/Workflow Dispatch
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Run tests
25 changes: 18 additions & 7 deletions .github/workflows/update_protos.yml
Original file line number Diff line number Diff line change
@@ -9,12 +9,10 @@ on:
jobs:
update-protos:
if: github.repository_owner == 'viamrobotics'
runs-on: [self-hosted, x64]
container:
image: ghcr.io/viamrobotics/canon:amd64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: bufbuild/buf-setup-action@v1.7.0
- uses: actions/checkout@v4
- uses: bufbuild/buf-setup-action@v1.28.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: arduino/setup-protoc@v1
@@ -32,5 +30,18 @@ jobs:
delete-branch: true
title: Automated Protos Update
body: This is an auto-generated PR to update proto definitions. Check the commits to see which repos and commits are responsible for the changes
assignees: npmenard,stuqdog
reviewers: npmenard,stuqdog
assignees: njooma,stuqdog
reviewers: njooma,stuqdog

- name: Notify slack of failure
uses: slackapi/slack-github-action@v1.24.0
if: ${{ failure() }}
with:
payload: |
{
"text": "Rust-utils update protos job has failed",
"username": "Rust-utils",
"icon_url": "https://media.tenor.com/bZMubztJxGkAAAAe/charlie-brown-walking-charlie-brown.png"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_TEAM_SDK_WEBHOOK_URL }}
Loading