Skip to content

Commit ca852e9

Browse files
committed
Add arm7l hack
1 parent ce03f7b commit ca852e9

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

.github/workflows/release.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ on:
66
jobs:
77
prepare:
88
if: github.repository_owner == 'viamrobotics' && startsWith(github.ref_name, 'rc-')
9-
runs-on: [self-hosted, x64]
10-
container:
11-
image: ghcr.io/viamrobotics/canon:amd64
9+
runs-on: ubuntu-latest
1210
outputs:
1311
version: ${{ steps.bump_version.outputs.version }}
1412
steps:
@@ -26,7 +24,12 @@ jobs:
2624
steps.is_organization_member.outputs.result == 'false'
2725
2826
- name: Checkout Code
29-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
28+
29+
- name: Setup Python
30+
uses: actions/setup-python@v5
31+
with:
32+
python-version: "3.12"
3033

3134
- name: Install Poetry
3235
uses: snok/install-poetry@v1
@@ -75,9 +78,7 @@ jobs:
7578
build:
7679
needs: prepare
7780
if: github.repository_owner == 'viamrobotics' && startsWith(github.ref_name, 'rc-')
78-
runs-on: [self-hosted, x64]
79-
container:
80-
image: ghcr.io/viamrobotics/canon:amd64
81+
runs-on: ubuntu-latest
8182
strategy:
8283
matrix:
8384
include:
@@ -108,6 +109,11 @@ jobs:
108109
with:
109110
ref: rc-${{ needs.prepare.outputs.version }}
110111

112+
- name: Setup Python
113+
uses: actions/setup-python@v5
114+
with:
115+
python-version: "3.12"
116+
111117
- name: Install Poetry
112118
uses: snok/install-poetry@v1
113119

@@ -117,6 +123,10 @@ jobs:
117123
- name: Download binary
118124
run: curl -sL -o src/viam/rpc/libviam_rust_utils.${{ matrix.ext }} https://github.com/viamrobotics/rust-utils/releases/latest/download/libviam_rust_utils-${{ matrix.arch }}.${{ matrix.ext }}
119125

126+
- name: HACK for arm7l
127+
if: ${{ matrix.whl == 'linux_armv7l' }}
128+
run: echo "This file enables arm7l support. PyPI doesn't allow for packages with the same hash, so this file must be added to differentiate this arm7l package from the arm6l package." > src/viam/arm7l.txt
129+
120130
- name: Build
121131
run: poetry build -f wheel
122132

@@ -132,9 +142,7 @@ jobs:
132142
release:
133143
needs: [prepare, build]
134144
if: github.repository_owner == 'viamrobotics' && startsWith(github.ref_name, 'rc-')
135-
runs-on: [self-hosted, x64]
136-
container:
137-
image: ghcr.io/viamrobotics/canon:amd64
145+
runs-on: ubuntu-latest
138146

139147
steps:
140148
- uses: actions/download-artifact@v3

0 commit comments

Comments
 (0)